--- a/applicationinterworkingfw/ServiceHandler/src/AiwCommon.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/applicationinterworkingfw/ServiceHandler/src/AiwCommon.cpp Mon May 03 12:45:33 2010 +0300
@@ -241,7 +241,7 @@
{
return ((iCriteriaId == aItem.iCriteriaId) &&
(iServiceCmd == aItem.iServiceCmd) &&
- (iContentType->Compare(*(aItem.iContentType)) == KErrNone) &&
+ (ContentType().Compare(aItem.ContentType()) == KErrNone) &&
(iServiceClass.iUid == aItem.iServiceClass.iUid) &&
(iDefaultProvider.iUid == aItem.iDefaultProvider.iUid) &&
(iMaxProviders == aItem.iMaxProviders) &&
--- a/classicui_plat/extended_notifiers_api/inc/aknkeylocknotifier.h Fri Apr 16 15:13:44 2010 +0300
+++ b/classicui_plat/extended_notifiers_api/inc/aknkeylocknotifier.h Mon May 03 12:45:33 2010 +0300
@@ -32,7 +32,6 @@
class CAknEcsNote;
class CAknKeyLockNotifierSubject;
class CKeyLockPolicyApi;
-class CAknKeylockScreenSaverObserver;
NONSHARABLE_CLASS(CAknSleepingNote) : public CAknNoteDialog
{
@@ -185,7 +184,6 @@
TBool iFeatureNoPowerkey;
TLockHardware iHardwareSupport;
CKeyLockPolicyApi* iKeylockApi;
- CAknKeylockScreenSaverObserver* iKeylockScreenSaverObserver;
TBool iConsumeNextEventKey;
public:
TBool iAutolockEnabled;
--- a/classicui_plat/personalisation_framework_api/tsrc/bwins/testdompslnframeworku.def Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-EXPORTS
- ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * LibEntryL(class CTestModuleIf &)
-
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/tctestdompslnfwbasecontainer.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-[Test]
-title TestPlsnFWBCCPslnFWBaseContainer
-// TestPlsnFWBCCPslnFWBaseContainer
-run testscripter c:\testframework\ui_testdompslnfwbasecontainer.cfg 1
-[Endtest]
-
-[Test]
-title TestPlsnFWBCConstructL
-// TestPlsnFWBCConstructL
-run testscripter c:\testframework\ui_testdompslnfwbasecontainer.cfg 2
-[Endtest]
-
-[Test]
-title TestPlsnFWBCBaseConstructL
-// TestPlsnFWBCBaseConstructL
-run testscripter c:\testframework\ui_testdompslnfwbasecontainer.cfg 3
-[Endtest]
-
-[Test]
-title TestPlsnFWBCSetMiddleSoftkeyObserver
-// TestPlsnFWBCSetMiddleSoftkeyObserver
-run testscripter c:\testframework\ui_testdompslnfwbasecontainer.cfg 4
-[Endtest]
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/tctestdompslnfwbaseview.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,114 +0,0 @@
-[Test]
-title TestPlsnFWBVCPslnFWBaseView
-// TestPlsnFWBVCPslnFWBaseView
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 1
-[Endtest]
-
-[Test]
-title TestPlsnFWBVConstructL
-// TestPlsnFWBVConstructL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 2
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetCurrentItem
-// TestPlsnFWBVSetCurrentItem
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 3
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 4
-[Endtest]
-
-[Test]
-title TestPlsnFWBVContainer
-// TestPlsnFWBVContainer
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 5
-[Endtest]
-
-[Test]
-title TestPlsnFWBVOpenLocalizedResourceFileL
-// TestPlsnFWBVOpenLocalizedResourceFileL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 6
-[Endtest]
-
-[Test]
-title TestPlsnFWBVOpenLocalizedResourceFileLWithPathL
-// TestPlsnFWBVOpenLocalizedResourceFileLWithPathL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 7
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetNaviPaneDecorator
-// TestPlsnFWBVSetNaviPaneDecorator
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 8
-[Endtest]
-
-[Test]
-title TestPlsnFWBVDoActivateL
-// TestPlsnFWBVDoActivateL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 9
-[Endtest]
-
-[Test]
-title TestPlsnFWBVDoDeactivate
-// TestPlsnFWBVDoDeactivate
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 10
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetTabIndex
-// TestPlsnFWBVSetTabIndex
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 11
-[Endtest]
-
-[Test]
-title TestPlsnFWBVGetTabIndex
-// TestPlsnFWBVGetTabIndex
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 12
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetNaviPaneL
-// TestPlsnFWBVSetNaviPaneL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 13
-[Endtest]
-
-[Test]
-title TestPlsnFWBVCreateNaviPaneContextL
-// TestPlsnFWBVCreateNaviPaneContextL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 14
-[Endtest]
-
-[Test]
-title TestPlsnFWBVCreateContainerL
-// TestPlsnFWBVCreateContainerL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 15
-[Endtest]
-
-[Test]
-title TestPlsnFWBVNewContainerL
-// TestPlsnFWBVNewContainerL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 16
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetNaviPaneLWithTIntL
-// TestPlsnFWBVSetNaviPaneLWithTIntL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 17
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetMiddleSoftKeyLabelL
-// TestPlsnFWBVSetMiddleSoftKeyLabelL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 18
-[Endtest]
-
-[Test]
-title TestPlsnFWBVHandleCommandL
-// TestPlsnFWBVHandleCommandL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 19
-[Endtest]
-
-[Test]
-title TestPlsnFWBVSetTitlePaneL
-// TestPlsnFWBVSetTitlePaneL
-run testscripter c:\testframework\ui_testdompslnfwbaseview.cfg 20
-[Endtest]
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/tctestdompslnfwiconhelper.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-[Test]
-title TestPlsnFWIHNewLAndDelete
-// TestPlsnFWIHNewLAndDelete
-run testscripter c:\testframework\ui_testdompslnfwiconhelper.cfg 1
-[Endtest]
-
-[Test]
-title TestPlsnFWIHAddIconsToSettingItemsL
-// TestPlsnFWIHAddIconsToSettingItemsL
-run testscripter c:\testframework\ui_testdompslnfwiconhelper.cfg 2
-[Endtest]
-
-[Test]
-title TestPlsnFWIHGetLocalizedStringLC
-// TestPlsnFWIHGetLocalizedStringLC
-run testscripter c:\testframework\ui_testdompslnfwiconhelper.cfg 3
-[Endtest]
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/tctestdompslnfwpluginhandler.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-[Test]
-title TestPlsnFWPHNewLAndDelete
-// TestPlsnFWPHNewL TestPlsnFWPHDelete
-run testscripter c:\testframework\ui_testdompslnfwpluginhandler.cfg 1
-[Endtest]
-
-[Test]
-title TestPlsnFWPHNewLWithArrayAndDelete
-// TestPlsnFWPHNewLWithArray TestPlsnFWPHDelete
-run testscripter c:\testframework\ui_testdompslnfwpluginhandler.cfg 2
-[Endtest]
-
-[Test]
-title TestPlsnFWPHLoadPluginsLWithArray
-// TestPlsnFWPHLoadPluginsLWithArray
-run testscripter c:\testframework\ui_testdompslnfwpluginhandler.cfg 3
-[Endtest]
-
-[Test]
-title TestPlsnFWPHLoadPluginsLWithId
-// TestPlsnFWPHNewL
-run testscripter c:\testframework\ui_testdompslnfwpluginhandler.cfg 4
-[Endtest]
\ No newline at end of file
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/ui_testdompslnfwbasecontainer.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-[Test]
-title TestPlsnFWBCCPslnFWBaseContainer
-create testdompslnframework test
-test TestPlsnFWBCCPslnFWBaseContainer
-test TestPlsnFWBCDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWBCConstructL
-create testdompslnframework test
-test TestPlsnFWBCCPslnFWBaseContainer
-test TestPlsnFWBCConstructL
-test TestPlsnFWBCDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWBCBaseConstructL
-create testdompslnframework test
-test TestPlsnFWBCCPslnFWBaseContainer
-test TestPlsnFWBCBaseConstructL
-test TestPlsnFWBCDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWBCSetMiddleSoftkeyObserver
-create testdompslnframework test
-test TestPlsnFWBCCPslnFWBaseContainer
-test TestPlsnFWBCSetMiddleSoftkeyObserver
-test TestPlsnFWBCDelete
-delete test
-[Endtest]
\ No newline at end of file
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/ui_testdompslnfwbaseview.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,184 +0,0 @@
-[Test] //1
-title TestPlsnFWBVCPslnFWBaseView
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //2
-title TestPlsnFWBVConstructL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVConstructL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //3
-title TestPlsnFWBVSetCurrentItem
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetCurrentItem 1
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //4
-title TestPlsnFWBVSetCurrentItem
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetCurrentItem 2
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //5
-title TestPlsnFWBVContainer
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVConstructL
-test TestPlsnFWBVContainer
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //6
-title TestPlsnFWBVOpenLocalizedResourceFileL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVOpenLocalizedResourceFileL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //7
-title TestPlsnFWBVOpenLocalizedResourceFileLWithPathL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVOpenLocalizedResourceFileLWithPathL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //8
-title TestPlsnFWBVSetNaviPaneDecorator
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetNaviPaneDecorator
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //9
-title TestPlsnFWBVDoActivateL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVDoActivateL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //10
-title TestPlsnFWBVDoDeactivate
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVDoDeactivate
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //11
-title TestPlsnFWBVSetTabIndex
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetTabIndex
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //12
-title TestPlsnFWBVGetTabIndex
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetNaviPaneDecorator
-test TestPlsnFWBVSetTabIndex
-test TestPlsnFWBVGetTabIndex
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //13
-title TestPlsnFWBVSetNaviPaneL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetNaviPaneL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //14
-title TestPlsnFWBVCreateNaviPaneContextL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVCreateNaviPaneContextL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //15
-title TestPlsnFWBVCreateContainerL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVCreateContainerL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //16
-title TestPlsnFWBVNewContainerL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVNewContainerL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //17
-title TestPlsnFWBVSetNaviPaneLWithTIntL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetNaviPaneLWithTIntL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //18
-title TestPlsnFWBVSetMiddleSoftKeyLabelL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVSetMiddleSoftKeyLabelL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
-
-[Test] //19
-title TestPlsnFWBVHandleCommandL
-create testdompslnframework test
-bringtoforeground
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVHandleCommandL
-test TestPlsnFWBVDelete
-sendtobackground
-delete test
-[Endtest]
-
-[Test] //20
-title TestPlsnFWBVSetTitlePaneL
-create testdompslnframework test
-test TestPlsnFWBVCPslnFWBaseView
-test TestPlsnFWBVConstructL
-test TestPlsnFWBVSetTitlePaneL
-test TestPlsnFWBVDelete
-delete test
-[Endtest]
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/ui_testdompslnfwiconhelper.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-[Test]
-title TestPlsnFWIHNewLAndDelete
-create testdompslnframework test
-test TestPlsnFWIHNewL
-test TestPlsnFWIHDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWIHAddIconsToSettingItemsL
-create testdompslnframework test
-test TestPlsnFWIHNewL
-test TestPlsnFWIHAddIconsToSettingItemsL
-test TestPlsnFWIHDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWIHGetLocalizedStringLC
-create testdompslnframework test
-test TestPlsnFWIHNewL
-test TestPlsnFWIHGetLocalizedStringLC
-test TestPlsnFWIHDelete
-delete test
-[Endtest]
--- a/classicui_plat/personalisation_framework_api/tsrc/conf/ui_testdompslnfwpluginhandler.cfg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-[Test]
-title TestPlsnFWPHNewLAndDelete
-create testdompslnframework test
-test TestPlsnFWPHNewL
-test TestPlsnFWPHDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWPHNewLWithArrayAndDelete
-create testdompslnframework test
-test TestPlsnFWPHNewLWithArray
-test TestPlsnFWPHDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWPHLoadPluginsLWithArray
-create testdompslnframework test
-test TestPlsnFWPHNewLWithArray
-test TestPlsnFWPHLoadPluginsLWithArray
-test TestPlsnFWPHDelete
-delete test
-[Endtest]
-
-[Test]
-title TestPlsnFWPHLoadPluginsLWithId
-create testdompslnframework test
-test TestPlsnFWPHNewLWithArray
-test TestPlsnFWPHLoadPluginsLWithId
-test TestPlsnFWPHDelete
-delete test
-[Endtest]
\ No newline at end of file
--- a/classicui_plat/personalisation_framework_api/tsrc/data/testdompslnframework.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Resource definitions for project testsdkframework
-*
-*/
-
-
-
-NAME PSLN
-
-#include <eikon.rh>
-#include <eikon.rsg>
-#include <avkon.hrh>
-#include <avkon.mbg>
-#include <avkon.rsg>
-#include <avkon.rh>
-#include <avkonicons.hrh>
-#include "testdompslnframework.loc"
-
-#include <appinfo.rh>
-
-// RESOURCE DEFINITIONS
-//-----------------------------------------------------------------------------
-//
-// RSS_SIGNATURE
-//
-//
-//-----------------------------------------------------------------------------
-RESOURCE RSS_SIGNATURE { }
-
-RESOURCE TBUF { buf=""; }
-
-RESOURCE TBUF r_buffer { buf = qtn_testdompsln_buffer; }
-//-----------------------------------------------------------------------------
-//
-// r_testdompslnframework_listbox
-// ListBox( Single )
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE LISTBOX r_testdompslnframework_listbox
- {
- array_id = r_testdompslnframework_item_array;
- flags = EAknListBoxSelectionList;
- }
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_item_array
-// Items array for ListBox( Single 3 )
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE ARRAY r_testdompslnframework_item_array
- {
- items =
- {
- LBUF
- {
- txt = qtn_testdompsln_one;
- },
- LBUF
- {
- txt = qtn_testdompsln_two;
- }
- };
- }
-//-----------------------------------------------------------------------------
-//
-// NAVI_LABEL r_testpsln_label
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE NAVI_LABEL r_testpsln_label
- {
- txt = qtn_testdompsln_label;
- }
-//-----------------------------------------------------------------------------
-//
-// TITLE_PANE r_testpsln_title_resource
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE TITLE_PANE r_testpsln_title_resource
- {
- txt = qtn_testdompsln_title;
- }
--- a/classicui_plat/personalisation_framework_api/tsrc/eabi/testdompslnframeworku.def Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-EXPORTS
- _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
- _ZTI19CTestDOMPslnFWAppUi @ 2 NONAME ; #<TI>#
- _ZTI19CTestPslnFWBaseView @ 3 NONAME ; #<TI>#
- _ZTI24CTestPslnFWBaseContainer @ 4 NONAME ; #<TI>#
- _ZTV19CTestDOMPslnFWAppUi @ 5 NONAME ; #<VT>#
- _ZTV19CTestPslnFWBaseView @ 6 NONAME ; #<VT>#
- _ZTV24CTestPslnFWBaseContainer @ 7 NONAME ; #<VT>#
-
--- a/classicui_plat/personalisation_framework_api/tsrc/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: ?Description
-*
-*/
-
-
-
-PRJ_PLATFORMS
-// specify the platforms your component needs to be built for here
-// defaults to WINS MARM so you can ignore this if you just build these
-DEFAULT
-
-
-PRJ_EXPORTS
-
-PRJ_TESTMMPFILES
-testdompslnframework.mmp
-
-PRJ_MMPFILES
-
-// End of File
--- a/classicui_plat/personalisation_framework_api/tsrc/group/testdompslnframework.mmp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,95 +0,0 @@
-/*TYPE TESTCLASS*//*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: ?Description
-*
-*/
-
-
-
-#include <data_caging_paths.hrh>
-
-#ifdef SBSV2
-
- #include <platform_paths.hrh>
-
-#else // SBSV2 not defined
-
- #include <platform_paths.hrh>
-
-#endif // SBSV2
-
-TARGET testdompslnframework.dll
-TARGETTYPE dll
-UID 0x1000008D 0x2001CB80
-
-CAPABILITY ALL -TCB
-
-DEFFILE testdompslnframework.def
-
-#ifdef SBSV2
- USERINCLUDE ../inc
-
- MW_LAYER_SYSTEMINCLUDE
-
- SOURCEPATH ../data
- START RESOURCE testdompslnframework.rss
- HEADER
- TARGETPATH RESOURCE_FILES_DIR
- LANGUAGE_IDS
- END
-
- SOURCEPATH ../src
-
-#else // SBSV2 not defined
-USERINCLUDE ../inc
-
-MW_LAYER_SYSTEMINCLUDE
-
-SOURCEPATH ../data
- START RESOURCE testdompslnframework.rss
- HEADER
- TARGETPATH RESOURCE_FILES_DIR
- LANGUAGE_IDS
- END
-
-SOURCEPATH ../src
-#endif // SBSV2
-
-SOURCE testdompslnframework.cpp
-SOURCE testdompslnframeworkblocks.cpp
-SOURCE testdompslnfwblocksbasecontainer.cpp
-SOURCE testdompslnfwblocksbaseview.cpp
-SOURCE testdompslnfwblocksiconhelper.cpp
-SOURCE testdompslnfwblockspluginhandler.cpp
-SOURCE testdompslnfwappui.cpp
-SOURCE testdompslnfwbc.cpp
-SOURCE testdompslnfwbv.cpp
-
-LIBRARY euser.lib
-LIBRARY stiftestinterface.lib
-LIBRARY stiftestengine.lib
-LIBRARY pslnframework.lib
-LIBRARY cone.lib
-LIBRARY eikcore.lib
-LIBRARY eikctl.lib
-LIBRARY eikcoctl.lib
-LIBRARY eiksrv.lib
-LIBRARY avkon.lib
-LIBRARY egul.lib
-LIBRARY commonengine.lib
-LIBRARY ecom.lib
-
-LANG SC
-
-// End of File
--- a/classicui_plat/personalisation_framework_api/tsrc/group/testdompslnframework.pkg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +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
-#{"testdompslnframework"}, (0x2001CB80), 1, 0, 0, TYPE=SA
-
-; Localised Vendor name
-%{"Nokia"}
-
-; Unique Vendor name
-:"Nokia"
-
-
-;Copying ordinary file (not language dependent) to fixed drive drive.
-
-"..\init\testdompslnframework.ini"-"c:\Testframework\testdompslnframework.ini", FF ; FF stands for Normal file
-
-"..\conf\tctestdompslnfwbasecontainer.cfg"-"c:\Testframework\tctestdompslnfwbasecontainer.cfg", FF ; FF stands for Normal file
-"..\conf\tctestdompslnfwbaseview.cfg"-"c:\Testframework\tctestdompslnfwbaseview.cfg", FF ; FF stands for Normal file
-"..\conf\tctestdompslnfwiconhelper.cfg"-"c:\Testframework\tctestdompslnfwiconhelper.cfg", FF ; FF stands for Normal file
-"..\conf\tctestdompslnfwpluginhandler.cfg"-"c:\Testframework\tctestdompslnfwpluginhandler.cfg", FF ; FF stands for Normal file
-
-"..\conf\ui_testdompslnfwbasecontainer.cfg"-"c:\Testframework\ui_testdompslnfwbasecontainer.cfg", FF ; FF stands for Normal file
-"..\conf\ui_testdompslnfwbaseview.cfg"-"c:\Testframework\ui_testdompslnfwbaseview.cfg", FF ; FF stands for Normal file
-"..\conf\ui_testdompslnfwiconhelper.cfg"-"c:\Testframework\ui_testdompslnfwiconhelper.cfg", FF ; FF stands for Normal file
-"..\conf\ui_testdompslnfwpluginhandler.cfg"-"c:\Testframework\ui_testdompslnfwpluginhandler.cfg", FF ; FF stands for Normal file
-
-"\epoc32\RELEASE\ARMV5\urel\testdompslnframework.dll"-"c:\sys\bin\testdompslnframework.dll", FF
-
-"\epoc32\data\Z\resource\testdompslnframework.rsc"-"c:\resource\testdompslnframework.rsc", FF
-
-; Trim For Mms
-; ------------
-; to be added later
--- a/classicui_plat/personalisation_framework_api/tsrc/inc/testdompslnframework.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,458 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: ?Description
-*
-*/
-
-
-
-#ifndef C_TESTDOMPSLNFRAMEWORK_H
-#define C_TESTDOMPSLNFRAMEWORK_H
-
-// INCLUDES
-#include <stiflogger.h>
-#include <testscripterinternal.h>
-#include <stiftestmodule.h>
-#include <testclassassert.h>
-#include <eikenv.h>
-
-// CONSTANTS
-
-// MACROS
-//#define ?macro ?macro_def
-#define TEST_CLASS_VERSION_MAJOR 0
-#define TEST_CLASS_VERSION_MINOR 0
-#define TEST_CLASS_VERSION_BUILD 0
-
-// Logging path
-_LIT( KtestdompslnframeworkLogPath, "\\logs\\testframework\\testdompslnframework\\" );
-// Log file
-_LIT( KtestdompslnframeworkLogFile, "testdompslnframework.txt" );
-_LIT( KtestdompslnframeworkLogFileWithTitle, "testdompslnframework_[%S].txt" );
-//resource
-_LIT( KFilePath, "C:\\resource\\testdompslnframework.rsc" );
-_LIT( KFileDir, "C:\\resource\\" );
-
-// CLASS DECLARATION
-class CTestDOMPSLNFramework;
-class CPslnFWAppThemeHandler;
-class CPslnFWBaseContainer;
-class CTestPslnFWBaseView;
-class CPslnFWIconHelper;
-class CPslnFWPluginHandler;
-
-/**
-* Ctestdompslnframework test class for STIF Test Framework TestScripter.
-*/
-NONSHARABLE_CLASS(CTestDOMPSLNFramework) : public CScriptBase
- {
- public: // Constructors and destructor
-
- /**
- * Two-phased constructor.
- */
- static CTestDOMPSLNFramework* NewL( CTestModuleIf& aTestModuleIf );
-
- /**
- * Destructor.
- */
- virtual ~CTestDOMPSLNFramework();
-
- public: // Functions from base classes
-
- /**
- * From CScriptBase Runs a script line.
- * @since S60 5.0
- * @param aItem Script line containing method name and parameters
- * @return Symbian OS error code
- */
- virtual TInt RunMethodL( CStifItemParser& aItem );
-
- private:
-
- /**
- * C++ default constructor.
- */
- CTestDOMPSLNFramework( CTestModuleIf& aTestModuleIf );
-
- /**
- * By default Symbian 2nd phase constructor is private.
- */
- void ConstructL();
-
- /**
- * Frees all resources allocated from test methods.
- * @since S60 5.0
- */
- void Delete();
-
- /**
- * Test methods are listed below.
- */
-
-private:// PslnFWBaseContainer.h
- /**
- * TestPlsnFWBCConstructL test function for
- * testing the ConstructL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBCConstructL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBCBaseConstructL test function for
- * testing the BaseConstructL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBCBaseConstructL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBCCPslnFWBaseContainer test function for
- * testing the CPslnFWBaseContainer function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBCCPslnFWBaseContainerL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBCCPslnFWBaseContainer test function for
- * testing the CPslnFWBaseContainer function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBCDelete( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBCSetMiddleSoftkeyObserver test function for
- * testing the SetMiddleSoftkeyObserver function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBCSetMiddleSoftkeyObserverL( CStifItemParser& aItem );
-
-private://PslnFWBaseView.h
- /**
- * TestPlsnFWBVCPslnFWBaseView test function for
- * testing the PslnFWBaseView function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVCPslnFWBaseViewL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVConstructL test function for
- * testing the ConstructL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVConstructL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVDelete test function for
- * testing the Deconstruct function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVDelete( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetCurrentItem test function for
- * testing the CurrentItem function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetCurrentItem( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVContainer test function for
- * testing the Container function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVContainer( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVOpenLocalizedResourceFileL test function for
- * testing the OpenLocalizedResourceFileL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVOpenLocalizedResourceFileL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVOpenLocalizedResourceFileLWithPathL test function for
- * testing the OpenLocalizedResourceFileL function with path param
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVOpenLocalizedResourceFileLWithPathL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetNaviPaneDecorator test function for
- * testing the SetNaviPaneDecorator function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetNaviPaneDecoratorL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVDoActivateL test function for
- * testing the DoActivateL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVDoActivateL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVDoDeactivate test function for
- * testing the DoDeactivate function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVDoDeactivateL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetTabIndex test function for
- * testing the SetTabIndex function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetTabIndex( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVGetTabIndex test function for
- * testing the GetTabIndex function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVGetTabIndex( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetNaviPaneL test function for testing the SetNaviPaneL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetNaviPaneL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVCreateNaviPaneContextL test function for
- * testing the CreateNaviPaneContextL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVCreateNaviPaneContextL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVCreateContainerL test function for testing the CreateContainerL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVCreateContainerL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVNewContainerL test function for testing the NewContainerL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVNewContainerL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetNaviPaneLWithTIntL test function for testing the SetNaviPaneL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetNaviPaneLWithTIntL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetMiddleSoftKeyLabelL test function for
- * testing the SetMiddleSoftKeyLabelL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetMiddleSoftKeyLabelL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVHandleCommandL test function for testing the HandleCommandL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVHandleCommandL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWBVSetTitlePaneL test function for testing the SetTitlePaneL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWBVSetTitlePaneL( CStifItemParser& aItem );
-
-private:
- //PslnFWIconHelper.h
- /**
- * TestPlsnFWIHNewL test function for
- * testing the NewL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWIHNewL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWIHNewL test function for
- * testing the NewL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWIHDelete( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWIHAddIconsToSettingItemsL test function for
- * testing the AddIconsToSettingItemsL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWIHAddIconsToSettingItemsL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWIHGetLocalizedStringLC test function for
- * testing the GetLocalizedStringLC function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWIHGetLocalizedStringLC( CStifItemParser& aItem );
-
-private:
- //PslnFWPluginHandler.h
- /**
- * TestPlsnFWPHNewL test function for
- * testing the NewL function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWPHNewL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWPHNewL test function for
- * testing the NewL function with CArrayPtrFlat param
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWPHNewLWithArrayL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWPHDelete test function for
- * testing the Deconstruct function
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWPHDelete( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWPHLoadPluginsLWithArray test function for
- * testing the LoadPluginsL function with CArrayPtrFlat param
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWPHLoadPluginsLWithArrayL( CStifItemParser& aItem );
-
- /**
- * TestPlsnFWPHLoadPluginsLWithId test function for
- * testing the LoadPluginsL function with TUid param
- * @since S60 5.0
- * @param aItem never used
- * @return Symbian OS error code.
- */
- virtual TInt TestPlsnFWPHLoadPluginsLWithId( CStifItemParser& aItem );
-
- //ADD NEW METHOD DEC HERE
- //[TestMethods] - Do not remove
-private:
- /**
- * Method used to log version of test class
- */
- void SendTestClassVersion();
-
-private://data
- /**
- * for test CPslnFWAppThemeHandler
- */
- CPslnFWAppThemeHandler* iHandle;
-
- /**
- * for test CPslnFWBaseContainer
- */
- CPslnFWBaseContainer* iFWBContainer;
-
- /**
- * for test CPslnFWBaseView
- */
- CTestPslnFWBaseView* iFWBView;
-
- /**
- * for test CPslnFWIconHelper
- */
- CPslnFWIconHelper* iHelper;
-
- /**
- * for test CPslnFWPluginHandler
- */
- CPslnFWPluginHandler* iFWPHandler;
-
- /**
- * Own, for CEikonEnv::Static()
- */
- CEikonEnv* iEikonEnvPointer;
-
- // ScreenSaver Property
- TInt iOldScreenSaverProperty;
-
- // Resource file offset
- TInt iOffset;
- };
-
-#endif // C_TESTDOMPSLNFRAMEWORK_H
-
-// End of File
--- a/classicui_plat/personalisation_framework_api/tsrc/inc/testdompslnframework.loc Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#define qtn_testdompsln_buffer "aaa"
-#define qtn_testdompsln_one "first"
-#define qtn_testdompsln_two "second"
-#define qtn_testdompsln_label "Next"
-#define qtn_testdompsln_title "TestPLSN"
--- a/classicui_plat/personalisation_framework_api/tsrc/inc/testdompslnfwappui.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#ifndef C_TESTDOMPSLNFWAPPUI_H
-#define C_TESTDOMPSLNFWAPPUI_H
-
-#include <aknviewappui.h>
-
-class CTestPslnFWBaseView;
-
-class CTestDOMPslnFWAppUi : public CAknViewAppUi
- {
-public:
- // constructor and destructor
- CTestDOMPslnFWAppUi();
- virtual ~CTestDOMPslnFWAppUi();
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL();
-
-public:
- // from CCoeAppUi
- TKeyResponse HandleKeyEventL(
- const TKeyEvent& aKeyEvent,
- TEventCode aType );
-
- // from CEikAppUi
- void HandleCommandL( TInt aCommand );
- void HandleResourceChangeL( TInt aType );
-
- // from CAknAppUi
- void HandleViewDeactivation(
- const TVwsViewId& aViewIdToBeDeactivated,
- const TVwsViewId& aNewlyActivatedViewId );
-
-private:
- void InitializeContainersL();
-
-private:
- CTestPslnFWBaseView* iFWBView;
- };
-
-#endif /*C_TESTDOMPSLNFWAPPUI_H*/
--- a/classicui_plat/personalisation_framework_api/tsrc/inc/testdompslnfwbc.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: extended class for abstruct class declaration
-*
-*/
-
-
-#ifndef C_TESTDOMPSLNFWBC_H
-#define C_TESTDOMPSLNFWBC_H
-
-#include <pslnfwbasecontainer.h>
-
-/**
- * Test Class CTestPslnFWBaseContainer
- */
-class CTestPslnFWBaseContainer : public CPslnFWBaseContainer
- {
-
-public:
-
- /**
- * C++ default constructor
- */
- CTestPslnFWBaseContainer();
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL( const TRect& aRect );
-
- /**
- * C++ default destructor
- */
- ~CTestPslnFWBaseContainer();
-
- /**
- * Construct ListBox from resource id
- */
- void ConstructListBoxL( TInt aResLbxId );
- };
-
-
-#endif /*C_TESTDOMPSLNFWBC_H*/
--- a/classicui_plat/personalisation_framework_api/tsrc/inc/testdompslnfwbv.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: extended class for abstruct class declaration
-*
-*/
-
-#ifndef C_TESTDOMPSLNFWBV_H
-#define C_TESTDOMPSLNFWBV_H
-
-#include <pslnfwbaseview.h>
-#include <coneresloader.h>
-
-/**
- * Test Class CTestPslnFWBaseView
- */
-class CTestPslnFWBaseView : public CPslnFWBaseView
- {
-public:
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL();
-
- /**
- * NewContainerL()
- */
- void NewContainerL();
-
- /**
- * HandleListBoxSelectionL()
- */
- void HandleListBoxSelectionL();
-
- /**
- * GetCaptionL() from CPslnFWPluginInterface
- */
- void GetCaptionL( TDes& ) const;
-
- /**
- * GetTabTextL() from CPslnFWPluginInterface
- */
- virtual void GetTabTextL( TDes& ) const;
-
- /**
- * CreateIconL() from CPslnFWPluginInterface
- */
- virtual CGulIcon* CreateIconL();
-
- /*
- * protected function
- */
- virtual void SetNaviPaneL();
-
- /*
- * protected function
- */
- virtual void CreateNaviPaneContextL( TInt aResourceId );
-
- /*
- * protected function
- */
- virtual void CreateContainerL();
-
- /*
- * protected function
- */
- virtual void SetNaviPaneL( const TInt aTabLocation );
-
- /*
- * protected function
- */
- virtual void SetMiddleSoftKeyLabelL( const TInt aResourceId, const TInt aCommandId );
-
- /*
- * protected function
- */
- virtual void HandleCommandL( TInt aCommand );
-
- /*
- * protected function
- */
- virtual void SetTitlePaneL( TInt& aResourceId );
-
- /**
- * Id()
- */
- TUid Id() const;
- };
-
-#endif /*C_TESTDOMPSLNFWBV_H*/
--- a/classicui_plat/personalisation_framework_api/tsrc/init/testdompslnframework.ini Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,187 +0,0 @@
-#
-# This is STIFTestFramework initialization file
-# Comment lines start with '#'-character.
-# See STIF TestFramework users guide.doc for instructions
-
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-# Set following test engine settings:
-# - Set Test Reporting mode. TestReportMode's possible values are:
-# + 'Summary': Summary of the tested test cases.
-# + 'Environment': Hardware and software info.
-# + 'TestCases': Test case report.
-# + 'FullReport': Set of all above ones.
-# + Example 'TestReportMode= Summary TestCases'
-#
-# - CreateTestReport setting controls report creation mode
-# + YES, Test report will created.
-# + NO, No Test report.
-#
-# - File path indicates the base path of the test report.
-# - File name indicates the name of the test report.
-#
-# - File format indicates the type of the test report.
-# + TXT, Test report file will be txt type, for example 'TestReport.txt'.
-# + HTML, Test report will be html type, for example 'TestReport.html'.
-#
-# - File output indicates output source of the test report.
-# + FILE, Test report logging to file.
-# + RDEBUG, Test report logging to using rdebug.
-#
-# - File Creation Mode indicates test report overwriting if file exist.
-# + OVERWRITE, Overwrites if the Test report file exist.
-# + APPEND, Continue logging after the old Test report information if
-# report exist.
-
-[Engine_Defaults]
-
-TestReportMode= FullReport # Possible values are:
- # 'Summary', 'Environment', 'TestCases' or 'FullReport'
-
-CreateTestReport= YES # Possible values: YES or NO
-
-TestReportFilePath= C:\LOGS\TestFramework\
-TestReportFileName= TestReport
-
-TestReportFormat= TXT # Possible values: TXT or HTML
-TestReportOutput= FILE # Possible values: FILE or RDEBUG
-TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
-UITestingSupport= Yes
-SeparateProcesses= YES
-[End_Defaults]
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-
-
-
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-# Module configurations start
-# Modules are added between module tags
-# tags. Module name is specified after ModuleName= tag, like
-# ModuleName= XXXXXXXXX
-# Modules might have initialisation file, specified as
-# IniFile= YYYYYY
-# Modules might have several configuration files, like
-# TestCaseFile= NormalCases.txt
-# TestCaseFile= SmokeCases.txt
-# TestCaseFile= ManualCases.txt
-
-# (TestCaseFile is synonym for old term ConfigFile)
-
-# Following case specifies demo module settings. Demo module
-# does not read any settings from file, so tags
-# IniFile and TestCaseFile are not used.
-# In the simplest case it is enough to specify only the
-# name of the test module when adding new test module
-
-[New_Module]
-ModuleName= testcombiner
-TestCaseFile= c:\testframework\tctestdompslnfwbasecontainer.cfg
-TestCaseFile= c:\testframework\tctestdompslnfwbaseview.cfg
-TestCaseFile= c:\testframework\tctestdompslnfwiconhelper.cfg
-TestCaseFile= c:\testframework\tctestdompslnfwpluginhandler.cfg
-[End_Module]
-
-#[New_Module]
-#ModuleName= testscripter
-#TestCaseFile= c:\testframework\ui_testdompslnfwbaseview.cfg
-#TestCaseFile= c:\testframework\ui_testdompslnfwiconhelper.cfg
-#TestCaseFile= c:\testframework\ui_testdompslnfwmsklabelobserver.cfg
-#TestCaseFile= c:\testframework\ui_testdompslnfwpluginhandler.cfg
-#[End_Module]
-
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-
-#Load testmoduleXXX, optionally with initialization file and/or test case files
-#[New_Module]
-#ModuleName= testmodulexxx
-
-#TestModuleXXX used initialization file
-#IniFile= init.txt
-
-#TestModuleXXX used configuration file(s)
-#TestCaseFile= testcases1.cfg
-#TestCaseFile= testcases2.cfg
-#TestCaseFile= manualtestcases.cfg
-
-#[End_Module]
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-
-
-
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-# Set STIFTestFramework logging overwrite parameters for Logger.
-# Hardware and emulator environment logging path and styles can
-# be configured from here to overwrite the Logger's implemented values.
-#
-# Settings description:
-# - Indicates option for creation log directory/directories. If log directory/directories
-# is/are not created by user they will make by software.
-# + YES, Create log directory/directories if not allready exist.
-# + NO, Log directory/directories not created. Only created one is used.
-#
-# - Overwrite emulator path setting.
-# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined
-# Logger's path 'D:\\LOGS\\Module\\' with those definition the path
-# will be 'C:\LOGS\TestFramework\LOGS\Module\'
-#
-# - Overwrite emulator's logging format.
-# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'.
-# + HTML, Log file(s) will be html type(s), for example 'Module.html'.
-#
-# - Overwrited emulator logging output source.
-# + FILE, Logging to file(s).
-# + RDEBUG, Logging to using rdebug(s).
-#
-# - Overwrite hardware path setting (Same description as above in emulator path).
-# - Overwrite hardware's logging format(Same description as above in emulator format).
-# - Overwrite hardware's logging output source(Same description as above in emulator output).
-#
-# - File Creation Mode indicates file overwriting if file exist.
-# + OVERWRITE, Overwrites if file(s) exist.
-# + APPEND, Continue logging after the old logging information if file(s) exist.
-#
-# - Will thread id include to the log filename.
-# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'.
-# + NO, No thread id to log file(s), Example filename 'Module.txt'.
-#
-# - Will time stamps include the to log file.
-# + YES, Time stamp added to each line in log file(s). Time stamp is
-# for example'12.Nov.2003 115958 LOGGING INFO'
-# + NO, No time stamp(s).
-#
-# - Will line breaks include to the log file.
-# + YES, Each logging event includes line break and next log event is in own line.
-# + NO, No line break(s).
-#
-# - Will event ranking include to the log file.
-# + YES, Event ranking number added to each line in log file(s). Ranking number
-# depends on environment's tics, for example(includes time stamp also)
-# '012 12.Nov.2003 115958 LOGGING INFO'
-# + NO, No event ranking.
-#
-
-[Logger_Defaults]
-
-#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
-
-CreateLogDirectories= YES # Possible values: YES or NO
-
-EmulatorBasePath= C:\LOGS\TestFramework\
-EmulatorFormat= HTML # Possible values: TXT or HTML
-EmulatorOutput= FILE # Possible values: FILE or RDEBUG
-
-#HardwareBasePath= D:\LOGS\TestFramework\
-#HardwareFormat= HTML # Possible values: TXT or HTML
-#HardwareOutput= FILE # Possible values: FILE or RDEBUG
-
-FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
-
-#ThreadIdToLogFile= YES # Possible values: YES or NO
-#WithTimeStamp= YES # Possible values: YES or NO
-#WithLineBreak= YES # Possible values: YES or NO
-#WithEventRanking= YES # Possible values: YES or NO
-
-[End_Logger_Defaults]
-# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-
-# End of file
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnframework.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,163 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: ?Description
-*
-*/
-
-
-
-// INCLUDE FILES
-#include <stiftestinterface.h>
-#include <settingserverclient.h>
-#include <e32property.h>
-#include <coemain.h>
-#include <eikclb.h>
-#include <coeaui.h>
-
-#include "testdompslnframework.h"
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::Ctestdompslnframework
-// C++ default constructor can NOT contain any code, that
-// might leave.
-// -----------------------------------------------------------------------------
-//
-CTestDOMPSLNFramework::CTestDOMPSLNFramework(
- CTestModuleIf& aTestModuleIf ):
- CScriptBase( aTestModuleIf )
- {
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::ConstructL
-// Symbian 2nd phase constructor can leave.
-// -----------------------------------------------------------------------------
-//
-void CTestDOMPSLNFramework::ConstructL()
- {
- //Read logger settings to check whether test case name is to be
- //appended to log file name.
- RSettingServer settingServer;
- TInt ret = settingServer.Connect();
- if(ret != KErrNone)
- {
- User::Leave(ret);
- }
- // Struct to StifLogger settigs.
- TLoggerSettings loggerSettings;
- // Parse StifLogger defaults from STIF initialization file.
- ret = settingServer.GetLoggerSettings(loggerSettings);
- if(ret != KErrNone)
- {
- User::Leave(ret);
- }
- // Close Setting server session
- settingServer.Close();
-
- TFileName logFileName;
-
- if(loggerSettings.iAddTestCaseTitle)
- {
- TName title;
- TestModuleIf().GetTestCaseTitleL(title);
- logFileName.Format(KtestdompslnframeworkLogFileWithTitle, &title);
- }
- else
- {
- logFileName.Copy(KtestdompslnframeworkLogFile);
- }
-
- iLog = CStifLogger::NewL( KtestdompslnframeworkLogPath,
- logFileName,
- CStifLogger::ETxt,
- CStifLogger::EFile,
- EFalse );
-
- iOffset = CCoeEnv::Static()->AddResourceFileL( KFilePath );
-
- SendTestClassVersion();
-
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::NewL
-// Two-phased constructor.
-// -----------------------------------------------------------------------------
-//
-CTestDOMPSLNFramework* CTestDOMPSLNFramework::NewL(
- CTestModuleIf& aTestModuleIf )
- {
- CTestDOMPSLNFramework* self = new (ELeave) CTestDOMPSLNFramework( aTestModuleIf );
-
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop();
-
- return self;
-
- }
-
-// Destructor
-CTestDOMPSLNFramework::~CTestDOMPSLNFramework()
- {
-
- // Delete resources allocated from test methods
- Delete();
-
- if ( iEikonEnvPointer )
- {
- delete iEikonEnvPointer;
- iEikonEnvPointer = NULL;
- }
- // Delete logger
- delete iLog;
- CCoeEnv::Static()->DeleteResourceFile( iOffset );
- }
-
-//-----------------------------------------------------------------------------
-// Ctestdompslnframework::SendTestClassVersion
-// Method used to send version of test class
-//-----------------------------------------------------------------------------
-//
-void CTestDOMPSLNFramework::SendTestClassVersion()
- {
- TVersion moduleVersion;
- moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR;
- moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR;
- moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD;
-
- TFileName moduleName;
- moduleName = _L("testdompslnframework.dll");
-
- TBool newVersionOfMethod = ETrue;
- TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod);
- }
-
-// ========================== OTHER EXPORTED FUNCTIONS =========================
-
-// -----------------------------------------------------------------------------
-// LibEntryL is a polymorphic Dll entry point.
-// Returns: CScriptBase: New CScriptBase derived object
-// -----------------------------------------------------------------------------
-//
-EXPORT_C CScriptBase* LibEntryL(
- CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework
- {
-
- return ( CScriptBase* ) CTestDOMPSLNFramework::NewL( aTestModuleIf );
-
- }
-// End of File
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnframeworkblocks.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,124 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-
-
-// [INCLUDE FILES] - do not remove
-#include <e32svr.h>
-#include <stifparser.h>
-#include <stiftestinterface.h>
-#include "testdompslnframework.h"
-
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::Delete
-// Delete here all resources allocated and opened from test methods.
-// Called from destructor.
-// -----------------------------------------------------------------------------
-//
-void CTestDOMPSLNFramework::Delete()
- {
-
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::RunMethodL
-// Run specified method. Contains also table of test mothods and their names.
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::RunMethodL(
- CStifItemParser& aItem )
- {
-
- static TStifFunctionInfo const KFunctions[] =
- {
- // Copy this line for every implemented function.
- // First string is the function name used in TestScripter script file.
- // Second is the actual implementation member function.
- // PslnFWBaseContainer.h
- ENTRY( "TestPlsnFWBCConstructL", CTestDOMPSLNFramework::TestPlsnFWBCConstructL ),
- ENTRY( "TestPlsnFWBCBaseConstructL", CTestDOMPSLNFramework::TestPlsnFWBCBaseConstructL ),
- ENTRY( "TestPlsnFWBCCPslnFWBaseContainer",
- CTestDOMPSLNFramework::TestPlsnFWBCCPslnFWBaseContainerL ),
- ENTRY( "TestPlsnFWBCDelete", CTestDOMPSLNFramework::TestPlsnFWBCDelete ),
- ENTRY( "TestPlsnFWBCSetMiddleSoftkeyObserver",
- CTestDOMPSLNFramework::TestPlsnFWBCSetMiddleSoftkeyObserverL ),
-
- // PslnPluginInterface.h
- ENTRY( "TestPlsnFWBVCPslnFWBaseView",
- CTestDOMPSLNFramework::TestPlsnFWBVCPslnFWBaseViewL ),
- ENTRY( "TestPlsnFWBVConstructL", CTestDOMPSLNFramework::TestPlsnFWBVConstructL ),
- ENTRY( "TestPlsnFWBVDelete", CTestDOMPSLNFramework::TestPlsnFWBVDelete ),
- ENTRY( "TestPlsnFWBVSetCurrentItem",
- CTestDOMPSLNFramework::TestPlsnFWBVSetCurrentItem ),
- ENTRY( "TestPlsnFWBVContainer", CTestDOMPSLNFramework::TestPlsnFWBVContainer ),
- ENTRY( "TestPlsnFWBVOpenLocalizedResourceFileL",
- CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileL ),
- ENTRY( "TestPlsnFWBVOpenLocalizedResourceFileLWithPathL",
- CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileLWithPathL ),
- ENTRY( "TestPlsnFWBVSetNaviPaneDecorator",
- CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneDecoratorL ),
- ENTRY( "TestPlsnFWBVDoActivateL", CTestDOMPSLNFramework::TestPlsnFWBVDoActivateL ),
- ENTRY( "TestPlsnFWBVDoDeactivate", CTestDOMPSLNFramework::TestPlsnFWBVDoDeactivateL ),
- ENTRY( "TestPlsnFWBVSetTabIndex", CTestDOMPSLNFramework::TestPlsnFWBVSetTabIndex ),
- ENTRY( "TestPlsnFWBVGetTabIndex", CTestDOMPSLNFramework::TestPlsnFWBVGetTabIndex ),
- //protected
- ENTRY( "TestPlsnFWBVSetNaviPaneL", CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneL ),
- ENTRY( "TestPlsnFWBVCreateNaviPaneContextL",
- CTestDOMPSLNFramework::TestPlsnFWBVCreateNaviPaneContextL ),
- ENTRY( "TestPlsnFWBVCreateContainerL", CTestDOMPSLNFramework::TestPlsnFWBVCreateContainerL ),
- ENTRY( "TestPlsnFWBVNewContainerL", CTestDOMPSLNFramework::TestPlsnFWBVNewContainerL ),
- ENTRY( "TestPlsnFWBVSetNaviPaneLWithTIntL",
- CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneLWithTIntL ),
- ENTRY( "TestPlsnFWBVSetMiddleSoftKeyLabelL",
- CTestDOMPSLNFramework::TestPlsnFWBVSetMiddleSoftKeyLabelL ),
- ENTRY( "TestPlsnFWBVHandleCommandL", CTestDOMPSLNFramework::TestPlsnFWBVHandleCommandL ),
- ENTRY( "TestPlsnFWBVSetTitlePaneL", CTestDOMPSLNFramework::TestPlsnFWBVSetTitlePaneL ),
-
- // PslnFWIconHelper.h
- ENTRY( "TestPlsnFWIHNewL", CTestDOMPSLNFramework::TestPlsnFWIHNewL ),
- ENTRY( "TestPlsnFWIHDelete", CTestDOMPSLNFramework::TestPlsnFWIHDelete ),
- ENTRY( "TestPlsnFWIHAddIconsToSettingItemsL",
- CTestDOMPSLNFramework::TestPlsnFWIHAddIconsToSettingItemsL ),
- ENTRY( "TestPlsnFWIHGetLocalizedStringLC",
- CTestDOMPSLNFramework::TestPlsnFWIHGetLocalizedStringLC ),
-
- //PslnFWPluginHandler.h
- ENTRY( "TestPlsnFWPHNewL",CTestDOMPSLNFramework::TestPlsnFWPHNewL ),
- ENTRY( "TestPlsnFWPHNewLWithArray", CTestDOMPSLNFramework::TestPlsnFWPHNewLWithArrayL ),
- ENTRY( "TestPlsnFWPHDelete", CTestDOMPSLNFramework::TestPlsnFWPHDelete ),
- ENTRY( "TestPlsnFWPHLoadPluginsLWithArray",
- CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithArrayL ),
- ENTRY( "TestPlsnFWPHLoadPluginsLWithId",
- CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithId ),
-
-
- //ADD NEW ENTRY HERE
- // [test cases entries] - Do not remove
-
- };
-
- const TInt count = sizeof( KFunctions ) /
- sizeof( TStifFunctionInfo );
-
- return RunInternalL( KFunctions, count, aItem );
-
- }
-
-// [End of File] - Do not remove
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwappui.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,116 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#include "testdompslnfwbv.h"
-
-#include "testdompslnfwappui.h"
-
-//===============================CTestDOMPslnFWAppUi==========================
-//
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::CTestDOMPslnFWAppUi()
-// ---------------------------------------------------------------------------
-//
-CTestDOMPslnFWAppUi::CTestDOMPslnFWAppUi()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::~CTestDOMPslnFWAppUi()
-// ---------------------------------------------------------------------------
-//
-CTestDOMPslnFWAppUi::~CTestDOMPslnFWAppUi()
- {
- delete iFWBView;
- iFWBView = NULL;
- }
-
-void CTestDOMPslnFWAppUi::InitializeContainersL()
- {
- iFWBView = new( ELeave ) CTestPslnFWBaseView();
- AddViewL( iFWBView );
- SetDefaultViewL( *iFWBView );
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::HandleCommandL()
-// ---------------------------------------------------------------------------
-//
-void CTestDOMPslnFWAppUi::HandleCommandL( TInt aCommand )
- {
- TBool commandHandled = EFalse;
- switch ( aCommand )
- {
- default:
- break;
- }
-
-
- if ( !commandHandled )
- {
- if ( aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit )
- {
- Exit();
- }
- }
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::HandleResourceChangeL()
-// ---------------------------------------------------------------------------
-//
-void CTestDOMPslnFWAppUi::HandleResourceChangeL( TInt aType )
- {
- CAknViewAppUi::HandleResourceChangeL( aType );
-
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::HandleKeyEventL()
-// ---------------------------------------------------------------------------
-//
-TKeyResponse CTestDOMPslnFWAppUi::HandleKeyEventL(
- const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/ )
- {
- return EKeyWasNotConsumed;
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::HandleViewDeactivation()
-// ---------------------------------------------------------------------------
-//
-void CTestDOMPslnFWAppUi::HandleViewDeactivation(
- const TVwsViewId& aViewIdToBeDeactivated,
- const TVwsViewId& aNewlyActivatedViewId )
- {
- CAknViewAppUi::HandleViewDeactivation(
- aViewIdToBeDeactivated,
- aNewlyActivatedViewId );
- }
-
-// ---------------------------------------------------------------------------
-// CTestDOMPslnFWAppUi::ConstructL()
-// ---------------------------------------------------------------------------
-//
-void CTestDOMPslnFWAppUi::ConstructL()
- {
- BaseConstructL( );
- InitializeContainersL();
- iFWBView->HandleCommandL( 0 );
- }
-
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwbc.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#include <testdompslnframework.rsg>
-#include <eiktxlbx.h>
-#include <barsread.h>
-
-#include "testdompslnfwbc.h"
-
-//==============================CTestPslnFWBaseContainer=======================
-//
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseContainer::CPslnFWBaseContainerExt()
-// ---------------------------------------------------------------------------
-//
-CTestPslnFWBaseContainer::CTestPslnFWBaseContainer()
- {
- iListBox = NULL;
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static constructor
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseContainer::ConstructL( const TRect& aRect )
- {
- iListBox = new( ELeave ) CEikTextListBox();
- BaseConstructL( aRect, 0, R_TESTDOMPSLNFRAMEWORK_LISTBOX );
- }
-
-
-// ---------------------------------------------------------------------------
-// C++ default Destructor
-// ---------------------------------------------------------------------------
-//
-CTestPslnFWBaseContainer::~CTestPslnFWBaseContainer()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseContainer::ConstructListBoxL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseContainer::ConstructListBoxL( TInt aResLbxId )
- {
- TResourceReader rReader;
- iCoeEnv->CreateResourceReaderLC( rReader, aResLbxId );
- iListBox->ConstructFromResourceL( rReader );
- CleanupStack::PopAndDestroy(); // rReader
- }
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwblocksbasecontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,128 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Test PslnFWBaseContainer.h
- *
-*/
-
-
-// [INCLUDE FILES]
-#include "testdompslnframework.h"
-#include "testdompslnfwbc.h"
-// ============================ MEMBER FUNCTIONS ===============================
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBCConstructL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBCConstructL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBCConstructL, "In TestPlsnFWBCConstructL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCConstructL );
- // Print to log file
- iLog->Log( KTestPlsnFWBCConstructL );
-
- TRect rect( 0, 0, 0, 0 );
- iFWBContainer->ConstructL( rect );
- STIF_ASSERT_NOT_NULL( iFWBContainer );
-
- return KErrNone;
- }
-
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBCBaseConstructL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBCBaseConstructL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBCBaseConstructL, "In TestPlsnFWBCBaseConstructL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCBaseConstructL );
- // Print to log file
- iLog->Log( KTestPlsnFWBCBaseConstructL );
-
- TRect rect( 0, 0, 0, 0 );
- iFWBContainer->ConstructL( rect );
- STIF_ASSERT_NOT_NULL( iFWBContainer );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBCCPslnFWBaseContainer
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBCCPslnFWBaseContainerL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBCCPslnFWBaseContainer, "In TestPlsnFWBCCPslnFWBaseContainer" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCCPslnFWBaseContainer );
- // Print to log file
- iLog->Log( KTestPlsnFWBCCPslnFWBaseContainer );
-
- TRect rect( 0, 0, 0, 0 );
- iFWBContainer = new( ELeave ) CTestPslnFWBaseContainer;
- STIF_ASSERT_NOT_NULL( iFWBContainer );
-
- return KErrNone;
-
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBCDelete
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBCDelete( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBCDelete, "In TestPlsnFWBCDelete" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCDelete );
- // Print to log file
- iLog->Log( KTestPlsnFWBCDelete );
-
- delete iFWBContainer;
- iFWBContainer = NULL;
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBCSetMiddleSoftkeyObserver
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBCSetMiddleSoftkeyObserverL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBCSetMiddleSoftkeyObserver, "In TestPlsnFWBCSetMiddleSoftkeyObserver" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBCSetMiddleSoftkeyObserver );
- // Print to log file
- iLog->Log( KTestPlsnFWBCSetMiddleSoftkeyObserver );
-
- iFWBContainer->SetMiddleSoftkeyObserver( NULL );
-
- return KErrNone;
- }
-
-
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwblocksbaseview.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,471 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Test PslnFWBaseView.h
- *
-*/
-
-
-// [INCLUDE FILES]
-#include <aknnavi.h>
-#include <aknform.h>
-#include <aknnavide.h>
-#include <testdompslnframework.rsg>
-#include <avkon.hrh>
-#include <psln.hrh>
-#include <stifparser.h>
-
-#include "testdompslnfwbv.h"
-#include "testdompslnframework.h"
-#include "testdompslnfwappui.h"
-
-_LIT( KFileName, "testdompslnframework.rsc" );
-_LIT8( KMessage, "test message");
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVCPslnFWBaseView
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVCPslnFWBaseViewL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVCPslnFWBaseView, "In TestPlsnFWBVCPslnFWBaseView" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVCPslnFWBaseView );
- // Print to log file
- iLog->Log( KTestPlsnFWBVCPslnFWBaseView );
-
- iFWBView = new ( ELeave ) CTestPslnFWBaseView();
- STIF_ASSERT_NOT_NULL( iFWBView );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVConstructL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVConstructL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVConstructL, "In TestPlsnFWBVConstructL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVConstructL );
- // Print to log file
- iLog->Log( KTestPlsnFWBVConstructL );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->ConstructL() );
- return err;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVDelete
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVDelete( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVDelete, "In TestPlsnFWBVDelete" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVDelete );
- // Print to log file
- iLog->Log( KTestPlsnFWBVDelete );
-
- delete iFWBView;
- iFWBView=NULL;
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetCurrentItem
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetCurrentItem( CStifItemParser& aItem )
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVSetCurrentItem, "In TestPlsnFWBVSetCurrentItem" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVSetCurrentItem );
- // Print to log file
- iLog->Log( KTestPlsnFWBVSetCurrentItem );
-
- TInt flag;
- TInt err = aItem.GetNextInt( flag );
- if( err != KErrNone)
- return err;
- switch ( flag )
- {
- case 1:
- iFWBView->SetCurrentItem( 0 );
- break;
- case 2:
- iFWBView->SetCurrentItem( 1 );
- default:
- break;
- }
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVContainer
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVContainer( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVContainer, "In TestPlsnFWBVContainer" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVContainer );
- // Print to log file
- iLog->Log( KTestPlsnFWBVContainer );
-
- iFWBView->Container();
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVOpenLocalizedResourceFileL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVOpenLocalizedResourceFileLw, "In TestPlsnFWBVOpenLocalizedResourceFileL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVOpenLocalizedResourceFileLw );
- // Print to log file
- iLog->Log( KTestPlsnFWBVOpenLocalizedResourceFileLw );
-
- RConeResourceLoader loader( *CCoeEnv::Static() );
-
- TRAPD( err, iFWBView->OpenLocalizedResourceFileL( KFilePath, loader ) );
-
- return err;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVOpenLocalizedResourceFileLWithPathL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileLWithPathL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVOpenLocalizedResourceFileLWithPathL, "In TestPlsnFWBVOpenLocalizedResourceFileLWithPathL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVOpenLocalizedResourceFileLWithPathL );
- // Print to log file
- iLog->Log( KTestPlsnFWBVOpenLocalizedResourceFileLWithPathL );
-
- RConeResourceLoader loader( *CCoeEnv::Static() );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->OpenLocalizedResourceFileL( KFileName, loader, &KFileDir ) );
-
- return err;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetNaviPaneDecorator
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneDecoratorL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVSetNaviPaneDecorator, "In TestPlsnFWBVSetNaviPaneDecorator" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVSetNaviPaneDecorator );
- // Print to log file
- iLog->Log( KTestPlsnFWBVSetNaviPaneDecorator );
-
- CAknAppUi* appui = static_cast<CAknAppUi*>( CCoeEnv::Static()->AppUi() );
- CEikStatusPane* pane = appui->StatusPane ();
- CAknNavigationControlContainer* ncContainer =static_cast<CAknNavigationControlContainer*>(
- pane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
-
- CAknForm* frm = new( ELeave ) CAknForm();
- CleanupStack::PushL( frm );
- frm->ConstructL();
-
- CAknNavigationDecorator* decorate = CAknNavigationDecorator::NewL( ncContainer, frm );
- CleanupStack::PushL( decorate );
-
- iFWBView->SetNaviPaneDecorator( decorate );
-
- CleanupStack::Pop( decorate );
- CleanupStack::Pop( frm );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVDoActivateL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVDoActivateL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVDoActivateL, "In TestPlsnFWBVDoActivateL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVDoActivateL );
- // Print to log file
- iLog->Log( KTestPlsnFWBVDoActivateL );
-
- TVwsViewId viewid;
- TInt err = KErrNone;
- TRAP( err, iFWBView->DoActivateL( viewid, KNullUid, KMessage ) );
-
- return err;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVDoDeactivate
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVDoDeactivateL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVDoDeactivate, "In TestPlsnFWBVDoDeactivate" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVDoDeactivate );
- // Print to log file
- iLog->Log( KTestPlsnFWBVDoDeactivate );
-
- //instantiating class CPslnFWBaseContainerExt ->iContainer
- iFWBView->ConstructL();
-
- iFWBView->DoDeactivate();
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetTabIndex
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetTabIndex( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVSetTabIndex, "In TestPlsnFWBVSetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVSetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVSetTabIndex );
-
- iFWBView->SetTabIndex( 0 );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVGetTabIndex
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVGetTabIndex( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt myTabIndex = 0;
- myTabIndex = iFWBView->GetTabIndex();
- TInt expected = -1;
- STIF_ASSERT_EQUALS( expected, myTabIndex );
- return KErrNone;
- }
-
-// ========================test for the protected methods =======================
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetNaviPaneL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->SetNaviPaneL() );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVCreateNaviPaneContextL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVCreateNaviPaneContextL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->CreateNaviPaneContextL( 0 ) );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVCreateContainerL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVCreateContainerL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->CreateContainerL() );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVNewContainerL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVNewContainerL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->NewContainerL() );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetNaviPaneLWithTIntL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneLWithTIntL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->SetNaviPaneL( 0 ) );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetMiddleSoftKeyLabelL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetMiddleSoftKeyLabelL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt err = KErrNone;
- TRAP( err, iFWBView->SetMiddleSoftKeyLabelL( R_TESTPSLN_LABEL, 0 ) );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVHandleCommandL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVHandleCommandL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- CCoeAppUi* oldAppUi = new( ELeave ) CCoeAppUi();
- CTestDOMPslnFWAppUi* appUi = new( ELeave ) CTestDOMPslnFWAppUi();
- TInt err = KErrNone;
- oldAppUi = CCoeEnv::Static()->SetAppUi( appUi );
- if (iFWBView)
- {
- delete iFWBView;
- iFWBView = NULL;
- }
- iFWBView = new ( ELeave ) CTestPslnFWBaseView();
- TRAP( err, iFWBView->HandleCommandL( 0 ) );
-
- CCoeEnv::Static()->SetAppUi( oldAppUi );
-
- return err;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWBVSetTitlePaneL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWBVSetTitlePaneL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWBVGetTabIndex, "In TestPlsnFWBVGetTabIndex" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWBVGetTabIndex );
- // Print to log file
- iLog->Log( KTestPlsnFWBVGetTabIndex );
-
- TInt resouceId = R_TESTPSLN_TITLE_RESOURCE;
- TInt err = KErrNone;
- TRAP( err, iFWBView->SetTitlePaneL( resouceId ) );
-
- return err;
- }
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwblocksiconhelper.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,132 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Test PslnFWIconHelper.h
- *
-*/
-
-
-// [INCLUDE FILES]
-#include <pslnfwiconhelper.h>
-#include <testdompslnframework.rsg>
-#include <eikclb.h>
-#include <coeaui.h>
-
-#include "testdompslnframework.h"
-#include "testdompslnfwbc.h"
-#include "testdompslnfwbv.h"
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWIHNewL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWIHNewL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWIHNewL, "In TestPlsnFWIHNewL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWIHNewL );
- // Print to log file
- iLog->Log( KTestPlsnFWIHNewL );
-
- iHelper = CPslnFWIconHelper::NewL();
- STIF_ASSERT_NOT_NULL( iHelper );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWIHDelete
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWIHDelete( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWIHDelete, "In TestPlsnFWIHDelete" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWIHDelete );
- // Print to log file
- iLog->Log( KTestPlsnFWIHDelete );
-
- delete iHelper;
- iHelper = NULL;
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWIHAddIconsToSettingItemsL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWIHAddIconsToSettingItemsL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWIHAddIconsToSettingItemsL, "In TestPlsnFWIHAddIconsToSettingItemsL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWIHAddIconsToSettingItemsL );
- // Print to log file
- iLog->Log( KTestPlsnFWIHAddIconsToSettingItemsL );
-
- iFWBView = new( ELeave ) CTestPslnFWBaseView();
-
- iFWBContainer = new( ELeave ) CTestPslnFWBaseContainer();
- iFWBContainer->SetMopParent( iFWBView );
- iFWBContainer->ConstructL( iFWBView->ClientRect() );
- iFWBContainer->MakeVisible( ETrue );
- CCoeEnv::Static()->AppUi()->AddToStackL( iFWBContainer );
- CEikColumnListBox* textList = new( ELeave ) CEikColumnListBox();
- CleanupStack::PushL( textList );
- textList->ConstructL( iFWBContainer );
-
- iHelper->AddIconsToSettingItemsL(ETrue, 0 , textList );
- CleanupStack::Pop( textList );
- CCoeEnv::Static()->AppUi()->RemoveFromStack( iFWBContainer );
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWIHGetLocalizedStringLC
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWIHGetLocalizedStringLC( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWIHGetLocalizedStringLC, "In TestPlsnFWIHGetLocalizedStringLC" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWIHGetLocalizedStringLC );
- // Print to log file
- iLog->Log( KTestPlsnFWIHGetLocalizedStringLC );
-
- iFWBView = new( ELeave ) CTestPslnFWBaseView();
-
- iFWBContainer = new( ELeave ) CTestPslnFWBaseContainer();
- iFWBContainer->SetMopParent( iFWBView );
- iFWBContainer->ConstructL( iFWBView->ClientRect() );
- iFWBContainer->MakeVisible( ETrue );
- CCoeEnv::Static()->AppUi()->AddToStackL( iFWBContainer );
- CEikColumnListBox* textList = new( ELeave ) CEikColumnListBox();
- CleanupStack::PushL( textList );
- textList->ConstructL( iFWBContainer );
-
- iHelper->AddIconsToSettingItemsL(ETrue, 0, textList );
- CleanupStack::Pop( textList );
- CCoeEnv::Static()->AppUi()->RemoveFromStack( iFWBContainer );
-
- iHelper->GetLocalizedStringLC( KFilePath, R_BUFFER, CCoeEnv::Static() );
- CleanupStack::Pop();
- return KErrNone;
- }
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwblockspluginhandler.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,137 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Test pslnfwpluginhandler.h
- *
-*/
-
-
-// [INCLUDE FILES]
-#include <pslnfwpluginhandler.h>
-#include "testdompslnframework.h"
-
-const TInt KPluginUid = 0x101F84A5;
-
-// ============================ MEMBER FUNCTIONS ===============================
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWPHNewL
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWPHNewL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWPHNewL, "In TestPlsnFWPHNewL" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWPHNewL );
- // Print to log file
- iLog->Log( KTestPlsnFWPHNewL );
-
- CAknViewAppUi* appui = static_cast<CAknViewAppUi*>( CEikonEnv::Static()->AppUi() );
- iFWPHandler = CPslnFWPluginHandler::NewL( appui );
- STIF_ASSERT_NOT_NULL( iFWPHandler );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWPHNewLWithArray
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWPHNewLWithArrayL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWPHNewLWithArray, "In TestPlsnFWPHNewLWithArray" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWPHNewLWithArray );
- // Print to log file
- iLog->Log( KTestPlsnFWPHNewLWithArray );
-
- CArrayPtrFlat<CPslnFWPluginInterface>* array =
- new ( ELeave ) CArrayPtrFlat<CPslnFWPluginInterface>( 1 );
- CleanupStack::PushL( array );
-
- CAknViewAppUi* appui = static_cast<CAknViewAppUi*>( CEikonEnv::Static()->AppUi() );
-
- iFWPHandler = CPslnFWPluginHandler::NewL( appui, array );
- STIF_ASSERT_NOT_NULL( iFWPHandler );
- CleanupStack::Pop( array );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWPHDelete
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWPHDelete( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWPHDelete, "In TestPlsnFWPHDelete" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWPHDelete );
- // Print to log file
- iLog->Log( KTestPlsnFWPHDelete );
-
- delete iFWPHandler;
- iFWPHandler = NULL;
-
- return KErrNone;
- }
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWPHLoadPluginsLWithArray
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithArrayL( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWPHLoadPluginsLWithArray, "In TestPlsnFWPHLoadPluginsLWithArray" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWPHLoadPluginsLWithArray );
- // Print to log file
- iLog->Log( KTestPlsnFWPHLoadPluginsLWithArray );
-
- CArrayPtrFlat<CPslnFWPluginInterface>* array =
- new ( ELeave ) CArrayPtrFlat<CPslnFWPluginInterface>( 1 );
- CleanupStack::PushL( array );
-
- TRAP_IGNORE( iFWPHandler->LoadPluginsL( array ) );
- CleanupStack::Pop( array );
-
- return KErrNone;
- }
-
-
-// -----------------------------------------------------------------------------
-// Ctestdompslnframework::TestPlsnFWPHLoadPluginsLWithId
-// -----------------------------------------------------------------------------
-//
-TInt CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithId( CStifItemParser& /*aItem*/)
- {
- // Print to UI
- _LIT( Ktestdompslnframework, "testdompslnframework" );
- _LIT( KTestPlsnFWPHLoadPluginsLWithId, "In TestPlsnFWPHLoadPluginsLWithId" );
- TestModuleIf().Printf( 0, Ktestdompslnframework, KTestPlsnFWPHLoadPluginsLWithId );
- // Print to log file
- iLog->Log( KTestPlsnFWPHLoadPluginsLWithId );
-
- TInt err;
- TRAP(err, iFWPHandler->LoadPluginL( TUid::Uid( KPluginUid ) ) );
-
- return err;
-
- }
--- a/classicui_plat/personalisation_framework_api/tsrc/src/testdompslnfwbv.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,147 +0,0 @@
-/*
-* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#include "testdompslnfwbv.h"
-#include "testdompslnfwbc.h"
-
-//==============================CTestPslnFWBaseView===========================
-//
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::ConstructL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::ConstructL()
- {
- iContainer = new( ELeave ) CTestPslnFWBaseContainer();
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::NewContainerL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::NewContainerL()
- {
- if( iContainer )
- delete iContainer;
- iContainer = NULL;
- iContainer = new ( ELeave )CTestPslnFWBaseContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::HandleListBoxSelectionL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::HandleListBoxSelectionL()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::GetCaptionL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::GetCaptionL( TDes& /*aCaption*/ ) const
- {
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::GetTabTextL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::GetTabTextL( TDes& /*aCaption*/ ) const
- {
- }
-
-// ---------------------------------------------------------------------------
-// CGulIcon* CTestPslnFWBaseView::CreateIconL()
-// ---------------------------------------------------------------------------
-//
-CGulIcon* CTestPslnFWBaseView::CreateIconL()
- {
- return NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::SetNaviPaneL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::SetNaviPaneL()
- {
- CPslnFWBaseView::SetNaviPaneL();
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::CreateNaviPaneContextL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::CreateNaviPaneContextL( TInt aResourceId )
- {
- CPslnFWBaseView::CreateNaviPaneContextL( aResourceId );
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::CreateContainerL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::CreateContainerL()
- {
- CPslnFWBaseView::CreateContainerL();
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::SetNaviPaneL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::SetNaviPaneL( const TInt aTabLocation )
- {
- CPslnFWBaseView::SetNaviPaneL( aTabLocation );
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::SetMiddleSoftKeyLabelL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::SetMiddleSoftKeyLabelL( const TInt aResourceId, const TInt aCommandId )
- {
- CPslnFWBaseView::SetMiddleSoftKeyLabelL( aResourceId, aCommandId );
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::HandleCommandL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::HandleCommandL( TInt aCommand )
- {
- CPslnFWBaseView::HandleCommandL( aCommand );
- }
-
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::SetTitlePaneL()
-// ---------------------------------------------------------------------------
-//
-void CTestPslnFWBaseView::SetTitlePaneL( TInt& aResourceId )
- {
- CPslnFWBaseView::SetTitlePaneL( aResourceId );
- }
-// ---------------------------------------------------------------------------
-// CTestPslnFWBaseView::Id()
-// ---------------------------------------------------------------------------
-//
-TUid CTestPslnFWBaseView::Id() const
- {
- return KNullUid;
- }
-
--- a/classicui_plat/transition_effect_utilities_api/tsrc/inc/testdomutilitiesobserver.h Fri Apr 16 15:13:44 2010 +0300
+++ b/classicui_plat/transition_effect_utilities_api/tsrc/inc/testdomutilitiesobserver.h Mon May 03 12:45:33 2010 +0300
@@ -21,7 +21,6 @@
#include <akntransitionutils.h>
#include <akntransparentcamerasettingpage.h>
-#include <pslnfwbasecontainer.h>
/**
* CTestDomUtilitiesObserver class create just for test CAknTransitionUtils
--- a/commonuisupport/uikon/test/tspane/tspane.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/commonuisupport/uikon/test/tspane/tspane.cpp Mon May 03 12:45:33 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2005-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"
@@ -719,99 +719,95 @@
{
}
-
-
+
/**
Auxiliary function for AutoTestBackGroundL
-
+
The function creates different controls and set them in the status pane.
*/
void CTspaneContainer::SwapBackgroundTestControlL(TInt aControlType)
{
-
+ CCoeControl* newControl=NULL;
+ CCoeControl* container = iStatusPane->ContainerControlL(TUid::Uid(ETSpanePaneUid3));
- CCoeControl* newControl=0;
- CCoeControl* container = iStatusPane->ContainerControlL(TUid::Uid(ETSpanePaneUid3));
-
-
switch(aControlType)
{
- case 0:
+ case 0:
// Pane 1 - normal label
newControl = new(ELeave) CEikLabel;
- CleanupStack::PushL(newControl);
- newControl->SetContainerWindowL(*container);
-
- ((CEikLabel*)newControl)->SetEmphasis(CEikLabel::EPartialEmphasis);
- ((CEikLabel*)newControl)->SetTextL(_L("Normal Label"));
- break;
-
- case 1:
- // Pane 2 - label not drawn
-
- newControl = new(ELeave) CEikTestLabel;
- CleanupStack::PushL(newControl);
+ CleanupStack::PushL(newControl);
newControl->SetContainerWindowL(*container);
- ((CEikLabel*)newControl)->SetEmphasis(CEikLabel::EPartialEmphasis);
- ((CEikLabel*)newControl)->SetTextL(_L("Test Label"));
+ static_cast<CEikLabel*>(newControl)->SetEmphasis(CEikLabel::EPartialEmphasis);
+ static_cast<CEikLabel*>(newControl)->SetTextL(_L("Normal Label"));
break;
-
- case 2:
- // Pane 3 - normal text button
-
+
+ case 1:
+ // Pane 2 - label not drawn
+ newControl = new(ELeave) CEikTestLabel;
+ CleanupStack::PushL(newControl);
+ newControl->SetContainerWindowL(*container);
+
+ static_cast<CEikLabel*>(newControl)->SetEmphasis(CEikLabel::EPartialEmphasis);
+ static_cast<CEikLabel*>(newControl)->SetTextL(_L("Test Label"));
+ break;
+
+ case 2:
+ // Pane 3 - normal text button
newControl = new(ELeave) CEikTextButton;
CleanupStack::PushL(newControl);
newControl->SetContainerWindowL(*container);
- ((CEikTextButton*)newControl)->SetTextL(_L(" Normal Text Button"));
- break;
-
- case 3:
+ static_cast<CEikTextButton*>(newControl)->SetTextL(_L(" Normal Text Button"));
+ break;
+
+ case 3:
// Pane 4 - text button not drawn
-
newControl = new(ELeave) CEikTestTextButton;
CleanupStack::PushL(newControl);
newControl->SetContainerWindowL(*container);
- ((CEikTextButton*)newControl)->SetTextL(_L("Test Text Button"));
+ static_cast<CEikTextButton*>(newControl)->SetTextL(_L("Test Text Button"));
break;
-
- case 4:
+
+ case 4:
// Pane 5 - normal clock
+ {
newControl = new(ELeave) CEikClock;
CleanupStack::PushL(newControl);
newControl->SetContainerWindowL(*container);
TResourceReader res;
iEikonEnv->CreateResourceReaderLC(res, R_TSPANE_CLOCK) ;
- ((CEikClock*)newControl)->ConstructFromResourceL(res);
+ static_cast<CEikClock*>(newControl)->ConstructFromResourceL(res);
CleanupStack::PopAndDestroy(); // res
+ }
break;
-
- case 5:
+
+ case 5:
// Pane 6 - test clock
+ {
newControl = new(ELeave) CEikTestClock;
CleanupStack::PushL(newControl);
newControl->SetContainerWindowL(*container);
TResourceReader res1;
iEikonEnv->CreateResourceReaderLC(res1, R_TSPANE_CLOCK) ;
- ((CEikClock*)newControl)->ConstructFromResourceL(res1);
- CleanupStack::PopAndDestroy(); // res1
+ static_cast<CEikClock*>(newControl)->ConstructFromResourceL(res1);
+ CleanupStack::PopAndDestroy(); // res1
+ }
break;
}
-
+
TRect rect = iStatusPane->PaneRectL(TUid::Uid(ETSpanePaneUid3));
newControl->SetRect(rect);
newControl->DrawNow();
newControl->ActivateL();
- CCoeControl* oldControl= iStatusPane->SwapControlL(TUid::Uid(ETSpanePaneUid3), newControl); // iStatusPane takes ownership of newControl
- iStatusPane->MakeVisible(ETrue);
+ CCoeControl* oldControl=iStatusPane->SwapControlL(TUid::Uid(ETSpanePaneUid3), newControl); // iStatusPane takes ownership of newControl
+ CleanupStack::Pop(newControl);
+ CleanupStack::PushL(oldControl);
+ iStatusPane->MakeVisible(ETrue);
iStatusPane->ApplyCurrentSettingsL();
-
- CleanupStack::Pop();
-
- delete oldControl;
+ CleanupStack::PopAndDestroy(oldControl);
}
/**
--- a/lafagnosticuifoundation/animation/inc/AnimationGroup.h Fri Apr 16 15:13:44 2010 +0300
+++ b/lafagnosticuifoundation/animation/inc/AnimationGroup.h Mon May 03 12:45:33 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2004-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"
@@ -39,8 +39,8 @@
class CAnimationGroup : public CAnimation
{
public:
- static CAnimationGroup* NewL();
- ~CAnimationGroup();
+ IMPORT_C static CAnimationGroup* NewL();
+ IMPORT_C ~CAnimationGroup();
IMPORT_C const RPointerArray<CAnimation>& Animations() const;
IMPORT_C RPointerArray<CAnimation>& Animations();
// From CAnimation
--- a/lafagnosticuifoundation/uigraphicsutils/gulsrc/GULUTIL.CPP Fri Apr 16 15:13:44 2010 +0300
+++ b/lafagnosticuifoundation/uigraphicsutils/gulsrc/GULUTIL.CPP Mon May 03 12:45:33 2010 +0300
@@ -866,6 +866,12 @@
return TRgb::Color16M(aRgb.Color16M());
case EColor4K:
return TRgb::Color4K(aRgb.Color4K());
+ case EColor16MU:
+ return TRgb::Color16MU(aRgb.Color16MU());
+ case EColor16MA:
+ return TRgb::Color16MA(aRgb.Color16MA());
+ case EColor16MAP:
+ return TRgb::Color16MAP(aRgb.Color16MAP());
default:
return aRgb;
}
@@ -893,6 +899,12 @@
return aRgb.Color16M();
case EColor4K:
return aRgb.Color4K();
+ case EColor16MU:
+ return aRgb.Color16MU();
+ case EColor16MA:
+ return aRgb.Color16MA();
+ case EColor16MAP:
+ return aRgb.Color16MAP();
default:
return aRgb.Color16M();
}
--- a/lafagnosticuifoundation/uigraphicsutils/tef/t_phonenumberutils.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/lafagnosticuifoundation/uigraphicsutils/tef/t_phonenumberutils.cpp Mon May 03 12:45:33 2010 +0300
@@ -92,7 +92,7 @@
void CT_PhoneNumberUtilsStep::ParsePhoneNumberForPPN()
{
INFO_PRINTF1(_L("Test to Parse PhoneNumber With Valid PlainPhoneNumber"));
- TBuf<50> number = _L("+46 345 34(34347) 42443 42"); // This should be a parseable Plain Phone Number
+ TBuf<KMaxTestBufferSize> number = _L("+46 345 34(34347) 42443 42"); // This should be a parseable Plain Phone Number
TEST(TulPhoneNumberUtils::Normalize(number, TulPhoneNumberUtils::EPlainPhoneNumber));
INFO_PRINTF2(_L("Normalized Phone No. is %S"), &number);
@@ -152,7 +152,7 @@
void CT_PhoneNumberUtilsStep::ParsePhoneNumberForCCN()
{
INFO_PRINTF1(_L("Test to Parse PhoneNumber With Valid ContactCardNumber"));
- TBuf<50> number = _L("*31*6(0)35/6546"); // This should be a parseable Contact Card Number
+ TBuf<KMaxTestBufferSize> number = _L("*31*6(0)35/6546"); // This should be a parseable Contact Card Number
TEST(TulPhoneNumberUtils::Normalize(number, TulPhoneNumberUtils::EContactCardNumber));
INFO_PRINTF2(_L("Normalized Contact Card No. is %S"), &number);
@@ -204,15 +204,24 @@
void CT_PhoneNumberUtilsStep::ParsePhoneNumberForSMSNumber()
{
INFO_PRINTF1(_L("Test to Validate SMS number"));
- TBuf<50> number = _L("12*3-45/345-24.3"); // This should be a Valid SMS number
+ TBuf<KMaxTestBufferSize> number = _L("12*3-45/345-24.3"); // This should be a Valid SMS number
TEST(TulPhoneNumberUtils::IsValid(number, TulPhoneNumberUtils::ESMSNumber));
TEST(TulPhoneNumberUtils::Normalize(number, TulPhoneNumberUtils::ESMSNumber));
INFO_PRINTF2(_L("Normalized SMS No. is %S"), &number);
- number = _L("123453452431234534524312345345243"); // This should be a NOT Valid SMS number
- TEST(!(TulPhoneNumberUtils::IsValid(number, TulPhoneNumberUtils::ESMSNumber)));
-
+ if (KPhoneNoUtilsMaxNumbers < KMaxTestBufferSize)
+ {
+ // form number more than max number
+ number.Zero();
+ for (TInt i = 0; i <= KPhoneNoUtilsMaxNumbers; ++i)
+ {
+ number.Append('0' + i % 10);
+ }
+ // This should be a NOT Valid SMS number
+ TEST(!(TulPhoneNumberUtils::IsValid(number, TulPhoneNumberUtils::ESMSNumber)));
+ }
+
number = _L(" "); // This should NOT be a Valid SMS numbernumber
TEST(!(TulPhoneNumberUtils::IsValid(number, TulPhoneNumberUtils::ESMSNumber)));
@@ -250,7 +259,7 @@
{
INFO_PRINTF1(_L("Test to Validate PhoneClientNumber"));
- TBuf<50> number = _L("1p23-4534w5-2*43#34"); // This should be a Valid Phone Client Number
+ TBuf<KMaxTestBufferSize> number = _L("1p23-4534w5-2*43#34"); // This should be a Valid Phone Client Number
TEST(TulPhoneNumberUtils::IsValid(number, TulPhoneNumberUtils::EPhoneClientNumber));
TEST(TulPhoneNumberUtils::Normalize(number, TulPhoneNumberUtils::EPhoneClientNumber));
--- a/lafagnosticuifoundation/uigraphicsutils/tef/t_phonenumberutils.h Fri Apr 16 15:13:44 2010 +0300
+++ b/lafagnosticuifoundation/uigraphicsutils/tef/t_phonenumberutils.h Mon May 03 12:45:33 2010 +0300
@@ -25,6 +25,9 @@
#include "appfwk_test_AppUi.h"
#include <tulphonenumberutils.h>
+const TInt KMaxTestBufferSize = 128;
+const TInt KPhoneNoUtilsMaxNumbers = 48; // see hard coded value in ... tulphonenumberutils.cpp
+
_LIT(KT_PhoneNumberUtilsStep,"t_phonenumberutils");
//PPN == EPlainPhoneNumber
--- a/lafagnosticuifoundation/uigraphicsutils/tulsrc/tulphonenumberutils.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/lafagnosticuifoundation/uigraphicsutils/tulsrc/tulphonenumberutils.cpp Mon May 03 12:45:33 2010 +0300
@@ -33,6 +33,7 @@
// DEFINES
const TInt KPhoneNoUtilsMinNumbers = 1;
const TInt KPhoneNoUtilsMaxNumbers = 48; // Maximum phone number supported in Contacts
+ // see dependent test case t_phonenumberutils.cpp when changing this
// ---------------------------------------------------------
// Phone number parsing methods
--- a/psln/Group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ b/psln/Group/bld.inf Mon May 03 12:45:33 2010 +0300
@@ -19,7 +19,6 @@
#include <platform_paths.hrh>
-#include "../PslnGSPlugin/group/bld.inf"
#include "../help/group/bld.inf"
PRJ_PLATFORMS
@@ -57,9 +56,6 @@
#ifndef TOOLS
-// Application engine
-../pslnengine/group/PslnEngine.mmp
-
// Application specific skinning framework
../PslnFramework/PslnFramework.mmp
@@ -72,9 +68,6 @@
// Slide set setting dialogs.
../pslnslidesetdialog/group/pslnslidesetdialog.mmp
-// Application itself
-Psln.mmp
-
#endif // TOOLS
PRJ_TESTMMPFILES
--- a/psln/rom/psln.iby Fri Apr 16 15:13:44 2010 +0300
+++ b/psln/rom/psln.iby Mon May 03 12:45:33 2010 +0300
@@ -21,21 +21,12 @@
#include <data_caging_paths_for_iby.hrh>
-// Executable
-S60_APP_EXE( psln )
-
// Psln bitmaps
S60_APP_BITMAP2( psln, pslnicon )
// Application icon
S60_APP_AIF_ICONS( psln )
-// Application reg
-S60_APP_AIF_RSC( psln )
-
-// Psln Engine
-file=ABI_DIR\BUILD_DIR\pslnengine.dll SHARED_LIB_DIR\pslnengine.dll
-
// Psln Framework
file=ABI_DIR\BUILD_DIR\pslnframework.dll SHARED_LIB_DIR\pslnframework.dll
@@ -45,12 +36,6 @@
file=ABI_DIR\BUILD_DIR\pslnwallpaperutilsloader.dll SHARED_LIB_DIR\pslnwallpaperutilsloader.dll
file=ABI_DIR\BUILD_DIR\pslnbrowserlaunchloader.dll SHARED_LIB_DIR\pslnbrowserlaunchloader.dll
-// Psln GS plugin
-#ifdef RD_CONTROL_PANEL
-data=DATAZ_\BITMAP_DIR\pslngsplugin.mif BITMAP_DIR\pslngsplugin.mif
-#endif // RD_CONTROL_PANEL
-ECOM_PLUGIN( pslngsplugin.dll, 102818ec.rsc )
-
// Psln slideset dialog ECOM plugin
ECOM_PLUGIN( pslnslidesetdialog.dll, 102823ac.rsc )
--- a/tsrc/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ b/tsrc/group/bld.inf Mon May 03 12:45:33 2010 +0300
@@ -57,7 +57,6 @@
#include "../../classicui_plat/media_shared_document_api/tsrc/group/bld.inf"
#include "../../classicui_plat/memory_card_ui_api/tsrc/group/bld.inf"
#include "../../classicui_plat/number_grouping_api/tsrc/group/bld.inf"
-#include "../../classicui_plat/personalisation_framework_api/tsrc/group/bld.inf"
#include "../../classicui_plat/phone_number_text_utilities_api/tsrc/group/bld.inf"
#include "../../classicui_plat/pointer_event_modifier_api/tsrc/group/bld.inf"
#include "../../classicui_plat/popup_form_api/tsrc/group/bld.inf"
--- a/uifw/AknGlobalUI/AknCapServer/src/AknEikSgcs.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AknGlobalUI/AknCapServer/src/AknEikSgcs.cpp Mon May 03 12:45:33 2010 +0300
@@ -47,7 +47,7 @@
#include <akntransitionutils.h>
#endif
-#include <LayoutPack.cdl.h>
+#include <layoutpack.cdl.h>
#include <CdlRefs.h>
const TInt KCdlEComInterfaceId = 0x101f8243;
--- a/uifw/AknGlobalUI/OldStyleNotif/Src/aknkeylocknotifier.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AknGlobalUI/OldStyleNotif/Src/aknkeylocknotifier.cpp Mon May 03 12:45:33 2010 +0300
@@ -88,396 +88,10 @@
_LIT_SECURITY_POLICY_C1( KWritePolicy, ECapabilityWriteDeviceData );
-/**
- * CAknKeylockScreenSaverObserver captures primary keys
- * from screensaver when screen saver is active.
- *
- * @lib aknoldstylenotif.lib
- * @since 3.2
- */
-NONSHARABLE_CLASS( CAknKeylockScreenSaverObserver ): public CActive
- {
-public:
-
- /**
- * Creates instance of the CAknKeylockScreenSaverObserver class.
- *
- * @param aWindowGroup application window group used to capture primary keys
- * @return Returns the instance just created.
- */
- static CAknKeylockScreenSaverObserver* NewL( RWindowGroup& aWindowGroup );
-
- /**
- * Destructor.
- */
- ~CAknKeylockScreenSaverObserver();
-
-public:
-
- /**
- * Starts asynchronic listening KUidCurrentCall event
- *
- * @return KErrNone: if no errors
- * @return KErrInUse: if already listening
- */
- TInt Start();
-
- /**
- * Stops asynchronic listening KUidAutolockStatus event
- */
- void Stop();
-
-public:
-
- /**
- * Method handles the lock state changes.
- *
- * @param aStatus The new lock state
- */
- void SetLockStatus( TBool aKeylockEnabled, TBool aAutolockEnabled );
-
-private: // constructors
-
- /**
- * C++ default constructor.
- *
- * @param aAppUi (pointer to autolock appui)
- */
- CAknKeylockScreenSaverObserver( RWindowGroup& aWindowGroup );
-
- /**
- * Symbian OS constructor.
- */
- void ConstructL();
-
-private: // from CActive
-
- /** @see CActive::RunL() */
- void RunL();
-
- /** @see CActive::DoCancel() */
- void DoCancel();
-
-private:
-
- /**
- * Used to capture primary keys defined in keylocking policies
- */
- void CapturePrimaryKeys( TBool aCapture );
-
-private: // data
-
- // screen saver on property
- RProperty iScreenSaverActiveProperty;
-
- // if screensaver is active or not
- TBool iScreenSaverActive;
-
- // if primary keys have been captured
- TBool iCaptured;
-
- // locking states
- TBool iKeylockEnabled;
- TBool iAutolockEnabled;
-
- // left softkey capture
- TInt iLeftSoftKey;
-
- // a reference to application window group
- RWindowGroup& iWindowGroup;
-
- // keylockpolicy support (not owned)
- CKeyLockPolicyApi* iUnlockPolicyApi;
-
- // keylockpolicy support (not owned)
- CKeyLockPolicyApi* iDevicelockPolicyApi;
-
- // primary key captures
- RArray<TUint> iPrimaryKeyCaptures;
- };
-
-// ===========================================================================
-// class CAknKeylockScreenSaverObserver
-// ===========================================================================
-
-// ---------------------------------------------------------------------------
-// Constructs a new entry with given values.
-// ---------------------------------------------------------------------------
-//
-CAknKeylockScreenSaverObserver* CAknKeylockScreenSaverObserver::NewL(
- RWindowGroup& aWindowGroup )
- {
- CAknKeylockScreenSaverObserver* self =
- new (ELeave) CAknKeylockScreenSaverObserver( aWindowGroup );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CAknKeylockScreenSaverObserver::~CAknKeylockScreenSaverObserver()
- {
- Cancel();
-
- // Close the property handle.
- iScreenSaverActiveProperty.Close();
-
- // Release key captures.
- CapturePrimaryKeys( EFalse );
-
- // Delete policies.
- delete iUnlockPolicyApi;
- delete iDevicelockPolicyApi;
- }
-
-
-// ---------------------------------------------------------------------------
-// Starts listening to the KScreenSaverOn event.
-// ---------------------------------------------------------------------------
-//
-TInt CAknKeylockScreenSaverObserver::Start()
- {
- if ( IsActive() )
- {
- return KErrInUse;
- }
- iStatus = KRequestPending;
- iScreenSaverActiveProperty.Subscribe( iStatus );
- SetActive();
-
- return KErrNone;
- }
-
-
-// ---------------------------------------------------------------------------
-// Stops listening to the KScreenSaverOn event.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::Stop()
- {
- if ( !IsActive() )
- {
- return;
- }
- Cancel();
- iScreenSaverActiveProperty.Cancel();
- }
-// ---------------------------------------------------------------------------
-// C++ constructor
-// ---------------------------------------------------------------------------
-//
-CAknKeylockScreenSaverObserver::CAknKeylockScreenSaverObserver(
- RWindowGroup& aWindowGroup )
- : CActive( 0 ),
- iScreenSaverActive( EFalse ),
- iCaptured( EFalse ),
- iKeylockEnabled( EFalse ),
- iAutolockEnabled( EFalse ),
- iLeftSoftKey( NULL ),
- iWindowGroup( aWindowGroup )
- {
- }
-// ---------------------------------------------------------------------------
-// Second phase constructor.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::ConstructL()
- {
- // Add this active object to the scheduler.
- CActiveScheduler::Add( this );
-
- // We need policies to poll primary keys.
- iUnlockPolicyApi = CKeyLockPolicyApi::NewL( EPolicyDeactivateKeyguard );
- if ( !iUnlockPolicyApi->HasConfiguration() )
- {
- delete iUnlockPolicyApi;
- iUnlockPolicyApi = NULL;
- }
-
- // we need policies to poll primary keys
- iDevicelockPolicyApi = CKeyLockPolicyApi::NewL( EPolicyDevicelockQuery );
- if ( !iDevicelockPolicyApi->HasConfiguration() )
- {
- delete iDevicelockPolicyApi;
- iDevicelockPolicyApi = NULL;
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// From base class CActive.
-// Handles change in the screen saver state.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::RunL()
- {
- if ( iKeylockEnabled || iAutolockEnabled )
- {
- // Resubscribe before processing new value to prevent missing updates.
- Start();
- }
-
- TInt screenSaverState;
- iScreenSaverActiveProperty.Get( screenSaverState );
- // Primary keys are captured from screensaver when screensaver
- // is the top most application.
- if ( screenSaverState > NULL )
- {
- __ASSERT_DEBUG( !iCaptured,
- Panic( EAknPanicKeyLockObserverAlreadyExists ) );
- iScreenSaverActive = ETrue;
- CapturePrimaryKeys( ETrue );
- }
- else
- {
- // If screensaver is disabled, stop capturing primary key events.
- if ( iScreenSaverActive )
- {
- CapturePrimaryKeys( EFalse );
- }
- iScreenSaverActive = EFalse;
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// Set the lock status.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::SetLockStatus( TBool aKeylockEnabled,
- TBool aAutolockEnabled )
- {
- iKeylockEnabled = aKeylockEnabled;
- iAutolockEnabled = aAutolockEnabled;
-
- if ( iKeylockEnabled || iAutolockEnabled )
- {
- // Start observing screensaver activation.
- Start();
- }
- else
- {
- if ( iScreenSaverActive )
- {
- CapturePrimaryKeys( EFalse );
- }
- // Screensaver is only observed when keylock is enabled.
- Stop();
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// Capture or uncapture primary keys.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::CapturePrimaryKeys( TBool aCapture )
- {
- if ( aCapture )
- {
- if ( iScreenSaverActive && !iCaptured )
- {
- if ( iKeylockEnabled && !iAutolockEnabled )
- {
- iCaptured = ETrue;
- // If no unlocking policy has been defined,
- // the default primary key is the left soft key.
- if ( !iUnlockPolicyApi )
- {
- // Capture LSK (starts unlock prosess, capturing
- // bypasses screensaver)
- iLeftSoftKey = iWindowGroup.CaptureKey( EKeyDevice0, 0, 0 );
- }
- else
- {
- iPrimaryKeyCaptures.Reset();
- TUint32 index( 0 );
- TUint32 primaryKey( 0 );
- TUint32 secondaryKey( 0 );
- while ( iUnlockPolicyApi->GetKeyCombination( index,
- primaryKey,
- secondaryKey ) == KErrNone )
- {
- iPrimaryKeyCaptures.Append(
- iWindowGroup.CaptureKeyUpAndDowns( primaryKey, 0, 0 ) );
- index++;
- }
- }
- }
- else
- {
- if ( iKeylockEnabled && iAutolockEnabled )
- {
- iCaptured = ETrue;
- // If no devicelock query policy has been defined,
- // the default primary key is the left soft key.
- if ( !iDevicelockPolicyApi )
- {
- // Capture LSK (starts unlock prosess,
- // capturing bypasses screensaver).
- iLeftSoftKey = iWindowGroup.CaptureKey( EKeyDevice0, 0, 0 );
- }
- else
- {
- iPrimaryKeyCaptures.Reset();
- TUint32 index( 0 );
- TUint32 primaryKey( 0 );
- TUint32 secondaryKey( 0 );
- while ( iDevicelockPolicyApi->GetKeyCombination( index, primaryKey, secondaryKey ) == KErrNone )
- {
- iPrimaryKeyCaptures.Append(
- iWindowGroup.CaptureKeyUpAndDowns( primaryKey, 0, 0 ) );
- index++;
- }
- }
- }
- }
- }
- }
- else
- {
- if (iCaptured)
- {
- if (iLeftSoftKey > 0)
- {
- iWindowGroup.CancelCaptureKey(iLeftSoftKey);
- }
- iLeftSoftKey = 0;
-
- if (iPrimaryKeyCaptures.Count() > 0)
- {
- for (TInt x = 0; x < iPrimaryKeyCaptures.Count(); x++)
- {
- iWindowGroup.CancelCaptureKeyUpAndDowns(iPrimaryKeyCaptures[x]);
- }
- iPrimaryKeyCaptures.Reset();
- }
-
- iCaptured = EFalse;
- }
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// From base class CActive.
-// Cancels event listening.
-// ---------------------------------------------------------------------------
-//
-void CAknKeylockScreenSaverObserver::DoCancel()
- {
- iScreenSaverActiveProperty.Cancel();
- }
-
// ===========================================================================
// class CAknLockedNote.
@@ -941,7 +555,6 @@
delete iOfferLockNote;
delete iEcsNote; // Ecs change
delete iKeylockApi;
- delete iKeylockScreenSaverObserver;
}
@@ -1106,9 +719,6 @@
iKeylockApi = NULL;
}
- iKeylockScreenSaverObserver =
- CAknKeylockScreenSaverObserver::NewL( groupWin );
-
// Define P&S key that is used to publish the keyguard status.
RProperty::Define( KPSUidAvkonDomain,
KAknKeyguardStatus,
@@ -1135,8 +745,7 @@
// Keylock Disabled
return;
}
- // Keylock Enabled
- iKeylockScreenSaverObserver->SetLockStatus( ETrue, iAutolockEnabled );
+
if ( iOfferLockEnabled )
{
iOfferLockNote->CancelNote();
@@ -1264,8 +873,6 @@
{
TRACES( RDebug::Print(_L("(KeyGuard)CAknKeyLockControl::DisableKeylock")); )
- // Keep locking status in sync.
- iKeylockScreenSaverObserver->SetLockStatus( EFalse, iAutolockEnabled );
if ( iSoundsMuted )
{
CAknAppUiBase* appUi= iAvkonAppUiBase;
--- a/uifw/AvKon/akncompamode/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/akncompamode/group/bld.inf Mon May 03 12:45:33 2010 +0300
@@ -28,4 +28,3 @@
akncompamode.mmp
#include "../srv/group/bld.inf"
-#include "../gs/group/bld.inf"
--- a/uifw/AvKon/akncompamode/gs/data/20011149.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: ECOM plugin resource file for compatibility mode plugin.
-*
-*/
-
-#include <ecom/registryinfo.rh>
-
-
-RESOURCE REGISTRY_INFO theInfo
- {
- dll_uid = 0x20011149;
- interfaces =
- {
- INTERFACE_INFO
- {
- interface_uid = 0x10207236;
- implementations =
- {
- IMPLEMENTATION_INFO
- {
- implementation_uid = 0x2001114A;
- version_no = 1;
- display_name = "Compa Mode Settings Plugin";
- // parent: Application Settings
- default_data = "0x10207239";
- // Order number
- opaque_data = "1";
- }
- };
- }
- };
- }
-
-
-// End of File
-
--- a/uifw/AvKon/akncompamode/gs/data/akncompagsrsc.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,196 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Resource file for akncompags
-*
-*/
-
-
-#include <gscommon.rh>
-#include <avkon.rh>
-#include <avkon.rsg>
-#include <eikon.rh>
-#include <avkon.loc>
-#include <gs.loc>
-
-// RESOURCE IDENTIFIER
-NAME ACMG // 4 letter ID
-
-// INCLUDES
-#include "akncompags.hrh"
-#include "akncompamode.loc"
-
-RESOURCE RSS_SIGNATURE {}
-
-//- START COMMON DEFINITIONS ------------------------------------------------
-
-
-// --------------------------------------------------------------------------
-//
-// r_gs_menubar_change_exit
-// GS menu with 'change' and 'exit' items.
-//
-// --------------------------------------------------------------------------
-//
-RESOURCE MENU_BAR r_gs_menubar_change_exit
- {
- titles =
- {
- MENU_TITLE
- {
- menu_pane = r_gs_menu_item_exit;
- },
- MENU_TITLE
- {
- menu_pane = r_gs_menu_item_help;
- },
- MENU_TITLE
- {
- menu_pane = r_gs_menu_item_change;
- }
- };
- }
-
-
-// --------------------------------------------------------------------------
-//
-// r_gs_menu_item_exit
-//
-// --------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_gs_menu_item_exit
- {
- items =
- {
- MENU_ITEM
- {
- command = EAknCmdExit;
- txt = qtn_options_exit;
- }
- };
- }
-
-
-// --------------------------------------------------------------------------
-//
-// r_gs_menu_item_change
-// Change item.
-//
-// --------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_gs_menu_item_change
- {
- items =
- {
- MENU_ITEM
- {
- command = EGSCmdAppChange;
- txt = qtn_set_options_change;
- }
- };
- }
-
-
-// --------------------------------------------------------------------------
-//
-// r_gs_menu_item_help
-// Change item.
-//
-// --------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_gs_menu_item_help
- {
- items =
- {
- MENU_ITEM
- {
- command = EAknCmdHelp;
- txt = qtn_options_help;
- }
- };
- }
-
-//- END COMMON --------------------------------------------------------------
-
-RESOURCE CBA r_gs_softkeys_options_back_change
- {
- buttons =
- {
- CBA_BUTTON
- {
- id=EAknSoftkeyOptions;
- txt = text_softkey_option;
- },
- CBA_BUTTON
- {
- id=EAknSoftkeyBack;
- txt = text_softkey_back;
- },
- CBA_BUTTON
- {
- id=EGSMSKCmdAppChange;
- txt = qtn_msk_change;
- }
- };
- }
-
-
-RESOURCE TBUF r_akncompags_list_caption
- {
- buf = qtn_set_folder_cmode;
- }
-
-
-RESOURCE AVKON_VIEW r_akncompags_view
- {
- menubar = r_gs_menubar_change_exit;
- cba = r_gs_softkeys_options_back_change;
- }
-
-
-RESOURCE TITLE_PANE r_akncompags_view_title
- {
- txt = qtn_cmode_view_title;
- }
-
-
-RESOURCE GS_FEATURE_ARRAY r_akncompags_lbx
- {
- items =
- {
- GS_FEATURE
- {
- txt = "\t"qtn_cmode_state_setting_label"\t\t";
- item = KCompaGSIdState;
- }
- };
- }
-
-
-RESOURCE ARRAY r_akncompags_state_setting_page_lbx
- {
- items =
- {
- LBUF
- {
- txt = qtn_cmode_set_normal_mode;
- },
- LBUF
- {
- txt = qtn_cmode_set_comp_mode;
- }
- };
- }
-
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/group/akncompags.mmp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Project specification file.
-*
-*/
-
-
-#include <data_caging_paths.hrh>
-#include <platform_paths.hrh>
-
-CAPABILITY CAP_ECOM_PLUGIN
-TARGET akncompags.dll
-TARGETTYPE PLUGIN
-UID 0x10009D8D 0x20011149
-VENDORID VID_DEFAULT
-
-USERINCLUDE ../inc
-USERINCLUDE ../../inc ../../loc // from akncompamode
-
-APP_LAYER_SYSTEMINCLUDE
-
-SOURCEPATH ../src
-SOURCE akncompagscontainer.cpp
-SOURCE akncompags.cpp
-SOURCE akncompagsmodel.cpp
-
-SOURCEPATH ../data
-
-START RESOURCE 20011149.rss
-TARGETPATH ECOM_RESOURCE_DIR
-TARGET akncompags.rsc
-END
-
-START RESOURCE akncompagsrsc.rss
-HEADER
-TARGETPATH RESOURCE_FILES_DIR
-LANGUAGE_IDS
-END
-
-LIBRARY euser.lib
-LIBRARY ecom.lib
-LIBRARY efsrv.lib
-LIBRARY avkon.lib
-LIBRARY bafl.lib
-LIBRARY cone.lib
-LIBRARY eikcoctl.lib
-LIBRARY eikcore.lib
-LIBRARY egul.lib
-LIBRARY eikdlg.lib // eikon dialogs
-LIBRARY CentralRepository.lib
-
-LIBRARY CommonEngine.lib // For RConeResourceLoader
-LIBRARY aknskinsrv.lib // for enhanced skinning
-LIBRARY aknskins.lib // for enhanced skinning
-LIBRARY hlplch.lib // for "Help" options menu
-LIBRARY GSFramework.lib // For base classes
-LIBRARY GSListBox.lib // For CGSListBoxItemTextArray
-LIBRARY GSEcomPlugin.lib
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: This file provides the information required for building
-* General Settings plugin for compatibility mode keyboard.
-*
-*/
-
-
-#include <platform_paths.hrh>
-
-PRJ_PLATFORMS
-DEFAULT
-
-PRJ_MMPFILES
-akncompags.mmp
-
-
-PRJ_TESTMMPFILES
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/inc/akncompags.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,133 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: View for compa mode settings.
-*
-*/
-
-
-#ifndef AKNCOMPAGS_H
-#define AKNCOMPAGS_H
-
-#include <aknsettingpage.h>
-#include <gsbaseview.h>
-#include <ConeResLoader.h>
-#include <gsplugininterface.h>
-
-
-const TUid KAknCompaGSUid = { 0x2001114A };
-_LIT( KAknCompaGSIconDirAndName, "z:avkon.mbm"); // Use KDC_BITMAP_DIR
-_LIT( KAknCompaGSResourceFileName, "z:akncompagsrsc.rsc" );
-
-
-class CAknViewAppUi;
-class CAknCompaGSContainer;
-class CAknCompaGSModel;
-
-
-/**
-* CAknCompaGS view class for compa mode settings
-* Handles viewing of setting items.
-* @since Series 60_5.0
-*
-*/
-class CAknCompaGS : public CGSBaseView
- {
- public: // Constructors and destructor
-
- /**
- * Symbian OS two-phased constructor
- * @return GS connection view.
- */
- static CAknCompaGS* NewL( TAny* aInitParams );
-
- /**
- * Destructor
- */
- ~CAknCompaGS();
-
- public: // From CGSPluginInterface
-
- /**
- * @see CGSPluginInterface header file.
- */
- void GetCaptionL( TDes& aCaption ) const;
-
- /**
- * See base class.
- */
- CGulIcon* CreateIconL( const TUid aIconType );
-
- /**
- * @see CGSPluginInterface header file.
- */
- TInt PluginProviderCategory() const;
-
- /**
- * @see CGSPluginInterface header file.
- */
- TBool Visible() const;
-
- public: // from base classes
-
- /**
- * Returns view id.
- * @return TUid
- */
- TUid Id() const;
-
- /**
- * Handles commands.
- * @param aCommand Command to be handled.
- *
- */
- void HandleCommandL( TInt aCommand );
-
- public: // new
-
- CAknCompaGSContainer* Container();
-
- protected: // From CAknView
-
- void DoActivateL( const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage );
-
- protected:
-
- /**
- * C++ default constructor.
- */
- CAknCompaGS();
-
- /**
- * Symbian OS default constructor.
- *
- */
- void ConstructL();
-
- private: // from CGSBaseView
-
- void NewContainerL();
- void HandleListBoxSelectionL();
-
- private:
- CAknCompaGSModel *iModel;
- TVwsViewId iPrevViewId;
- RConeResourceLoader iResourceLoader;
-
- };
-
-#endif //AKNCOMPAGS_H
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/inc/akncompags.hrh Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Contains common definitions for menu id:s
-*
-*/
-
-
-#ifndef AKNCOMPAGS_HRH
-#define AKNCOMPAGS_HRH
-
-enum TSettingId
- {
- KCompaGSIdState
- };
-
-#endif // AKNCOMPAGS_HRH
-
-//End of File
-
--- a/uifw/AvKon/akncompamode/gs/inc/akncompagscontainer.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Container for compatibility mode view.
-*
-*/
-
-
-#ifndef AKNCOMPAGSCONTAINER_H
-#define AKNCOMPAGSCONTAINER_H
-
-#include <gsbasecontainer.h>
-#include "gssettingid.h"
-
-
-class CGSListBoxItemTextArray;
-
-
-/**
-* CAknCompaGSContainer container class
-* @since Series 60 5.0
-*
-*/
-class CAknCompaGSContainer : public CGSBaseContainer
- {
- public: // Constructors and destructor
-
- /**
- * Symbian OS constructor.
- * @param aRect Listbox's rect.
- *
- */
- void ConstructL( const TRect& aRect );
-
- /**
- * Destructor.
- */
- ~CAknCompaGSContainer();
-
- public: //new
-
- /**
- * Updates listbox's item's value.
- * @param aFeatureId An item which is updated.
- *
- */
- void UpdateListBoxL( TInt aFeatureId, TInt aValue );
-
- /**
- * Retrieves the currently selected listbox feature id
- * @return feature id.
- */
- TInt CurrentFeatureId() const;
-
- protected: // from CGSBaseContainer
- void ConstructListBoxL( TInt aResLbxId );
-
- private: // new
-
- void CreateListBoxItemsL();
- void MakeCompaModeStateItemL();
- void UpdateCompaModeStateItemL(const TInt& aState);
-
- private: // data
- CDesCArrayFlat* iCompaModeStateItems;
- CGSListBoxItemTextArray* iListboxItemArray;
-
- };
-
-#endif // AKNCOMPAGSCONTAINER_H
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/inc/akncompagsmodel.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Compa mode Settings model.
-*
-*/
-
-
-#ifndef AKNCOMPAGSMODEL_H
-#define AKNCOMPAGSMODEL_H
-
-#include <e32base.h>
-
-class CRepository;
-
-/**
-* CAknCompaGSModel is the model class for akncompamode GS plugin.
-* It provides functions to get and set setting values.
-* @since Series 60_5.0
-*/
-class CAknCompaGSModel : public CBase
- {
- public: // Constructor and destructor
- /**
- * Two-phased constructor
- */
- static CAknCompaGSModel* NewL();
-
- /**
- * Destructor
- */
- ~CAknCompaGSModel();
-
- public: // new ones
-
- /**
- * Retrieve compa-mode feature enabled status
- */
- TBool FeatureEnabled();
-
- /**
- * Retrieve setting state
- */
- TBool CompaAppState();
-
- /**
- * Store setting state
- */
- void SetCompaAppState(TBool aState);
-
- private: // Private constructors
- /**
- * Default C++ contructor
- */
- CAknCompaGSModel();
-
- /**
- * Symbian OS default constructor
- * @return void
- */
- void ConstructL();
-
- private:
- TInt iFeatures;
- TInt iSettings;
- CRepository* iRepository;
- };
-
-#endif //AKNCOMPAGSMODEL_H
-
-// End of File
--- a/uifw/AvKon/akncompamode/gs/src/akncompags.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,251 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: View for compa mode settings
-*
-*/
-
-
-#include "akncompags.h"
-#include "akncompagsmodel.h"
-#include "akncompagscontainer.h"
-#include "akncompags.hrh"
-
-#include <avkon.mbg> // icons
-#include <akncompagsrsc.rsg>
-#include <gsfwviewuids.h>
-#include <gsprivatepluginproviderids.h>
-
-#include <AknQueryDialog.h>
-#include <aknradiobuttonsettingpage.h>
-#include <aknViewAppUi.h>
-#include <StringLoader.h>
-#include <bautils.h>
-#include <coeaui.h>
-#include <eikfrlbd.h>
-#include <ecom/implementationproxy.h>
-#include <hlplch.h> // For HlpLauncher
-
-#include <gscommon.hrh>
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-CAknCompaGS::CAknCompaGS()
- : iResourceLoader( *iCoeEnv )
- {
- }
-
-// --------------------------------------------------------------------------
-// Create a compa-mode settings plugin
-// --------------------------------------------------------------------------
-CAknCompaGS* CAknCompaGS::NewL( TAny* /*aInitParams*/ )
- {
- CAknCompaGS* self = new( ELeave ) CAknCompaGS ();
-
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop();
-
- return self;
- }
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-void CAknCompaGS::ConstructL()
- {
- TParse parse;
- parse.Set( KAknCompaGSResourceFileName,
- &KDC_RESOURCE_FILES_DIR, NULL );
- TFileName fileName( parse.FullName() );
-
- // Get language of resource file
- BaflUtils::NearestLanguageFile( iCoeEnv->FsSession(), fileName );
-
- // Open resource file
- iResourceLoader.OpenL( fileName );
-
- iModel = CAknCompaGSModel::NewL();
-
- BaseConstructL( R_AKNCOMPAGS_VIEW );
- }
-
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-CAknCompaGS::~CAknCompaGS()
- {
- iResourceLoader.Close();
- delete iModel;
- }
-
-// --------------------------------------------------------------------------
-// Return plugin implementation ID
-// --------------------------------------------------------------------------
-TUid CAknCompaGS::Id() const
- {
- return KAknCompaGSUid;
- }
-
-// --------------------------------------------------------------------------
-// Get caption of the plugin (localized name of the view)
-// --------------------------------------------------------------------------
-void CAknCompaGS::GetCaptionL( TDes& aCaption ) const
- {
- // the resource file is already opened.
- HBufC* result = StringLoader::LoadL( R_AKNCOMPAGS_LIST_CAPTION );
-
- aCaption.Copy( *result );
- delete result;
- }
-
-// --------------------------------------------------------------------------
-// Return ID of plugin provider category
-// --------------------------------------------------------------------------
-TInt CAknCompaGS::PluginProviderCategory() const
- {
- // To identify as internal plug-in.
- return KGSPluginProviderInternal;
- }
-
-// --------------------------------------------------------------------------
-// Return if the plugin should be visible in the settings framework
-// --------------------------------------------------------------------------
-TBool CAknCompaGS::Visible() const
- {
- return iModel->FeatureEnabled();
- }
-
-
-// --------------------------------------------------------------------------
-// Handle command
-// --------------------------------------------------------------------------
-void CAknCompaGS::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EGSMSKCmdAppChange:
- HandleListBoxSelectionL();
- break;
- case EGSCmdAppChange:
- HandleListBoxSelectionL();
- break;
- case EAknSoftkeyBack:
- iAppUi->ActivateLocalViewL( iPrevViewId.iViewUid );
- break;
- case EAknCmdHelp:
- HlpLauncher::LaunchHelpApplicationL(
- iEikonEnv->WsSession(), iAppUi->AppHelpContextL() );
- break;
- default:
- iAppUi->HandleCommandL( aCommand );
- break;
- }
- }
-
-// --------------------------------------------------------------------------
-// Return container
-// --------------------------------------------------------------------------
-CAknCompaGSContainer* CAknCompaGS::Container()
- {
- return static_cast<CAknCompaGSContainer*>( iContainer );
- }
-
-
-// --------------------------------------------------------------------------
-// Create container
-// --------------------------------------------------------------------------
-void CAknCompaGS::NewContainerL()
- {
- iContainer = new( ELeave ) CAknCompaGSContainer;
- }
-
-// --------------------------------------------------------------------------
-// Activate view
-// --------------------------------------------------------------------------
-void CAknCompaGS::DoActivateL( const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage )
- {
- iPrevViewId = aPrevViewId;
-
- CGSBaseView::DoActivateL( aPrevViewId, aCustomMessageId, aCustomMessage );
- }
-
-// --------------------------------------------------------------------------
-// Handle list box selection
-// --------------------------------------------------------------------------
-void CAknCompaGS::HandleListBoxSelectionL()
- {
- const TInt currentFeatureId = Container()->CurrentFeatureId();
-
- switch ( currentFeatureId )
- {
- case KCompaGSIdState:
- {
- TBool newValue = !iModel->CompaAppState();
- iModel->SetCompaAppState(newValue);
- Container()->UpdateListBoxL( currentFeatureId, newValue );
- }
- break;
- default:
- break;
- }
- }
-
-// --------------------------------------------------------------------------
-// Create icon of desired type
-// --------------------------------------------------------------------------
-CGulIcon* CAknCompaGS::CreateIconL( const TUid aIconType )
- {
- CGulIcon* icon;
- TParse* fp = new( ELeave ) TParse();
- CleanupStack::PushL( fp );
- fp->Set( KAknCompaGSIconDirAndName, &KDC_BITMAP_DIR, NULL );
-
- if( aIconType == KGSIconTypeLbxItem )
- {
- icon = AknsUtils::CreateGulIconL(
- AknsUtils::SkinInstance(),
- KAknsIIDNone,
- fp->FullName(),
- EMbmAvkonQgn_prop_folder_apps_medium,
- EMbmAvkonQgn_prop_folder_apps_medium_mask );
- }
- else
- {
- icon = CGSPluginInterface::CreateIconL( aIconType );
- }
-
- CleanupStack::PopAndDestroy( fp );
-
- return icon;
- }
-
-// --------------------------------------------------------------------------
-// Return factory functions for ECOM interface implementations
-// --------------------------------------------------------------------------
-EXPORT_C const TImplementationProxy* ImplementationGroupProxy(
- TInt& aTableCount )
- {
- static const TImplementationProxy KAknCompaGSImplementationTable[] =
- {
- IMPLEMENTATION_PROXY_ENTRY( 0x2001114A, CAknCompaGS::NewL )
- };
-
- aTableCount = sizeof( KAknCompaGSImplementationTable )
- / sizeof( TImplementationProxy );
- return KAknCompaGSImplementationTable;
- }
--- a/uifw/AvKon/akncompamode/gs/src/akncompagscontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,133 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Container
-*
-*/
-
-
-#include "akncompagscontainer.h"
-#include "akncompagsmodel.h"
-#include "akncompags.hrh"
-
-#include <bldvariant.hrh>
-#include <akncompagsrsc.rsg>
-#include <aknlists.h>
-#include <StringLoader.h>
-#include <AknUtils.h>
-#include <cshelp/conset.hlp.hrh>
-#include <gsfwviewuids.h>
-#include <gslistbox.h>
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::ConstructL( const TRect& aRect )
- {
- iListBox = new( ELeave ) CAknSettingStyleListBox;
-
- BaseConstructL( aRect, R_AKNCOMPAGS_VIEW_TITLE, R_AKNCOMPAGS_LBX );
- }
-
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-CAknCompaGSContainer::~CAknCompaGSContainer()
- {
- delete iListboxItemArray;
- delete iCompaModeStateItems;
- }
-
-// --------------------------------------------------------------------------
-// Construct a list box
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::ConstructListBoxL( TInt aResLbxId )
- {
- iListBox->ConstructL( this, EAknListBoxSelectionList );
-
- iListboxItemArray = CGSListBoxItemTextArray::NewL( aResLbxId,
- *iListBox, *iCoeEnv );
- iListBox->Model()->SetItemTextArray( iListboxItemArray );
- iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray );
-
- iCompaModeStateItems = iCoeEnv->ReadDesC16ArrayResourceL(
- R_AKNCOMPAGS_STATE_SETTING_PAGE_LBX );
-
- CreateListBoxItemsL();
- }
-
-// --------------------------------------------------------------------------
-// Create list box items
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::CreateListBoxItemsL()
- {
- MakeCompaModeStateItemL();
- CAknCompaGSModel* model = CAknCompaGSModel::NewL();
- CleanupStack::PushL(model);
- UpdateCompaModeStateItemL(model->CompaAppState());
- CleanupStack::PopAndDestroy( model );
- }
-
-
-// --------------------------------------------------------------------------
-// Update list box item
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::UpdateListBoxL( TInt aFeatureId,
- TInt aValue )
- {
- switch( aFeatureId )
- {
- case KCompaGSIdState:
- UpdateCompaModeStateItemL(aValue);
- break;
- default:
- break;
- }
-
- iListBox->HandleItemAdditionL();
- }
-
-// --------------------------------------------------------------------------
-// Make compa-mode setting visible
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::MakeCompaModeStateItemL()
- {
- iListboxItemArray->SetItemVisibilityL( KCompaGSIdState,
- CGSListBoxItemTextArray::EVisible );
- }
-
-// --------------------------------------------------------------------------
-// Update compa-mode setting item on display
-// --------------------------------------------------------------------------
-void CAknCompaGSContainer::UpdateCompaModeStateItemL(const TInt& aState)
- {
- HBufC* dynamicText = HBufC::NewLC( KGSBufSize128 );
- TPtr ptrBuffer ( dynamicText->Des() );
-
- ptrBuffer = ( *iCompaModeStateItems )[ aState ];
-
- iListboxItemArray->SetDynamicTextL( KCompaGSIdState, ptrBuffer );
- CleanupStack::PopAndDestroy( dynamicText );
-
- iListboxItemArray->SetItemVisibilityL( KCompaGSIdState,
- CGSListBoxItemTextArray::EVisible );
- }
-
-// --------------------------------------------------------------------------
-// Return currently selected listbox feature id
-// --------------------------------------------------------------------------
-TInt CAknCompaGSContainer::CurrentFeatureId( ) const
- {
- return iListboxItemArray->CurrentFeature( );
- }
--- a/uifw/AvKon/akncompamode/gs/src/akncompagsmodel.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-/*
-* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Compa Mode Settings model implementation.
-*
-*/
-
-
-#include <centralrepository.h>
-#include <AvkonInternalCRKeys.h>
-
-#include "akncompagsmodel.h"
-#include "akncompaflags.h"
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-CAknCompaGSModel* CAknCompaGSModel::NewL()
- {
- CAknCompaGSModel* self = new( ELeave ) CAknCompaGSModel;
- CleanupStack::PushL( self );
- self->ConstructL();
-
- CleanupStack::Pop( self );
- return self;
- }
-
-
-// --------------------------------------------------------------------------
-// Constructor
-// --------------------------------------------------------------------------
-CAknCompaGSModel::CAknCompaGSModel()
- {
- }
-
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-void CAknCompaGSModel::ConstructL()
- {
- iRepository = CRepository::NewL(KCRUidAvkon);
- iRepository->Get(KAknCompaModeFeatures, iFeatures);
- iRepository->Get(KAknCompaModeSettings, iSettings);
- }
-
-// --------------------------------------------------------------------------
-//
-// --------------------------------------------------------------------------
-CAknCompaGSModel::~CAknCompaGSModel()
- {
- delete iRepository;
- }
-
-// --------------------------------------------------------------------------
-// Check if compatibility mode feature is enabled in the image
-// --------------------------------------------------------------------------
-TBool CAknCompaGSModel::FeatureEnabled()
- {
- return iFeatures & KAknCompaFeatureEnaCompaMode;
- }
-
-
-// --------------------------------------------------------------------------
-// Get compatibility mode enable/disable setting
-// --------------------------------------------------------------------------
-TBool CAknCompaGSModel::CompaAppState()
- {
- return iSettings & KAknCompaSettingEnaApps;
- }
-
-
-// --------------------------------------------------------------------------
-// Set compatibility mode enable/disable setting
-// --------------------------------------------------------------------------
-void CAknCompaGSModel::SetCompaAppState(TBool aState)
- {
- if (FeatureEnabled() && CompaAppState() != aState)
- {
- if (aState)
- {
- iSettings |= KAknCompaSettingEnaApps;
- }
- else
- {
- iSettings &= ~KAknCompaSettingEnaApps;
- }
- iRepository->Set(KAknCompaModeSettings, iSettings);
- }
- }
--- a/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/animdllsrc/AknAnimKeySound.cpp Mon May 03 12:45:33 2010 +0300
@@ -33,7 +33,7 @@
// This is currently nasty set dependencies, API should be moved to middleware layer asap
#include <ctsydomainpskeys.h>
#include <activeidle2domainpskeys.h>
-#include <NetworkHandlingDomainPSKeys.h>
+#include <networkhandlingdomainpskeys.h>
#include <PSVariables.h>
#include <hwrmlight.h>
--- a/uifw/AvKon/src/AknEcs.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/src/AknEcs.cpp Mon May 03 12:45:33 2010 +0300
@@ -29,9 +29,9 @@
#include <featmgr.h>
#include "AknDebug.h"
-#include <CPhCltEmergencyCall.h>
-#include <MPhCltEmergencyCallObserver.h>
-#include <PhCltTypes.h>
+#include <cphcltemergencycall.h>
+#include <mphcltemergencycallobserver.h>
+#include <phclttypes.h>
#include <AvkonInternalCRKeys.h>
#include <PtiDefs.h>
#include <e32property.h>
--- a/uifw/AvKon/src/aknenv.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/src/aknenv.cpp Mon May 03 12:45:33 2010 +0300
@@ -41,7 +41,7 @@
#include <CdlEngine.h>
#include <CdlRefs.h>
#include <AknLayout2DataDef.h>
-#include <LayoutPack.cdl.h>
+#include <layoutpack.cdl.h>
#include <CdlExplorer.h>
#include <aknlayout.cdl.h>
#include <aknapaclayout.cdl.h>
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaiwaknappui.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaiwaknappui.cpp Mon May 03 12:45:33 2010 +0300
@@ -59,7 +59,8 @@
ActivateLocalViewL( view->Id() );
-
+
+ CWindowGc& gc = CCoeEnv::Static()->SystemGc();
// test aknanimview.h
iAnimView =
CBCTestDomAknAnimatedView::NewLC();
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaknctrlcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaknctrlcase.cpp Mon May 03 12:45:33 2010 +0300
@@ -555,6 +555,15 @@
if( aknIndicator )
{
+ TInt bitmapIndex = 0;
+ TInt maskIndex = 0 ;
+ CAknIndicator::GetBitmapIndexL( 0, 0,
+ bitmapIndex, maskIndex );
+ _LIT(
+ KGetBitmapIndexL,
+ "CAknIndicator::GetBitmapIndexL() test" );
+ AssertTrueL( ETrue, KGetBitmapIndexL );
+
aknIndicator->SetIndicatorObserver( NULL );
_LIT(
KSetIndicatorObserver,
@@ -568,13 +577,19 @@
KHandlePointerEventL,
"CAknIndicator::HandlePointerEventL() test" );
AssertTrueL( ETrue, KHandlePointerEventL );
+
+ aknIndicator->PositionChanged();
+ _LIT(
+ KAknIndicatorPositionChanged,
+ "CAknIndicator::PositionChanged() test" );
+ AssertTrueL( ETrue, KAknIndicatorPositionChanged );
+
}
CleanupStack::PopAndDestroy( indicatorPane );
-
- TUid pluginUid = TUid::Uid( KImplUIDMessagingIndicatorsPlugin );
+ TUid pluginUid = TUid::Uid( KImplUIDPoCIndicatorsPlugin );//
CAknIndicatorPlugin* aknIndicatorPlugin = NULL;
TRAPD(err,
aknIndicatorPlugin =
@@ -584,6 +599,22 @@
_LIT( KPluginNewL, "CAknIndicatorPlugin::NewL() test" );
AssertIntL( err, err, KPluginNewL );
+ if( aknIndicatorPlugin )
+ {
+ TInt textType = 0;
+ aknIndicatorPlugin->TextL( 0, textType );
+ _LIT( KTextL, "CAknIndicatorPlugin::TextL() test" );
+ AssertTrueL( ETrue, KTextL );
+
+ aknIndicatorPlugin->IconL( 0 );
+ _LIT( KIconL, "CAknIndicatorPlugin::IconL() test" );
+ AssertTrueL( ETrue, KIconL );
+
+ aknIndicatorPlugin->UpdateL( 0 );
+ _LIT( KUpdateL, "CAknIndicatorPlugin::UpdateL() test" );
+ AssertTrueL( ETrue, KUpdateL );
+ }
+
CleanupStack::Pop( aknIndicatorPlugin );
delete aknIndicatorPlugin;
_LIT( KDestructor, "~CAknIndicatorPlugin() test" );
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaknrclasscase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/src/bctestdomaknrclasscase.cpp Mon May 03 12:45:33 2010 +0300
@@ -44,7 +44,7 @@
#include "bctestdomuiservershutdownapps.h"//test RAknUiServer::ShutdownApps()
//in akncapserverclient.h
-
+const TInt KDelay = 500*1000; //500 ms
// ======== MEMBER FUNCTIONS ========
// ---------------------------------------------------------------------------
@@ -532,6 +532,11 @@
"RAknUiServer::UpdateTaskList() test" );
AssertTrueL( ETrue, KUpdateTaskList);
+ User::After(KDelay*2);
+ CEikonEnv* eikEnv = CEikonEnv::Static();
+ TRawEvent event;
+ event.Set( TRawEvent::EKeyDown, EStdKeyDevice1 );
+ eikEnv->WsSession().SimulateRawEvent( event );
uiServer.CancelShutdownApps();//uiServer.ShutdownApps(...);
_LIT(
@@ -750,8 +755,8 @@
AssertTrueL( ETrue, KDoNotifierControllerCommand);
- uiServer.RotateScreen();// Rotate screen first time.
- uiServer.RotateScreen(); //Rotate screen back
+ //uiServer.RotateScreen(); // Rotate screen first time.
+ //uiServer.RotateScreen(); //Rotate screen back
_LIT(
KRotateScreen,
"RAknUiServer::RotateScreen() test" );
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/group/bctestdomavkonpsln.mmp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,105 +0,0 @@
-/*
-* 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 definition file for project bctestdomavkonpsln
-*
-*/
-
-
-#include <platform_paths.hrh>
-
-TARGET bctestdomavkonpsln.exe
-TARGETTYPE exe
-UID 0x0 0xA00040A1
-
-VENDORID 0x101FB657
-CAPABILITY NetworkServices LocalServices Location ReadUserData \
- WriteUserData ReadDeviceData WriteDeviceData SwEvent \
- UserEnvironment
-
-TARGETPATH sys/bin
-
-START RESOURCE bctestdomavkonpsln.rss
-HEADER
-TARGETPATH resource/apps
-END // RESOURCE
-
-LANG 01
-
-SOURCEPATH ../Src
-SOURCE bctestdomavkonpslnapp.cpp
-SOURCE bctestdomavkonpslndocument.cpp
-SOURCE bctestdomavkonpslnappui.cpp
-SOURCE bctestdomavkonpslnview.cpp
-SOURCE bctestdomavkonpslncontainer.cpp
-SOURCE bctestdomavkonpslnext.cpp
-SOURCE bctestdomakncase.cpp
-SOURCE bctestdomeikcase.cpp
-SOURCE bctestdomfindcase.cpp
-SOURCE bctestdomjplangcase.cpp
-SOURCE bctestdompslncase.cpp
-
-USERINCLUDE . ../inc
-USERINCLUDE ../../../bctestutil/inc
-
-// This project only compile in sdk3.2, so directly include
-SYSTEMINCLUDE /epoc32/include/platform/mw/uikon
-
-APP_LAYER_SYSTEMINCLUDE
-
-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 aknnotify.lib
-LIBRARY eikalert.lib
-LIBRARY aknnotifyplugin.lib
-LIBRARY akntransitionutils.lib
-LIBRARY eikdlg.lib
-LIBRARY eiksrvui.lib
-LIBRARY commonui.lib
-LIBRARY findutil.lib
-LIBRARY aknicon.lib
-LIBRARY eikctl.lib
-LIBRARY form.lib
-LIBRARY uiklaf.lib
-LIBRARY egul.lib
-LIBRARY etext.lib
-LIBRARY jplangutil.lib
-LIBRARY numbergrouping.lib
-LIBRARY pslnframework.lib
-LIBRARY estor.lib
-LIBRARY commonengine.lib
-LIBRARY xnodt.lib
-LIBRARY ecom.lib
-LIBRARY eiksrvc.lib
-LIBRARY servicehandler.lib
-LIBRARY sortutil.lib
-
-START RESOURCE ../group/bctestdomavkonpsln_reg.rss
-DEPENDS bctestdomavkonpsln.rsg
-HEADER
-TARGETPATH /private/10003a3f/apps
-END
-
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/group/bctestdomavkonpsln.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,337 +0,0 @@
-/*
-* 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: resources for the module
-*
-*/
-
-
-// RESOURCE IDENTIFIER
-NAME BCDO
-
-// INCLUDES
-
-#include <eikon.rh>
-#include <eikon.rsg>
-#include <avkon.hrh>
-#include <avkon.mbg>
-#include <avkon.rsg>
-#include <avkon.rh>
-#include <avkonicons.hrh>
-
-#include <appinfo.rh>
-
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpsln.loc"
-
-// CONSTANTS
-
-// MACROS
-#define CHECKBOX_SETTING_PAGE_NUMBER 1
-
-
-// RESOURCE DEFINITIONS
-//-----------------------------------------------------------------------------
-//
-// RSS_SIGNATURE
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE RSS_SIGNATURE
- {
- }
-
-//-----------------------------------------------------------------------------
-//
-// TBUF16
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE TBUF16
- {
- buf = qtn_app_buf;
- }
-
-//-----------------------------------------------------------------------------
-//
-// EIK_APP_INFO
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE EIK_APP_INFO
- {
- menubar = r_bctestdomavkonpsln_menubar_main;
- cba = r_bctestdomavkonpsln_cba_options_next;
- }
-
-// ---------------------------------------------------------
-// Provide Caption and Icon Info for Scalable UI
-//
-// ---------------------------------------------------------
-//
-RESOURCE LOCALISABLE_APP_INFO r_bctestdomavkonpsln_localisable_app_info
- {
- short_caption = qtn_apps_tavl_grid;
-
- caption_and_icon =
- CAPTION_AND_ICON_INFO
- {
- caption = qtn_apps_tavl_list;
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_view
-// AVKON_VIEW for CBCTestDomAvkonPslnView
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_VIEW r_bctestdomavkonpsln_view
- {
- menubar = r_bctestdomavkonpsln_menubar_main;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_menubar
-// MenuBar
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_BAR r_bctestdomavkonpsln_menubar_main
- {
- titles =
- {
- MENU_TITLE
- {
- menu_pane = r_bctestdomavkonpsln_menu;
- },
- MENU_TITLE
- {
- menu_pane = r_bctestdomavkonpsln_case_menu;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_case_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomavkonpsln_case_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EBCTestCmdOutline1;
- txt = qtn_bctestdomavkonpsln_outline1;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline2;
- txt = qtn_bctestdomavkonpsln_outline2;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline3;
- txt = qtn_bctestdomavkonpsln_outline3;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline4;
- txt = qtn_bctestdomavkonpsln_outline4;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline5;
- txt = qtn_bctestdomavkonpsln_outline5;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomavkonpsln_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EProgCmdAutoTest;
- txt = qtn_bctestdomavkonpsln_autotest;
- },
- MENU_ITEM // Menu "Exit"
- {
- command = EAknCmdExit;
- txt = qtn_bctestdomavkonpsln_menu_exit;
- }
- };
- }
-
-// ----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_cba_options_next
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-
-RESOURCE CBA r_bctestdomavkonpsln_cba_options_next
- {
- buttons =
- {
- CBA_BUTTON
- {
- id=EAknSoftkeyOptions;
- txt = text_softkey_option;
- },
- AVKON_CBA_BUTTON
- {
- id = EBCTestDomainCbaCmdNext;
- txt = qtn_bctestdomavkonpsln_cba_next;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_avkon_content
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_STYLUSACTIVATEDPOPUP_CONTENT r_bctestdomavkonpsln_avkon_content
- {
- titletext = qtn_content_title;
- infotext = qtn_content_info;
- cmdlinks =
- {
- AVKON_STYLUSACTIVATEDPOPUP_LINK
- {
- linkid = EAknStylusPopUpCmdLink1;
- linktext = qtn_content_link_txt;
- },
- AVKON_STYLUSACTIVATEDPOPUP_LINK
- {
- linkid = EAknStylusPopUpCmdLink2;
- linktext = qtn_content_link_txt;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_checkbox_setting_page
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_SETTING_PAGE r_bctestdomavkonpsln_checkbox_setting_page
- {
- number = CHECKBOX_SETTING_PAGE_NUMBER;
- label = qtn_aknatlist_multi_title;
- type = EAknSetListBox;
- editor_resource_id = r_bctestdomavkonpsln_listbox;
- menubar = r_bctestdomavkonpsln_menubar_main;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_listbox
-// ListBox( Single )
-//
-//-----------------------------------------------------------------------------
-//
-
-RESOURCE LISTBOX r_bctestdomavkonpsln_listbox
- {
- array_id = r_bctestdomavkonpsln_item_array;
- flags = EAknListBoxSelectionList;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_item_array
-// Items array for ListBox( Single 3 )
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE ARRAY r_bctestdomavkonpsln_item_array
- {
- items =
- {
- LBUF
- {
- txt = qtn_list_item_first;
- },
- LBUF
- {
- txt = qtn_list_item_second;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_editor
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_INTEGER_EDWIN r_bctestdomavkonpsln_editor
- {
- maxlength = 0;
- min = -99999999;
- max = 99999999;
- unset_value=-100000000;
- }
-
-// ----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_avkon_dynamic_volume_control
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-RESOURCE DYNAMIC_VOLUME r_bctestdomavkonpsln_avkon_dynamic_volume_control
- {
- flags = EDynRangePopupVolumeControl;
- value = 30; // Has to have a value, otherwise crashes
- bmpfile = AVKON_BMP_FILENAME;
- bmpid = EMbmAvkonQgn_indi_speaker_active;
- bmpmask = EMbmAvkonQgn_indi_speaker_active_mask;
- minvalue = 0;
- maxvalue = 40;
- }
-
-// ----------------------------------------------------------------------------
-//
-// NAVI_LABEL r_bctest_avkonpsln_label
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-RESOURCE NAVI_LABEL r_bctest_avkonpsln_label
- {
- txt = qtn_bctestdomavkonpsln_cba_next;
- }
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/group/bctestdomavkonpsln_reg.rss Fri Apr 16 15:13:44 2010 +0300
+++ /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:
-*
-*/
-#include <appinfo.rh>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomavkonpsln.loc"
-
-UID2 KUidAppRegistrationResourceFile
-UID3 0xA00040A1 // application UID
-
-RESOURCE APP_REGISTRATION_INFO
- {
- app_file = qtn_apps_name;
- localisable_resource_file = qtn_localization_filename;
- localisable_resource_id = R_BCTESTDOMAVKONPSLN_LOCALISABLE_APP_INFO;
- hidden = KAppIsHidden;
- embeddability = KAppNotEmbeddable;
- group_name = qtn_group_name;
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-/*
-* 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_MMPFILES
-
-bctestdomavkonpsln.mmp
-
-// End of File
-
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomakncase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,139 +0,0 @@
-/*
-* 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_BCTESTDOMAKNDOMAINCASE_H
-#define C_BCTESTDOMAKNDOMAINCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomAknCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomAknCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomAknCase();
-
-// 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();
-
- /**
- * TestAknSkinnableClockL
- */
- void TestSkinnableClockL();
-
- /**
- * TestAknSmallIndicatorL
- */
- void TestSmallIndicatorL();
-
- /**
- * TestAknSoftNotifierL
- */
- void TestSoftNotifierL();
-
- /**
- * TestAknStatuspaneUtils
- */
- void TestStatuspaneUtilsL();
-
- /**
- * TestAknPopupContentL
- */
- void TestPopupContentL();
-
- /**
- * TestSyncDrawL
- */
- void TestSyncDrawL();
-
- /**
- * TestAknTaskListL
- */
- void TestTaskListL();
-
- /**
- * TestAknTransitionUtilsL
- */
- void TestTransitionL();
-
- /**
- * TestCameraSettingPageL
- */
- void TestCameraSettingPageL();
-
- /**
- * TestAknVolumePopupL
- */
- void TestAknVolumePopupL();
-
- /**
- * TestLafSystemFontL
- */
- void TestLafSystemFontL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomAknCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNCASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpsln.hrh Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
-* 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: resource header file
-*
-*/
-
-
-#ifndef C_BCTESTDOMAVKONPSLN_HRH
-#define C_BCTESTDOMAVKONPSLN_HRH
-
-enum TBCTestDomainMenuCommands
- {
- EBCTestCmdEmptyOutline = 0x6000,
- EBCTestCmdOutline1,
- EBCTestCmdOutline2,
- EBCTestCmdOutline3,
- EBCTestCmdOutline4,
- EBCTestCmdOutline5,
- EBCTestCmdMaxOutline,
- EProgCmdAutoTest
- };
-
-enum TBCTestDomainCba
- {
- EBCTestDomainCbaCmdNext = 0x6300
- };
-
-#endif // C_BCTESTDOMAVKONPSLN_HRH
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpsln.loc Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/*
-* 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: bctestdomavkonpsln localise file
-*
-*/
-
-
-// LOCALISATION STRINGS
-
-// Caption
-#define qtn_apps_tavl_list "bctestdomavkonpsln"
-#define qtn_apps_tavl_grid "bctestdomavkonpsln"
-
-// MenuBar
-#define qtn_bctestdomavkonpsln_menubar "Option"
-#define qtn_bctestdomavkonpsln_cba_next "Next"
-#define qtn_bctestdomavkonpsln_autotest "Autotest"
-#define qtn_bctestdomavkonpsln_menu_exit "Exit"
-
-// softkey
-#define text_softkey_option "Options"
-
-// outline
-#define qtn_bctestdomavkonpsln_outline1 "Outline01"
-#define qtn_bctestdomavkonpsln_outline2 "Outline02"
-#define qtn_bctestdomavkonpsln_outline3 "Outline03"
-#define qtn_bctestdomavkonpsln_outline4 "Outline04"
-#define qtn_bctestdomavkonpsln_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"
-
-//Constant
-#define qtn_content_link_txt "link"
-#define qtn_content_title "title"
-#define qtn_content_info "info"
-
-#define qtn_list_item_first "first"
-#define qtn_list_item_second "second"
-
-// registraton string
-#define qtn_apps_name "bctestdomavkonpsln"
-#define qtn_localization_filename "\\resource\\apps\\bctestdomavkonpsln"
-#define qtn_group_name "BCTest"
-
-#define qtn_app_buf "avkonpsln"
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslnapp.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNAPP_H
-#define C_BCTESTDOMAVKONPSLNAPP_H
-
-#include <aknapp.h>
-
-const TUid KUidBCTestDomain = { 0xA00040A1 }; // UID of the application.
-
-/**
-* CBCTestDomAvkonPslnApp class.
-* Provides factory to create concrete document object.
-*/
-class CBCTestDomAvkonPslnApp : public CAknApplication
- {
-
-private:
-// From CApaApplication
-
- /**
- * From CApaApplication, CreateDocumentL.
- * Creates CBCTestDomAvkonPslnDocument document object.
- * @return A pointer to the created document object.
- */
- CApaDocument* CreateDocumentL();
-
- /**
- * From CApaApplication, AppDllUid.
- * Returns application's UID ( KUidBCTestDomain ).
- * @return The value of KUidBCTestDomain.
- */
- TUid AppDllUid() const;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNAPP_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslnappui.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNAPPUI_H
-#define C_BCTESTDOMAVKONPSLNAPPUI_H
-
-#include <aknviewappui.h>
-
-class CBCTestDomAvkonPslnView;
-class CBCTestUtil;
-
-/**
- * Application UI class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomAvkonPslnAppUi : public CAknViewAppUi
- {
-
-public:
-// Constructors and destructor
-
- /**
- * constructor
- */
- CBCTestDomAvkonPslnAppUi();
-
- /**
- * symbian 2nd constructor
- */
- void ConstructL();
-
- /**
- * destructor
- */
- virtual ~CBCTestDomAvkonPslnAppUi();
-
-private:
-
- /**
- * From CEikAppUi
- */
- void HandleCommandL( TInt aCommand );
-
-private:
-// data
-
- /**
- * pointor to the view.
- * own
- */
- CBCTestDomAvkonPslnView* iView;
-
- /**
- * pointor to the BC Test framework utility.
- * own
- */
- CBCTestUtil* iTestUtil;
- };
-
-#endif // C_BCTESTDOMAVKONPSLNAPPUI_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslncontainer.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNCONTAINER_H
-#define C_BCTESTDOMAVKONPSLNCONTAINER_H
-
-#include <coecntrl.h>
-
-class CBCTestDomEikCase;
-/**
-* container class
-*/
-class CBCTestDomAvkonPslnContainer: public CCoeControl
- {
-
- friend class CBCTestDomEikCase;
-
-public:
-// constructor and destructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomAvkonPslnContainer();
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomAvkonPslnContainer();
-
- /**
- * 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 component control.
- * own
- */
- CCoeControl* iControl;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNCONTAINER_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslndocument.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNDOCUMENT_H
-#define C_BCTESTDOMAVKONPSLNDOCUMENT_H
-
-#include <eikdoc.h>
-
-class CEikAppUi;
-
-/**
-* CBCTestDomAvkonPslnDocument class.
-*/
-class CBCTestDomAvkonPslnDocument : 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 CBCTestDomAvkonPslnDocument* NewL( CEikApplication& aApp );
-
- /**
- * Destructor.
- */
- virtual ~CBCTestDomAvkonPslnDocument();
-
-private:
-// Constructors
-
- /**
- * Overload constructor.
- * @param aApp Reference to Application class object.
- */
- CBCTestDomAvkonPslnDocument( CEikApplication& aApp );
-
-private:
-// From CEikDocument
-
- /**
- * From CEikDocument, CreateAppUiL.
- * Creates CBCTestDomAvkonPslnAppUi "App UI" object.
- * @return Pointer to created AppUi class object.
- */
- CEikAppUi* CreateAppUiL();
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNDOCUMENT_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslnext.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,273 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNEXT_H
-#define C_BCTESTDOMAVKONPSLNEXT_H
-
-#include <akntransitionutils.h>
-#include <akntransparentcamerasettingpage.h>
-#include <genericparamconsumer.h>
-#include <xnthememanagement.h>
-#include <pslnfwbasecontainer.h>
-#include <mpslnfwmsklabelobserver.h>
-#include <pslnfwbaseview.h>
-#include <itemfinder.h>
-#include <mpslnfwappthemeobserver.h>
-
-class MDesCArray;
-class CAknTransparentCameraSettingPage;
-class CGulIcon;
-class MItemFinderObserver;
-class CXnODT;
-class MPslnFWAppThemeObserver;
-
-
-/**
- * CAknTransitionExt class create just for test CAknTransition
- */
-class CAknTransitionExt : public CBase,
- public MAknTransitionUtilsObserver
- {
-
-public:
-
- /**
- * C++ default constructor
- */
- CAknTransitionExt();
-
- /**
- * C++ default destructor
- */
- virtual ~CAknTransitionExt();
-
- /**
- * Callback function
- */
- virtual TInt AknTransitionCallback( TInt, TInt,
- const TDesC8* );
-
- };
-
-
-/**
- * CAknTransparentCameraSettingPageExt class create just for test
- * CAknTransparentCameraSettingPage
- */
-class CAknTransparentCameraSettingPageExt : public CAknTransparentCameraSettingPage
- {
-
- friend class CBCTestDomAknCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CAknTransparentCameraSettingPageExt( TInt aResourceID,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray );
- /**
- * C++ default constructor
- */
- CAknTransparentCameraSettingPageExt( const TDesC* aSettingTitleText,
- TInt aSettingNumber,
- TInt aControlType,
- TInt aEditorResourceId,
- TInt aSettingPageResourceId,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray );
-
- };
-
-/**
- * CAiwGenericParamConsumerExt class create just for test
- * CAiwGenericParamConsumer
- */
-class CAiwGenericParamConsumerExt : public CAiwGenericParamConsumer
- {
-
- friend class CBCTestDomJPLangCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CAiwGenericParamConsumerExt( CEikApplication& aApp );
-
- /**
- * CreateAppUiL()
- */
- CEikAppUi* CreateAppUiL();
-
- };
-
-/**
- * CXnThemeManagementServiceObserverExt class
- */
-class CXnThemeManagementServiceObserverExt : public CBase,
- MXnThemeManagementServiceObserver
- {
-
-public:
-
- /**
- * HandleXnClientMessage()
- */
- virtual void HandleXnClientMessage( TXnServiceCompletedMessage
- /*aMessage*/ );
-
- };
-
-
-/**
- * CPslnFWBaseContainerExt class create just for test
- * CPslnFWBaseContainer
- */
-class CPslnFWBaseContainerExt : public CPslnFWBaseContainer
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CPslnFWBaseContainerExt();
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL( const TRect& aRect );
-
- /**
- * C++ default destructor
- */
- ~CPslnFWBaseContainerExt();
-
- /**
- * Construct ListBox from resource id
- */
- void ConstructListBoxL( TInt aResLbxId );
-
- };
-
-/**
- * Test Class CMPslnFWMSKObserverExt
- */
-class CMPslnFWMSKObserverExt : public CBase,
- public MPslnFWMSKObserver
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * interface function implemented to test
- */
- void CheckMiddleSoftkeyLabelL();
-
- };
-
-/**
- * CPslnFWBaseViewExt class create just for test
- * CPslnFWBaseView
- */
-class CPslnFWBaseViewExt : public CPslnFWBaseView
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL();
-
- /**
- * NewContainerL()
- */
- void NewContainerL();
-
- /**
- * HandleListBoxSelectionL()
- */
- void HandleListBoxSelectionL();
-
- /**
- * GetCaptionL()
- */
- void GetCaptionL( TDes& ) const;
-
- /**
- * GetTabTextL()
- */
- virtual void GetTabTextL( TDes& ) const;
-
- /**
- * CreateIconL()
- */
- virtual CGulIcon* CreateIconL();
-
- /**
- * Id()
- */
- TUid Id() const;
-
- };
-
-/**
- * Test Class CMPslnFWAppThemeObserverExt
- */
-class CItemFinderObserverExt : public CBase ,
- public MItemFinderObserver
- {
-
-public:
-
- void HandleParsingComplete();
- };
-
-/**
- * Test Class CMPslnFWAppThemeObserverExt
- */
-class CMPslnFWAppThemeObserverExt : public CBase,
- public MPslnFWAppThemeObserver
- {
-
-public:
-
- /**
- * HandleMessage()
- */
- void HandleMessage( TXnServiceCompletedMessage );
-
- /**
- * HandleMessage() Overload
- */
- void HandleMessage(
- const TXnServiceCompletedMessage,
- CArrayPtrFlat<CXnODT>& );
- };
-
-#endif
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomavkonpslnview.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNVIEW_H
-#define C_BCTESTDOMAVKONPSLNVIEW_H
-
-#include <aknview.h>
-
-const TUid KBCTestDomainViewId = { 1 };
-
-class CBCTestDomAvkonPslnContainer;
-class CBCTestUtil;
-
-/**
- * CBCTestDomAvkonPslnView class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomAvkonPslnView : public CAknView
- {
-
-public:
-// Constructors and destructor
-
- /**
- * Symbian static 2nd constructor
- */
- static CBCTestDomAvkonPslnView* NewL( CBCTestUtil* aUtil );
-
- /**
- * destructor
- */
- virtual ~CBCTestDomAvkonPslnView();
-
-// from CAknView
-
- /**
- * Return view Id.
- */
- TUid Id() const;
-
- /**
- * From CAknView, HandleCommandL.
- * @param aCommand Command to be handled.
- */
- void HandleCommandL( TInt aCommand );
-
- /**
- * getter of Container
- */
- CBCTestDomAvkonPslnContainer* 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
- */
- CBCTestDomAvkonPslnView();
-
- /**
- * symbian 2nd constructor
- */
- 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
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNVIEW_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomeikcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,105 +0,0 @@
-/*
-* 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_BCTESTDOMEIKCASE_H
-#define C_BCTESTDOMEIKCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomEikCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomEikCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomEikCase();
-
-// 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();
-
- /**
- * TestAlarmControlL
- */
- void TestAlarmControlL();
-
- /**
- * TestSettingsListBoxDataL
- */
- void TestSettingsListBoxDataL();
-
- /**
- * TestSettingsListBoxDataL
- */
- void TestEikSoftkeyImageL();
-
- /**
- * TestServAppUiBaseL
- */
- void TestServAppUiBaseL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomEikCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private:
-// data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomfindcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/*
-* 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_BCTESTDOMFINDCASE_H
-#define C_BCTESTDOMFINDCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomFindCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomFindCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomFindCase();
-
-// 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 CFindItemDialog Class
- */
- void TestFindItemDialogL();
-
- /**
- * Test CFindItemMenu Class
- */
- void TestFindItemMenuL();
-
- /**
- * Test CFindUtil Class
- */
- void TestFindUtilL();
-
- /**
- * for test CItemFinder Class
- */
- void TestItemFinderL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomFindCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private:
-// data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdomjplangcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-/*
-* 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_BCTESTDOMJPLANGCASE_H
-#define C_BCTESTDOMJPLANGCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomJPLangCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomJPLangCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomJPLangCase();
-
-// 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();
-
- /**
- * TestJPLangUtilL()
- */
- void TestJPLangUtilL();
-
- /**
- * TestNumberGroupL()
- */
- void TestNumberGroupL();
-
- /**
- * TestGenericParamConsumerL()
- */
- void TestGenericParamConsumerL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomJPLangCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/inc/bctestdompslncase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-/*
-* 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_BCTESTDOMPSLNCASE_H
-#define C_BCTESTDOMPSLNCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomPslnCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomPslnCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomPslnCase();
-
-// 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();
-
- /**
- * TestPslnFWBaseContainerL
- */
- void TestPslnFWBaseContainerL();
-
- /**
- * TestPslnFWBaseView
- */
- void TestPslnFWBaseViewL();
-
- /**
- * TestFWIconHelperL
- */
- void TestFWIconHelperL();
-
- /**
- * TestFWPluginHandlerL
- */
- void TestFWPluginHandlerL();
-
- /**
- * TestPslnFWAppThemeHandlerL
- */
- void TestPslnFWAppThemeHandlerL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomPslnCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/readme.txt Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-case : bctestakncase
-tested header files:
-<aknskinnableclock.h>
-<aknsmallindicator.h>
-<aknsoftnotificationparameters.h>
-<aknsoftnotifier.h>
-<aknstatuspaneutils.h>
-<aknstylusactivatedpopupcontent.h>
-<aknsyncdraw.h>
-<akntasklist.h>
-<akntransitionutils.h>
-<aknvolumepopup.h>
-<aknsystemfont.h>
-
-case : bctesteikcase
-tested header files:
-<eikalmct.h>
-<eikslbd.h>
-<eiksoftkeyimage.h>
-<eiksrvui.h>
-
-case : bctestfindcase
-tested header files:
-<finditemdialog.h>
-<finditemmenu.h>
-<findutil.h>
-<itemfinder.h>
-
-case : bctestjplangcase
-tested header files:
-<jplangutil.h>
-<numbergrouping.h>
-
-case :bctestpslncase
-tested header files:
-<PslnFWAppThemeHandler.h>
-<PslnFWBaseContainer.h>
-<PslnFWBaseView.h>
-<PslnFWIconHelper.h>
-<PslnFWPluginHandler.h>
-
-Warning:
-
-there would be some error in the header file "aknstylusactivatedpopupcontent.h"
-when compiling the project on the Week38 SDK,the user can modify the header file
-by add the "class TAknWindowComponentLayout;" predeclaration to reslove the problem
-
-
-
-
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/sis/bctestdomavkonpsln.pkg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-;
-; 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: Package file for project bctestdomavkonpsln
-;
-
-; bctestdomavkonpsln.pkg
-
-; Languages
-&EN
-
-; Header
-#{"bctestdomavkonpsln"},(0xA00040A1),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\bctestdomavkonpsln.exe"-
-"!:\sys\bin\bctestdomavkonpsln.exe"
-
-"\epoc32\data\z\resource\apps\bctestdomavkonpsln.r01"-
-"!:\resource\apps\bctestdomavkonpsln.r01"
-
-"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestdomavkonpsln_reg.r01"-
-"!:\PRIVATE\10003A3F\import\APPS\bctestdomavkonpsln_reg.r01"
-
-; bctestutil must be installed
-(0x20004742), 1, 10, 0, {"bctestutil.dll"}
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomakncase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,953 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32const.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <fbs.h>
-#include <aknskinnableclock.h>
-#include <aknsmallindicator.h>
-/*
-The "class TAknWindowComponentLayout;" and "class CAknStylusActivatedItem;"
-should be added when "aknstylusactivatedpopupcontent.h" is used.
-*/
-class CAknStylusActivatedItem;
-class TAknWindowComponentLayout;
-#include <aknstylusactivatedpopupcontent.h>
-#include <aknsoftnotificationparameters.h>
-#include <aknnotedialog.h>
-#include <aknsoftnotifier.h>
-#include <aknstatuspaneutils.h>
-#include <aknsyncdraw.h>
-#include <akntasklist.h>
-#include <akntransitionutils.h>
-#include <aknvolumepopup.h>
-#include <aknform.h>
-#include <aknsystemfont.h>
-#include <s32file.h>
-#include <s32strm.h>
-
-#include <avkon.mbg>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomakncase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-
-//CONSTANTS
-
-const TInt KWidth = 25;
-const TInt KHeight = 25;
-const TInt KShareVolumeUid = 0x000000001;
-const TInt KViewerUid = 0x10282D0A;
-const TInt KVolumeMaxValue = 10;
-const TInt KVolumeMinValue = 0;
-const TInt KDesLength = 24;
-
-_LIT( KFilePath, "C:\\bctestlog\\rest.txt" );
-_LIT8( KMessage, "Message Descriptor" );
-_LIT( KTitle, "Title" );
-_LIT( KText, "Text" );
-_LIT( KDriver, "C:" );
-
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase* CBCTestDomAknCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomAknCase* self = new( ELeave ) CBCTestDomAknCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase::CBCTestDomAknCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase::~CBCTestDomAknCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::BuildScriptL()
- {
- // Add script as your need.
- AddTestL( DELAY(1), LeftCBA, KeyOK, KeyOK, TEND );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline1 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline1:
- TestSkinnableClockL();
- TestSmallIndicatorL();
- TestSoftNotifierL();
- TestStatuspaneUtilsL();
- #ifdef RD_SCALABLE_UI_V2
- TestPopupContentL();
- #endif
- TestTransitionL();
- TestCameraSettingPageL();
- TestAknVolumePopupL();
- TestLafSystemFontL();
- TestTaskListL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSkinnableClock()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSkinnableClockL()
- {
- // Test some API here
- _LIT( KNewL, "CAknSkinnableClock::NewL invoked" );
- _LIT( KUpdateDisplay, "CAknSkinnableClock::NewL UpdateDisplay invoked" );
- _LIT( KSetFormatL, "CAknSkinnableClock::NewL SetFormatL invoked" );
- _LIT( KDes, "CAknSkinnableClock::~CAknSkinnableClock invoked" );
-
- CAknSkinnableClock* clock =
- CAknSkinnableClock::NewL( iContainer, ETrue, ETrue );
- CleanupStack::PushL( clock );
- AssertNotNullL( clock, KNewL );
-
- clock->UpdateDisplay();
- AssertTrueL( ETrue, KUpdateDisplay );
-
- clock->SetFormatL( EClockDigital );
- AssertTrueL( ETrue, KSetFormatL );
-
- TPointerEvent event;
- event.iType = TPointerEvent::EButton1Down;
- event.iModifiers = 0;
- TPoint eventPos( KWidth, KHeight );
- event.iPosition = eventPos;
- event.iParentPosition = eventPos;
-
- clock->HandlePointerEventL( event );
- CleanupStack::Pop( clock );
- delete clock;
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSmallIndicator
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSmallIndicatorL()
- {
- // Test some API here
- _LIT( KNewL, "CAknSmallIndicator::NewL invoked" );
- _LIT( KDes, "CAknSmallIndicator::~CAknSmallIndicator invoked" );
- _LIT( KNewLC, "CAknSmallIndicator::NewLC invoked" );
- _LIT( KSetIndicatorStateL,
- "CAknSmallIndicator::SetIndicatorStateL invoked" );
- _LIT( KHandleIndicatorTapL,
- "CAknSmallIndicator::HandleIndicatorTapL invoked" );
-
- CAknSmallIndicator* indicator =
- CAknSmallIndicator::NewL( TUid::Uid( KViewerUid ) );
- CleanupStack::PushL( indicator );
- AssertNotNullL( indicator, KNewL );
-
- CleanupStack::Pop( indicator );
- delete indicator;
- AssertTrueL( ETrue, KDes );
-
- indicator = CAknSmallIndicator::NewLC( TUid::Uid( KViewerUid ) );
- AssertNotNullL( indicator, KNewLC );
-
- indicator->SetIndicatorStateL( 0 );
- AssertTrueL( ETrue, KSetIndicatorStateL );
-
- indicator->HandleIndicatorTapL();
- AssertTrueL( ETrue, KHandleIndicatorTapL );
-
- CleanupStack::PopAndDestroy( indicator );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSoftNotifier
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSoftNotifierL()
- {
-
- _LIT( KNewL, "CAknSoftNotificationParameters::NewL invoked" );
- _LIT( KDes, "CAknSoftNotificationParameters::\
- ~CAknSoftNotificationParameters invoked" );
- _LIT( KNewLOver, "CAknSoftNotificationParameters::NewL overload invoked" );
- _LIT( KNewLOverLoad,
- "CAknSoftNotificationParameters::NewL overload invoked" );
- _LIT( KNotifierNewL, "CAknSoftNotifier::NewL invoked" );
- _LIT( KNotifierDes, "CAknSoftNotifier::~CAknSoftNotifier invoked" );
- _LIT( KNewLC, "CAknSoftNotifier::NewLC invoked" );
- _LIT( KAddNotificationL, "CAknSoftNotifier::AddNotificationL invoked" );
- _LIT( KAddNotificationLOverLoad,
- "CAknSoftNotifier::AddNotificationL overload invoked" );
- _LIT( KSetNotificationCountL,
- "CAknSoftNotifier::SetNotificationCountL invoked" );
- _LIT( KCancelSoftNotificationL,
- "CAknSoftNotifier::CancelSoftNotificationL invoked" );
- _LIT( KAddCustomNotificationL,
- "CAknSoftNotifier::AddCustomNotificationL invoked" );
- _LIT( KSetCustomNotificationCountL,
- "CAknSoftNotifier::SetCustomNotificationCountL invoked" );
- _LIT( KCancelCustomSoftNotificationL,
- "CAknSoftNotifier::CancelCustomSoftNotificationL invoked" );
-
-
- CAknSoftNotificationParameters* parameters =
- CAknSoftNotificationParameters::NewL();
- CleanupStack::PushL( parameters );
- AssertNotNullL( parameters, KNewL );
-
- CleanupStack::Pop( parameters );
- delete parameters;
- AssertTrueL( ETrue, KDes );
-
-
- parameters = CAknSoftNotificationParameters::
- NewL( KFilePath, 0, 0, 0, CAknNoteDialog::ENoTone);
- CleanupStack::PushL( parameters );
- AssertTrueL( ETrue, KNewLOver );
- CleanupStack::Pop( parameters );
- delete parameters;
-
- parameters = CAknSoftNotificationParameters::NewL( KDriver, 0, 0, 0,
- CAknNoteDialog::ENoTone,
- KNullViewId, KNullUid,
- 0, KMessage );
- CleanupStack::PushL( parameters );
- AssertNotNullL( parameters, KNewLOverLoad );
-
- CAknSoftNotifier* notifier = CAknSoftNotifier::NewL();
- CleanupStack::PushL( notifier );
- AssertNotNullL( notifier, KNotifierNewL );
- CleanupStack::Pop( notifier );
- delete notifier;
- AssertTrueL( ETrue, KNotifierDes );
-
- notifier = CAknSoftNotifier::NewLC();
- AssertNotNullL( notifier, KNewLC );
-
- notifier->AddNotificationL( ENetworkInformationNotification );
- AssertTrueL( ETrue, KAddNotificationL );
-
- notifier->AddNotificationL( ENetworkInformationNotification, 1 );
- AssertTrueL( ETrue, KAddNotificationLOverLoad );
-
- notifier->SetNotificationCountL( ENetworkInformationNotification, 1 );
- AssertTrueL( ETrue, KSetNotificationCountL );
-
- notifier->CancelSoftNotificationL( ENetworkInformationNotification );
- AssertTrueL( ETrue, KCancelSoftNotificationL );
-
- notifier->AddCustomNotificationL( *parameters );
- AssertTrueL( ETrue, KAddCustomNotificationL );
-
- notifier->SetCustomNotificationCountL( *parameters, 1 );
- AssertTrueL( ETrue, KSetCustomNotificationCountL );
-
- notifier->CancelCustomSoftNotificationL( *parameters );
- AssertTrueL( ETrue, KCancelCustomSoftNotificationL );
-
- CleanupStack::PopAndDestroy( notifier );
- CleanupStack::PopAndDestroy( parameters );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestStatuspaneUtils
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestStatuspaneUtilsL()
- {
-
- _LIT( KStaconPaneActive, "AknStatuspaneUtils::StaconPaneActive invoked" );
- _LIT( KStaconSoftKeysLeft,
- "AknStatuspaneUtils::StaconSoftKeysLeft invoked" );
- _LIT( KStaconSoftKeysRight,
- "AknStatuspaneUtils::StaconSoftKeysRight invoked" );
- _LIT( KIdleLayoutActive, "AknStatuspaneUtils::IdleLayoutActive invoked" );
- _LIT( KFlatLayoutActive, "AknStatuspaneUtils::FlatLayoutActive invoked" );
- _LIT( KUsualLayoutActive,
- "AknStatuspaneUtils::UsualLayoutActive invoked" );
- _LIT( KSmallLayoutActive,
- "AknStatuspaneUtils::SmallLayoutActive invoked" );
- _LIT( KTouchPaneCompatibleLayoutActive,
- "AknStatuspaneUtils::TouchPaneCompatibleLayoutActive invoked" );
- _LIT( KExtendedStaconPaneActive,
- "AknStatuspaneUtils::ExtendedStaconPaneActive invoked" );
- _LIT( KExtendedFlatLayoutActive,
- "AknStatuspaneUtils::ExtendedFlatLayoutActive invoked" );
-
- TBool val = AknStatuspaneUtils::StaconPaneActive();
- AssertTrueL( ETrue, KStaconPaneActive );
-
- val = AknStatuspaneUtils::StaconSoftKeysLeft();
- AssertTrueL( ETrue, KStaconSoftKeysLeft );
-
- val = AknStatuspaneUtils::StaconSoftKeysRight();
- AssertTrueL( ETrue, KStaconSoftKeysRight );
-
- val = AknStatuspaneUtils::IdleLayoutActive();
- AssertTrueL( ETrue, KIdleLayoutActive );
-
- val = AknStatuspaneUtils::FlatLayoutActive();
- AssertTrueL( ETrue, KFlatLayoutActive );
-
- val = AknStatuspaneUtils::UsualLayoutActive();
- AssertTrueL( ETrue, KUsualLayoutActive );
-
- val = AknStatuspaneUtils::SmallLayoutActive();
- AssertTrueL( ETrue, KSmallLayoutActive );
-
- val = AknStatuspaneUtils::TouchPaneCompatibleLayoutActive();
- AssertTrueL( ETrue, KTouchPaneCompatibleLayoutActive );
-
- val = AknStatuspaneUtils::ExtendedStaconPaneActive();
- AssertTrueL( ETrue, KExtendedStaconPaneActive );
-
- val = AknStatuspaneUtils::ExtendedFlatLayoutActive();
- AssertTrueL( ETrue, KExtendedFlatLayoutActive );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestPopupContent()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestPopupContentL()
- {
-
- _LIT( KNewL, "CAknStylusActivatedPopUpContent::NewL invoked" );
- _LIT( KNewLOverload, "CAknStylusActivatedPopUpContent\
- ::NewL overload invoked" );
- _LIT( KNewLRes, "CAknStylusActivatedPopUpContent\
- ::NewL int resid overload invoked" );
- _LIT( KNewLReader, "CAknStylusActivatedPopUpContent\
- ::NewL reader resid overload invoked" );
- _LIT( KDes, "CAknStylusActivatedPopUpContent::\
- ~CAknStylusActivatedPopUpContent invoked" );
- _LIT( KComponentControl, "CAknStylusActivatedPopUpContent::\
- ComponentControl invoked" );
- _LIT( KCountComponentControls,
- "CAknStylusActivatedPopUpContent::CountComponentControls invoked" );
- _LIT( KMinimumSize,
- "CAknStylusActivatedPopUpContent::MinimumSize invoked" );
- _LIT( KHandleResourceChange,
- "CAknStylusActivatedPopUpContent::HandleResourceChange() invoked" );
- _LIT( KSetContainerWindowL,
- "CAknStylusActivatedPopUpContent::SetContainerWindowL() invoked" );
- _LIT( KSetCommandObserver,
- "CAknStylusActivatedPopUpContent::SetCommandObserver invoked" );
- _LIT( KHandlePointerEventL,
- "CAknStylusActivatedPopUpContent::HandlePointerEventL invoked" );
- _LIT( KHandleControlEventL,
- "CAknStylusActivatedPopUpContent::HandleControlEventL invoked" );
-
- CAknStylusActivatedPopUpContent* content
- = CAknStylusActivatedPopUpContent::NewL( KTitle, KText );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewL );
-
- CleanupStack::Pop( content );
- delete content;
- AssertTrueL( ETrue, KDes );
-
- TBuf<KDesLength> linktxt( KTitle );
- RArray<TAknContentLink> array;
- TAknContentLink link;
- link.iLinkText = &linktxt;
- CleanupClosePushL( array );
- array.Append( link );
- content = CAknStylusActivatedPopUpContent::NewL( KTitle, KText, array );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewLOverload );
- CleanupStack::Pop( content );
- delete content;
- CleanupStack::PopAndDestroy( &array );
-
- content = CAknStylusActivatedPopUpContent::
- NewL( R_BCTESTDOMAVKONPSLN_AVKON_CONTENT );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewLRes );
-
- CAknForm* frm = new ( ELeave ) CAknForm();
- CleanupStack::PushL( frm );
- frm->ConstructL();
-
- content->SetCommandObserver( *frm );
- AssertTrueL( ETrue, KSetCommandObserver );
-
- content->HandleResourceChange( 0 );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- content->SetContainerWindowL( *iContainer );
- AssertTrueL( ETrue, KSetContainerWindowL );
-
- TPointerEvent event;
- event.iType = TPointerEvent::EButton1Down;
- event.iModifiers = 0;
- TPoint eventPos( KWidth, KHeight );
- event.iPosition = eventPos;
- event.iParentPosition = eventPos;
- content->HandlePointerEventL( event );
- AssertTrueL( ETrue, KHandlePointerEventL );
-
- content->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestExit );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- CleanupStack::Pop( frm );
- CleanupStack::Pop( content );
-
- delete content;
- delete frm;
-
- TResourceReader reader;
- CCoeEnv::Static()->CreateResourceReaderLC( reader,
- R_BCTESTDOMAVKONPSLN_AVKON_CONTENT );
- CCoeControl* ctrl = CAknStylusActivatedPopUpContent::NewL( reader );
- CleanupStack::PushL( ctrl );
- AssertNotNullL( ctrl, KNewLReader );
-
- ctrl->ComponentControl( 0 );
- AssertTrueL( ETrue, KComponentControl );
-
- ctrl->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- ctrl->MinimumSize();
- AssertTrueL( ETrue, KMinimumSize );
-
- CleanupStack::PopAndDestroy( ctrl );
- CleanupStack::PopAndDestroy(); // reader
-
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSyncDraw()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSyncDrawL()
- {
-
- _LIT( KConstruct, "TAknSyncControlDrawer::TAknSyncControlDrawer invoked" );
- _LIT( KSetControl, "TAknSyncControlDrawer::SetControl invoked" );
- _LIT( KMasrPrepareForDraw,
- "TAknSyncControlDrawer::MasrPrepareForDraw invoked" );
- _LIT( KMasrDraw, "TAknSyncControlDrawer::MasrDraw invoked" );
- _LIT( KMasrDeactivateGc,
- "TAknSyncControlDrawer::MasrDeactivateGc invoked" );
- _LIT( KMasrActivateGc,
- "TAknSyncControlDrawer::MasrActivateGc invoked" );
- _LIT( KNewL, "CAknDrawSynchronizer::NewL invoked" );
- _LIT( KAddL, "CAknDrawSynchronizer::AddL invoked" );
- _LIT( KSignal, "CAknDrawSynchronizer::Signal invoked" );
- _LIT( KRemove, "CAknDrawSynchronizer::Remove invoked" );
- _LIT( KDes, "CAknDrawSynchronizer::~CAknDrawSynchronizer invoked" );
-
- TAknSyncControlDrawer drawer;
- AssertTrueL( ETrue, KConstruct );
-
- drawer.SetControl( iContainer );
- AssertTrueL( ETrue, KSetControl );
-
- drawer.MasrPrepareForDraw();
- AssertTrueL( ETrue, KMasrPrepareForDraw );
-
- drawer.MasrDraw();
- AssertTrueL( ETrue, KMasrDraw );
-
- drawer.MasrDeactivateGc();
- AssertTrueL( ETrue, KMasrDeactivateGc );
-
- drawer.MasrActivateGc();
- AssertTrueL( ETrue, KMasrActivateGc );
-
- CAknDrawSynchronizer* sync = CAknDrawSynchronizer::NewL();
- CleanupStack::PushL( sync );
- AssertNotNullL( sync, KNewL );
-
- sync->AddL( &drawer );
- AssertTrueL( ETrue, KAddL );
-
- sync->Signal( &drawer );
- AssertTrueL( ETrue, KSignal );
-
- sync->Remove( &drawer );
- AssertTrueL( ETrue, KRemove );
-
- CleanupStack::PopAndDestroy( sync );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestTaskListL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestTaskListL()
- {
-
- _LIT( KNewL, "CAknTaskList::NewL invoked" );
- _LIT( KNewLC, "CAknTaskList::NewLC invoked" );
- _LIT( KDes, "CAknTaskList::~CAknTaskList invoked" );
- _LIT( KUpdateListL, "CAknTaskList::UpdateListL invoked" );
- _LIT( KWgArray, "CAknTaskList::WgArray invoked" );
- _LIT( KFindRootApp, "CAknTaskList::FindRootApp invoked" );
- _LIT( KIsRootWindowGroup, "CAknTaskList::IsRootWindowGroup invoked" );
-
- CAknTaskList* tasklist =
- CAknTaskList::NewL( CCoeEnv::Static()->WsSession() );
- CleanupStack::PushL( tasklist );
- AssertNotNullL( tasklist, KNewL );
-
- CleanupStack::Pop( tasklist );
- delete tasklist;
- AssertTrueL( ETrue, KDes );
-
- tasklist = CAknTaskList::NewLC( CCoeEnv::Static()->WsSession() );
- AssertNotNullL( tasklist, KNewLC );
-
- tasklist->UpdateListL();
- AssertTrueL( ETrue, KUpdateListL );
-
- tasklist->WgArray();
- AssertTrueL( ETrue, KWgArray );
-
- tasklist->FindRootApp( KNullUid );
- AssertTrueL( ETrue, KFindRootApp );
-
- TBool val = tasklist->IsRootWindowGroup( 0 );
- AssertTrueL( ETrue, KIsRootWindowGroup );
-
- CleanupStack::PopAndDestroy( tasklist );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestTransitionL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestTransitionL()
- {
-
- _LIT( KCAknTransition, "CAknTransition::CAknTransition invoked" );
- _LIT( KAddObserver, "CAknTransitionUtils::AddObserver invoked" );
- _LIT( KRemoveObserver, "CAknTransitionUtils::RemoveObserver invoked" );
- _LIT( KGetState, "CAknTransitionUtils::GetState invoked" );
- _LIT( KSetData, "CAknTransitionUtils::SetData invoked" );
- _LIT( KGetData, "CAknTransitionUtils::GetData invoked" );
- _LIT( KRemoveData, "CAknTransitionUtils::RemoveData invoked" );
- _LIT( KSetAllParents, "CAknTransitionUtils::SetAllParents invoked" );
- _LIT( KTransitionsEnabled,
- "CAknTransitionUtils::TransitionsEnabled invoked" );
- _LIT( KMakeVisibleSubComponents,
- "CAknTransitionUtils::MakeVisibleSubComponents invoked" );
- _LIT( KGetDemarcation, "CAknTransitionUtils::GetDemarcation invoked" );
- _LIT( KDes, "CAknTransition::~CAknTransition invoked" );
-
- CAknTransitionExt* observer = new ( ELeave ) CAknTransitionExt;
- CleanupStack::PushL( observer );
- AssertNotNullL( observer, KCAknTransition );
-
- TInt res = CAknTransitionUtils::AddObserver( observer,
- CAknTransitionUtils::EEventWsBufferRedirection );
- AssertTrueL( ETrue, KAddObserver );
-
- CAknTransitionUtils::RemoveObserver( observer,
- CAknTransitionUtils::EEventWsBufferRedirection );
- AssertTrueL( ETrue, KRemoveObserver );
-
- TInt stat;
- CAknTransitionUtils::GetState(
- CAknTransitionUtils::EEventWsBufferRedirection,
- &stat );
- AssertTrueL( ETrue, KGetState );
-
- TInt skey( 0 ),sdata( 0 );
- CAknTransitionUtils::SetData( skey, &sdata );
- AssertTrueL( ETrue, KSetData );
-
- CAknTransitionUtils::GetData( skey );
- AssertTrueL( ETrue, KGetData );
-
- CAknTransitionUtils::RemoveData( skey );
- AssertTrueL( ETrue, KRemoveData );
-
- CAknTransitionUtils::SetAllParents( iContainer );
- AssertTrueL( ETrue, KSetAllParents );
-
- CAknTransitionUtils::TransitionsEnabled( sdata );
- AssertTrueL( ETrue, KTransitionsEnabled );
-
- CAknTransitionUtils::MakeVisibleSubComponents( iContainer, ETrue );
- AssertTrueL( ETrue, KMakeVisibleSubComponents );
-
- TRect rect;
- CAknTransitionUtils::GetDemarcation(
- CAknTransitionUtils::EOptionsMenu,
- rect );
- AssertTrueL( ETrue, KGetDemarcation );
-
- CleanupStack::PopAndDestroy( observer );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestCameralSettingPageL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestCameraSettingPageL()
- {
-
- _LIT( KCAknTransparentCameraSettingPage,
- "CAknTransparentCameraSettingPage::\
- CAknTransparentCameraSettingPage invoked" );
- _LIT( KCAknTransparentCameraSettingPageDes,
- "CAknTransparentCameraSettingPage::\
- ~CAknTransparentCameraSettingPage invoked" );
- _LIT( KCAknTransparentCameraSettingPageOverload,
- "CAknTransparentCameraSettingPage::\
- CAknTransparentCameraSettingPage overload invoked" );
- _LIT( KConstructL,
- "CAknTransparentCameraSettingPage::Constructor invoked" );
- _LIT( KListBoxControl,
- "CAknTransparentCameraSettingPage::ListBoxControl invoked" );
- _LIT( KSetItemArrayAndSelectionL,
- "CAknTransparentCameraSettingPage::\
- SetItemArrayAndSelectionL invoked" );
- _LIT( KChangeBackground,
- "CAknTransparentCameraSettingPage::ChangeBackground invoked" );
- _LIT( KSetBitmapPositionAndClipRect,
- "CAknTransparentCameraSettingPage::\
- SetBitmapPositionAndClipRect invoked" );
- _LIT( KUpdateSettingL,
- "CAknTransparentCameraSettingPage::UpdateSettingL invoked" );
- _LIT( KDynamicInitL,
- "CAknTransparentCameraSettingPage::DynamicInitL invoked" );
- _LIT( KSelectCurrentItemL,
- "CAknTransparentCameraSettingPage::SelectCurrentItemL invoked" );
- _LIT( KProcessCommandL,
- "CAknTransparentCameraSettingPage::ProcessCommandL invoked" );
- _LIT( KOfferKeyEventL,
- "CAknTransparentCameraSettingPage::OfferKeyEventL invoked" );
- _LIT( KSizeChanged,
- "CAknTransparentCameraSettingPage::SizeChanged invoked" );
- _LIT( KDraw,
- "CAknTransparentCameraSettingPage::Draw invoked" );
- _LIT( KExecuteLD,
- "CAknTransparentCameraSettingPage::ExecuteLD invoked" );
- _LIT( KHandleListBoxEventL,
- "CAknTransparentCameraSettingPage::HandleListBoxEventL invoked" );
- _LIT( KHandleResourceChange,
- "CAknTransparentCameraSettingPage::HandleResourceChange invoked" );
- _LIT( KHandleControlEventL,
- "CAknTransparentCameraSettingPage::HandleControlEventL invoked" );
- _LIT( KWriteInternalStateL,
- "CAknTransparentCameraSettingPage::WriteInternalStateL invoked" );
-
- TInt index( 0 );
- CPtrCArray* array = new ( ELeave ) CPtrCArray( 1 );
- TBuf<KDesLength> txt( KTitle );
- array->AppendL( txt );
- CleanupStack::PushL( array );
-
- CAknTransparentCameraSettingPageExt* settingpage =
- new ( ELeave ) CAknTransparentCameraSettingPageExt(
- R_BCTESTDOMAVKONPSLN_CHECKBOX_SETTING_PAGE,
- index,
- array );
- CleanupStack::PushL( settingpage );
- AssertNotNullL( settingpage, KCAknTransparentCameraSettingPage );
-
-
- settingpage->ConstructL();
- CleanupStack::Pop( settingpage );
-
- TRect rect( 0, 0, 0, 0 );
- settingpage->Draw( rect );
- AssertTrueL( ETrue, KDraw );
- settingpage->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted );
- AssertTrueL( ETrue, KExecuteLD );
-
- settingpage = NULL;
- AssertTrueL( ETrue, KCAknTransparentCameraSettingPageDes );
-
- settingpage = new ( ELeave ) CAknTransparentCameraSettingPageExt(
- &KTitle,
- 0,
- 0,
- 0,
- R_BCTESTDOMAVKONPSLN_CHECKBOX_SETTING_PAGE,
- index,
- array );
- CleanupStack::PushL( settingpage );
- AssertNotNullL( settingpage, KCAknTransparentCameraSettingPageOverload );
-
- settingpage->ConstructL();
- AssertTrueL( ETrue, KConstructL );
-
- settingpage->ListBoxControl();
- AssertTrueL( ETrue, KListBoxControl );
-
- CEikListBox* list = new ( ELeave ) CEikListBox();
- CleanupStack::PushL( list );
- settingpage->HandleListBoxEventL( list,
- MEikListBoxObserver::
- EEventEnterKeyPressed );
- AssertTrueL( ETrue, KHandleListBoxEventL );
- CleanupStack::PopAndDestroy( list );
-
- settingpage->SetItemArrayAndSelectionL( array, 0 );
- AssertTrueL( ETrue, KSetItemArrayAndSelectionL );
-
- TPoint point( 0, 0 );
- settingpage->SetBitmapPositionAndClipRect( point, rect );
- AssertTrueL( ETrue, KSetBitmapPositionAndClipRect );
-
- settingpage->HandleResourceChange( index );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- settingpage->UpdateSettingL();
- AssertTrueL( ETrue, KUpdateSettingL );
-
- settingpage->DynamicInitL();
- AssertTrueL( ETrue, KDynamicInitL );
-
- settingpage->SelectCurrentItemL();
- AssertTrueL( ETrue, KSelectCurrentItemL );
-
- settingpage->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestCancel );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
-
- settingpage->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- settingpage->SizeChanged();
- AssertTrueL( ETrue, KSizeChanged );
-
- CFbsBitmap* bmp = NULL;
- bmp = AknIconUtils::CreateIconL( AknIconUtils::AvkonIconFileName(),
- EMbmAvkonQgn_prop_nrtyp_note );
- CleanupStack::PushL( bmp );
- AssertNotNullL( bmp );
-
- settingpage->SetBitmapPositionAndClipRect( point, rect, ETrue );
- AssertTrueL( ETrue, KSetBitmapPositionAndClipRect );
-
- settingpage->ChangeBackground( bmp );
- AssertTrueL( ETrue, KChangeBackground );
-
- CCoeEnv::Static()->AppUi()->AddToStackL( settingpage );
- settingpage->ProcessCommandL( EAknSoftkeyHide );
- AssertTrueL( ETrue, KProcessCommandL );
-
- CCoeEnv::Static()->AppUi()->RemoveFromStack( settingpage );
-
- RFileWriteStream stream;
- stream.PushL();
- stream.Replace( CCoeEnv::Static()->FsSession(), KFilePath, EFileWrite );
- settingpage->WriteInternalStateL( stream );
- AssertTrueL( ETrue, KWriteInternalStateL );
- stream.Pop();
- stream.Close();
-
- CleanupStack::PopAndDestroy( bmp );
- CleanupStack::PopAndDestroy( settingpage );
- CleanupStack::PopAndDestroy( array );
-
- }
-
-// ----------------------------------------------------------------------------
-// Test AknVolumePopup.
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestAknVolumePopupL()
- {
- _LIT( KNewL, "CAknVolumePopup::NewL invoked" );
- _LIT( KNewLOverLoad, "CAknVolumePopup::NewL overload invoked" );
- _LIT( KConstructFromResource,
- "CAknVolumePopup::ConstructFromResourceL invoked" );
- _LIT( KCountComponentControls,
- "CAknVolumePopup::CountComponentControls invoked" );
- _LIT( KComponentControl, "CAknVolumePopup::ComponentControl invoked" );
- _LIT( KHandlePointerEventL, "CAknVolumePopup::HandlePointerEventL invoked" );
- _LIT( KOfferKeyEventL, "CAknVolumePopup::OfferKeyEventL invoked" );
- _LIT( KHandleControlEventL, "CAknVolumePopup::HandleControlEventL invoked" );
- _LIT( KHandleVolumeKeyEventL,
- "CAknVolumePopup::HandleVolumeKeyEventL invoked" );
- _LIT( KSetRange, "CAknVolumePopup::SetRange invoked" );
- _LIT( KGetRange, "CAknVolumePopup::GetRange invoked" );
- _LIT( KValue, "CAknVlumePopup::Value invoked" );
- _LIT( KSetTitleTextL, "CAknVlumePopup::SetTitleTextL invoked" );
- _LIT( KShowProfileName, "CAknVlumePopup::ShowProfileName invoked" );
- _LIT( KShowVolumePopupL, "CAknVlumePopup::ShowVolumePopupL invoked" );
- _LIT( KCloseVolumePopup, "CAknVlumePopup::CloseVolumePopup invoked" );
-
- TUid uid = TUid::Uid( KShareVolumeUid );
- CAknVolumePopup* vol = CAknVolumePopup
- ::NewL( uid, KTitle, KVolumeMaxValue );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KNewL );
- CleanupStack::Pop( vol );
- delete vol;
- vol = NULL;
-
- vol = CAknVolumePopup
- ::ConstructFromResourceL( R_AVKON_POPUP_VOLUME_INDICATOR );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KConstructFromResource );
- CleanupStack::Pop( vol );
- delete vol;
- vol = NULL;
-
- vol = CAknVolumePopup::NewL( KVolumeMaxValue );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KNewLOverLoad );
-
- TInt val = vol->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- vol->ComponentControl( val );
- AssertTrueL( ETrue, KComponentControl );
-
- TWsEvent wsEvent;
- TPointerEvent* ptEvent = wsEvent.Pointer();
- vol->HandlePointerEventL( *ptEvent );
- AssertTrueL( ETrue, KHandlePointerEventL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
-
- vol->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- vol->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestCancel );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- vol->HandleVolumeKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KHandleVolumeKeyEventL );
-
- vol->SetRange( KVolumeMinValue, KVolumeMaxValue );
- AssertTrueL( ETrue, KSetRange );
-
- TInt maxVal, minVal;
- vol->GetRange( minVal, maxVal );
- AssertTrueL( ETrue, KGetRange );
-
- vol->Value();
- AssertTrueL( ETrue, KValue );
-
- vol->SetTitleTextL( KTitle );
- AssertTrueL( ETrue, KSetTitleTextL );
-
- vol->ShowProfileName( ETrue );
- AssertTrueL( ETrue, KShowProfileName );
-
- vol->ShowVolumePopupL();
- AssertTrueL( ETrue, KShowVolumePopupL );
-
- vol->CloseVolumePopup();
- AssertTrueL( ETrue, KCloseVolumePopup );
-
- CleanupStack::Pop( vol );//vol
- delete vol;
-
- }
-
-// ----------------------------------------------------------------------------
-// TestLafSystemFontL
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestLafSystemFontL()
- {
- _LIT( KNewL, "CLafSystemFont::NewL() invoked" );
- _LIT( KFont, "CLafSystemFont::Font() invoked" );
- _LIT( KUid, "CLafSystemFont::Uid() invoked" );
- _LIT( KDes, "CLafSystemFont::~CLafSystemFont() invoked" );
- CLafSystemFont* font = CLafSystemFont::NewL( KNullUid, NULL );
- CleanupStack::PushL( font );
- AssertNotNullL( font, KNewL );
-
- font->Font();
- AssertTrueL( ETrue, KFont );
-
- font->Uid();
- AssertTrueL( ETrue, KUid );
-
- CleanupStack::Pop( font );
- delete font;
- AssertTrueL( ETrue, KDes );
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslnapp.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-#include <eikstart.h>
-
-#include "bctestdomavkonpslnapp.h"
-#include "bctestdomavkonpslndocument.h"
-
-
-// ================= MEMBER FUNCTIONS ========================================
-
-// ---------------------------------------------------------------------------
-// TUid CBCTestDomAvkonPslnApp::AppDllUid()
-// Returns application UID.
-// ---------------------------------------------------------------------------
-//
-TUid CBCTestDomAvkonPslnApp::AppDllUid() const
- {
- return KUidBCTestDomain;
- }
-
-// ---------------------------------------------------------------------------
-// CApaDocument* CBCTestDomAvkonPslnApp::CreateDocumentL()
-// Creates CBCTestDomAvkonPslnDocument object.
-// ---------------------------------------------------------------------------
-//
-CApaDocument* CBCTestDomAvkonPslnApp::CreateDocumentL()
- {
- return CBCTestDomAvkonPslnDocument::NewL( *this );
- }
-
-// ================= OTHER EXPORTED FUNCTIONS ================================
-//
-// ---------------------------------------------------------------------------
-// CApaApplication* NewApplication()
-// Constructs CBCTestDomAvkonPslnApp.
-// Returns: CApaDocument*: created application object
-// ---------------------------------------------------------------------------
-//
-LOCAL_C CApaApplication* NewApplication()
- {
- return new CBCTestDomAvkonPslnApp;
- }
-
-GLDEF_C TInt E32Main()
- {
- return EikStart::RunApplication( NewApplication );
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslnappui.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <avkon.hrh>
-#include <aknsutils.h>
-
-#include "bctestdomavkonpslnappui.h"
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpslnview.h"
-#include "bctestutil.h"
-#include "bctestdomakncase.h"
-#include "bctestdomeikcase.h"
-#include "bctestdomfindcase.h"
-#include "bctestdomjplangcase.h"
-#include "bctestdompslncase.h"
-
-
-// ============================= MEMBER FUNCTIONS ============================
-
-// ---------------------------------------------------------------------------
-// constructor do nothing
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnAppUi::CBCTestDomAvkonPslnAppUi()
- {
- }
-
-// ---------------------------------------------------------------------------
-// symbian 2nd phase constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnAppUi::ConstructL()
- {
- BaseConstructL();
- AknsUtils::SetAvkonSkinEnabledL( ETrue );
-
- // init test util
- iTestUtil = CBCTestUtil::NewL();
-
- // init view
- CBCTestDomAvkonPslnView* view = CBCTestDomAvkonPslnView::NewL( iTestUtil );
- CleanupStack::PushL( view );
- AddViewL( view );
- CleanupStack::Pop( view );
-
- ActivateLocalViewL( view->Id() );
-
- // Add test case here.
- iTestUtil->AddTestCaseL( CBCTestDomAknCase::NewL( view->Container() ),
- _L( "domakn test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomEikCase::NewL( view->Container() ),
- _L( "domeik test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomFindCase::NewL( view->Container() ),
- _L( "domfind test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomJPLangCase::NewL( view->Container() ),
- _L( "domjplang test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomPslnCase::NewL( view->Container() ),
- _L( "dompsln test case" ) );
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnAppUi::~CBCTestDomAvkonPslnAppUi()
-// Destructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnAppUi::~CBCTestDomAvkonPslnAppUi()
- {
- delete iTestUtil;
- }
-
-// ---------------------------------------------------------------------------
-// handle menu command events
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnAppUi::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EAknSoftkeyBack:
- case EEikCmdExit:
- {
- Exit();
- return;
- }
- default:
- break;
- }
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslncontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include "bctestdomavkonpslncontainer.h"
-
-#define KAKNATLISTGRAY TRgb( 0xaaaaaa )
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer::CBCTestDomAvkonPslnContainer()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer::~CBCTestDomAvkonPslnContainer()
- {
- ResetControl();
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::ConstructL( const TRect& aRect )
- {
- CreateWindowL();
- SetRect( aRect );
- ActivateL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::Draw
-// Fills the window's rectangle.
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::Draw( const TRect& aRect ) const
- {
- CWindowGc& gc = SystemGc();
- gc.SetPenStyle( CGraphicsContext::ENullPen );
- gc.SetBrushColor( KAKNATLISTGRAY );
- gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
- gc.DrawRect( aRect );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::CountComponentControls
-// ---------------------------------------------------------------------------
-//
-TInt CBCTestDomAvkonPslnContainer::CountComponentControls() const
- {
- if ( iControl )
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::ComponentControl
-// ---------------------------------------------------------------------------
-//
-CCoeControl* CBCTestDomAvkonPslnContainer::ComponentControl( TInt ) const
- {
- return iControl;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::SetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::SetControl( CCoeControl* aControl )
- {
- iControl = aControl;
- if ( iControl )
- {
- // You can change the position and size
- iControl->SetExtent( Rect().iTl, Rect().Size() );
- iControl->ActivateL();
- DrawNow();
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::ResetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::ResetControl()
- {
- delete iControl;
- iControl = NULL;
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslndocument.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include "bctestdomavkonpslndocument.h"
-#include "bctestdomavkonpslnappui.h"
-
-
-// ================= MEMBER FUNCTIONS ========================================
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument* CBCTestDomAvkonPslnDocument::NewL( CEikApplication& )
-// Symbian OS two-phased constructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument* CBCTestDomAvkonPslnDocument::NewL(
- CEikApplication& aApp )
- {
- CBCTestDomAvkonPslnDocument* self =
- new( ELeave ) CBCTestDomAvkonPslnDocument( aApp );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument::~CBCTestDomAvkonPslnDocument()
-// Destructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument::~CBCTestDomAvkonPslnDocument()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument::CBCTestDomAvkonPslnDocument( CEikApplication& )
-// Overload constructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument::CBCTestDomAvkonPslnDocument( CEikApplication& aApp )
- : CEikDocument( aApp )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CEikAppUi* CBCTestDomAvkonPslnDocument::CreateAppUiL()
-// Constructs CBCTestDomVolumeAppUi.
-// ---------------------------------------------------------------------------
-//
-CEikAppUi* CBCTestDomAvkonPslnDocument::CreateAppUiL()
- {
- return new( ELeave ) CBCTestDomAvkonPslnAppUi;
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslnext.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,278 +0,0 @@
-/*
-* 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: class extended for test case
-*
-*/
-
-
-#include <bamdesca.h>
-#include <barsread.h>
-#include <bctestdomavkonpsln.rsg>
-#include "bctestdomavkonpslnext.h"
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransitionExt::CAknTransitionExt()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Destructor
-// ---------------------------------------------------------------------------
-//
-CAknTransitionExt::~CAknTransitionExt()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CAknTransitionExt::AknTransitionCallback
-// ---------------------------------------------------------------------------
-//
-TInt CAknTransitionExt::AknTransitionCallback( TInt,
- TInt,
- const TDesC8* )
- {
- return 0;
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransparentCameraSettingPageExt::
- CAknTransparentCameraSettingPageExt( TInt aResourceID,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray ):
- CAknTransparentCameraSettingPage
- (
- aResourceID,
- aCurrentSelectionIndex,
- aItemArray )
- {
-
- }
-
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransparentCameraSettingPageExt::
- CAknTransparentCameraSettingPageExt( const TDesC* aSettingTitleText,
- TInt aSettingNumber,
- TInt aControlType,
- TInt aEditorResourceId,
- TInt aSettingPageResourceId,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray ):
- CAknTransparentCameraSettingPage
- (
- aSettingTitleText,
- aSettingNumber,
- aControlType,
- aEditorResourceId,
- aSettingPageResourceId,
- aCurrentSelectionIndex,
- aItemArray
- )
- {
-
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAiwGenericParamConsumerExt::
- CAiwGenericParamConsumerExt( CEikApplication& aApp ):
- CAiwGenericParamConsumer( aApp )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CAiwGenericParamConsumerExt::CreateAppUiL()
-// ---------------------------------------------------------------------------
-//
-CEikAppUi* CAiwGenericParamConsumerExt::CreateAppUiL()
- {
- return NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CXnThemeManagementServiceObserverExt::HandleXnClientMessage()
-// ---------------------------------------------------------------------------
-//
-void CXnThemeManagementServiceObserverExt::HandleXnClientMessage(
- TXnServiceCompletedMessage /*aMessage*/ )
- {
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CPslnFWBaseContainerExt::CPslnFWBaseContainerExt()
- {
- iListBox = NULL;
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static constructor
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseContainerExt::ConstructL( const TRect& aRect )
- {
-
- iListBox = new( ELeave ) CEikTextListBox();
- BaseConstructL( aRect, 0, R_BCTESTDOMAVKONPSLN_LISTBOX );
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseContainerExt::ConstructListBoxL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseContainerExt::ConstructListBoxL( TInt aResLbxId )
- {
- TResourceReader rReader;
- iCoeEnv->CreateResourceReaderLC( rReader, aResLbxId );
- iListBox->ConstructFromResourceL( rReader );
- CleanupStack::PopAndDestroy(); // rReader
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Destructor
-// ---------------------------------------------------------------------------
-//
-CPslnFWBaseContainerExt::~CPslnFWBaseContainerExt()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWMSKObserverExt::CheckMiddleSoftkeyLabelL()
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWMSKObserverExt::CheckMiddleSoftkeyLabelL()
- {
- }
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::ConstructL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::ConstructL()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::NewContainerL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::NewContainerL()
- {
- if( iContainer )
- delete iContainer;
- iContainer = NULL;
- iContainer = new ( ELeave )CPslnFWBaseContainerExt;
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::HandleListBoxSelectionL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::HandleListBoxSelectionL()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::GetCaptionL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::GetCaptionL( TDes& /*aCaption*/ ) const
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::GetTabTextL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::GetTabTextL( TDes& /*aCaption*/ ) const
- {
- }
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// CGulIcon* CPslnFWBaseViewExt::CreateIconL()
-// ---------------------------------------------------------------------------
-//
-CGulIcon* CPslnFWBaseViewExt::CreateIconL()
- {
- return NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::Id()
-// ---------------------------------------------------------------------------
-//
-TUid CPslnFWBaseViewExt::Id() const
- {
- return KNullUid;
- }
-
-// ---------------------------------------------------------------------------
-// CItemFinderObserverExt::HandleParsingComplete()
-// ---------------------------------------------------------------------------
-//
-void CItemFinderObserverExt::HandleParsingComplete()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWAppThemeObserverEx::HandleMessage()
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWAppThemeObserverExt::HandleMessage( TXnServiceCompletedMessage
- /*aMessage*/ )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWAppThemeObserverEx::HandleMessage() Overload
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWAppThemeObserverExt::HandleMessage(
- const TXnServiceCompletedMessage /*aMessage*/,
- CArrayPtrFlat<CXnODT>& /*aAppThemeList*/ )
- {
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomavkonpslnview.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,137 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <aknviewappui.h>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpslnview.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestutil.h"
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView* CBCTestDomAvkonPslnView::NewL( CBCTestUtil* aUtil )
- {
- CBCTestDomAvkonPslnView* self = new( ELeave ) CBCTestDomAvkonPslnView();
- CleanupStack::PushL( self );
- self->ConstructL( aUtil );
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView::CBCTestDomAvkonPslnView()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::ConstructL( CBCTestUtil* aUtil )
- {
- BaseConstructL( R_BCTESTDOMAVKONPSLN_VIEW );
-
- iContainer = new( ELeave ) CBCTestDomAvkonPslnContainer();
- iContainer->SetMopParent( this );
- iContainer->ConstructL( ClientRect() );
- AppUi()->AddToStackL( *this, iContainer );
- iContainer->MakeVisible( ETrue );
-
- iTestUtil = aUtil;
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView::~CBCTestDomAvkonPslnView()
- {
- if ( iContainer )
- {
- AppUi()->RemoveFromStack( iContainer );
- }
- delete iContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::Id
-// ---------------------------------------------------------------------------
-//
-TUid CBCTestDomAvkonPslnView::Id() const
- {
- return KBCTestDomainViewId;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::DoActivateL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::DoActivateL( const TVwsViewId&, TUid,
- const TDesC8& )
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::DoDeactivate
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::DoDeactivate()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::Container
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer* CBCTestDomAvkonPslnView::Container()
- {
- return iContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::HandleCommandL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EProgCmdAutoTest:
- iTestUtil->RunL();
- break;
- default:
- if ( aCommand > EBCTestCmdEmptyOutline &&
- aCommand < EBCTestCmdMaxOutline )
- {
- iTestUtil->RunL( aCommand );
- }
- break;
- }
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomeikcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,267 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32const.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <fbs.h>
-#include <aknnotedialog.h>
-#include <eikalmct.h>
-#include <eikslbd.h>
-#include <eiksoftkeyimage.h>
-#include <eikimage.h>
-#include <avkon.mbg>
-#include <akniconutils.h>
-#include <eiksrvui.h>
-
-#include "bctestdomeikcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-// CONSTANTS
-
-const TInt KWidth = 25;
-const TInt KHeight = 25;
-
-_LIT( KText, "Text" );
-
-
-// ============================ MEMBER FUNCTIONS ============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-class CEikServAppUi;
-CBCTestDomEikCase* CBCTestDomEikCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomEikCase* self = new( ELeave ) CBCTestDomEikCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomEikCase::CBCTestDomEikCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomEikCase::~CBCTestDomEikCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::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));
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline2 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline2:
- TestServAppUiBaseL();
- TestAlarmControlL();
- TestSettingsListBoxDataL();
- TestEikSoftkeyImageL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestAlarmControlL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestAlarmControlL()
- {
- _LIT( KCEikAlarmControl, "CEikAlarmControl::EikAlarmControl invoked" );
- _LIT( KConstructL, "CEikAlarmControl::ConstructL invoked" );
- _LIT( KDes, "CEikAlarmControl::~EikAlarmControl invoked" );
-
- CEikAlarmControl* contrl = new ( ELeave ) CEikAlarmControl( NULL, NULL );
- CleanupStack::PushL( contrl );
- AssertNotNullL( contrl, KCEikAlarmControl );
- contrl->ConstructL();
- AssertTrueL( ETrue, KConstructL );
-
- CleanupStack::PopAndDestroy( contrl );
- AssertTrueL( ETrue, KDes );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestSettingsListBoxDataL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestSettingsListBoxDataL()
- {
-
- _LIT( KCSettingsListBoxData, "CSettingsListBoxData::NewL invoked" );
- _LIT( KDes, "CSettingsListBoxData::~CSettingsListBoxData invoked" );
- _LIT( KDraw, "CSettingsListBoxData::Draw invoked" );
-
- CSettingsListBoxData* data = CSettingsListBoxData::NewL();
- CleanupStack::PushL( data );
- AssertNotNullL( data, KCSettingsListBoxData );
-
- iContainer->ActivateGc();
- TListItemProperties proper;
- CWindowGc& gc = iContainer->SystemGc();
-
- TRect rect( 0, 0, KWidth, KHeight );
- CFormattedCellListBoxData::TColors gulcolor;
-
- data->Draw( proper, gc, &KText, rect, ETrue, gulcolor );
- AssertTrueL( ETrue, KDraw );
- iContainer->DeactivateGc();
-
- CleanupStack::PopAndDestroy( data );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestEikSoftkeyImageL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestEikSoftkeyImageL()
- {
-
- _LIT( KSetImage, "EikSoftkeyImage::SetImage() invoked" );
- _LIT( KSetLabel, "EikSoftkeyImage::SetLabel() invoked" );
-
- CEikButtonGroupContainer* container = CEikButtonGroupContainer::Current();
- EikSoftkeyImage::SetLabel( container, ETrue );
- AssertTrueL( ETrue, KSetLabel );
-
- CEikImage* image = new ( ELeave ) CEikImage;
- CleanupStack::PushL( image );
- CFbsBitmap* bmp = AknIconUtils::CreateIconL( AknIconUtils::AvkonIconFileName(),
- EMbmAvkonQgn_indi_speaker_active );
- image->SetPicture( bmp );
-
- EikSoftkeyImage::SetImage( container, *image, ETrue );
- AssertTrueL( ETrue, KSetImage );
- CleanupStack::Pop( image );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestServAppUiBaseExtL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestServAppUiBaseL()
- {
-
- _LIT( KHideApplicationFromFswL,
- "CEikServAppUi::HideApplicationFromFswL() invoked" );
- _LIT( KActivateDisplayIfNeeded,
- "CEikServAppUi::ActivateDisplayIfNeeded() invoked" );
- _LIT( KNewLC, "CEikServAppUiBase::NewLC() invoked" );
- _LIT( KBringAlertGroupWinForwards,
- "CEikServAppUiBase::BringAlertGroupWinForwards() invoked" );
- _LIT( KHandleResourceChangeL,
- "CEikServAppUiBase::HandleResourceChangeL() invoked" );
- _LIT( KHandleThreadExitL,
- "CEikServAppUiBase::HandleThreadExitL() invoked" );
- _LIT( KHandleForegroundEventL,
- "CEikServAppUiBase::HandleForegroundEventL() invoked" );
- _LIT( KSuppressAppSwitching,
- "CEikServAppUiBase::SuppressAppSwitching() invoked" );
-
- CEikServAppUiBase* ui = CEikServAppUiBase::NewLC();
- AssertTrueL( ETrue, KNewLC );
-
- CEikServAppUi* appui =
- static_cast<CEikServAppUi*>(CEikonEnv::Static()->AppUi());
- appui->ActivateDisplayIfNeeded();
- AssertTrueL( ETrue, KActivateDisplayIfNeeded );
-
- appui->HideApplicationFromFswL( 0, EFalse );
- AssertTrueL( ETrue, KHideApplicationFromFswL );
-
- appui->BringAlertGroupWinForwards( ETrue );
- appui->BringAlertGroupWinForwards( EFalse );
- AssertTrueL( ETrue, KBringAlertGroupWinForwards );
-
- RThread thread;
- appui->HandleThreadExitL( thread );
- AssertTrueL( ETrue, KHandleThreadExitL );
- appui->HandleForegroundEventL( ETrue );
- AssertTrueL( ETrue, KHandleForegroundEventL );
-
- appui->SuppressAppSwitching( ETrue );
- appui->SuppressAppSwitching( EFalse );
- AssertTrueL( ETrue, KSuppressAppSwitching );
-
- CEikAppUi* cui = appui;
- cui->HandleResourceChangeL( 0 );
- AssertTrueL( ETrue, KHandleResourceChangeL );
-
- MEikServAppUiSessionHandler* hand =
- static_cast<CEikServAppUi*>(CEikonEnv::Static()->AppUi());
- hand->CycleTasksL( EForwards );
- hand->NotifyAlarmServerOfTaskChangeL();
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomfindcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,415 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <coemain.h>
-#include <coecntrl.h>
-#include <finditemdialog.h>
-#include <finditemmenu.h>
-#include <eikmenup.h>
-#include <eikrted.h>
-#include <findutil.h>
-#include <gulbordr.h>
-#include <coeaui.h>
-#include <txtfrmat.h>
-
-#include <bctestdomavkonpsln.rsg>
-#include "bctestdomfindcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-//CONSTANT
-
-const TInt KDesLength = 32;
-_LIT( KUrlDes, "http://www.symbian.com" );
-_LIT( KNumberDes, "callback73644444");
-
-// =========================== MEMBER FUNCTIONS =============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase* CBCTestDomFindCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomFindCase* self = new( ELeave ) CBCTestDomFindCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase::CBCTestDomFindCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase::~CBCTestDomFindCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomFindCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds
- LeftCBA,
- REP( Down, 2 ),
- LeftCBA,
- LeftCBA,
- RightCBA,
- RightCBA,
- REP( KeyOK, 2 ),
- TEND
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomFindCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline3 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline3:
- TestFindItemDialogL();
- TestFindItemMenuL();
- TestFindUtilL();
- TestItemFinderL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindItemDialogL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindItemDialogL()
-{
- _LIT( KNewL, "CFindItemDialog::NewL invoked" );
- _LIT( KOfferKeyEventL, "CFindItemDialog::OfferKeyEventL invoked" );
- _LIT( KProcessCommandL, "CFindItemDialog::ProcessCommandL invoked" );
- _LIT( KExecuteLD, "CFindItemDialog::ExecuteLD invoked" );
-
- CFindItemDialog* dlg = CFindItemDialog::NewL( KUrlDes,
- CFindItemEngine::EFindItemSearchURLBin );
- CleanupStack::PushL( dlg );
- AssertNotNullL( dlg, KNewL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
- dlg->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
-
- CCoeEnv::Static()->AppUi()->AddToStackL( dlg );
- dlg->ProcessCommandL( EAknSoftkeyHide );
- AssertTrueL( ETrue, KProcessCommandL );
- CCoeEnv::Static()->AppUi()->RemoveFromStack( dlg );
-
- CleanupStack::Pop( dlg );
- dlg->ExecuteLD();
- AssertTrueL( ETrue, KExecuteLD );
-}
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindItemMenuL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindItemMenuL()
-{
- _LIT( KNewL, "CFindItemMenu::NewL invoked" );
- _LIT( KNewLC, "CFindItemMenu::NewLC invoked" );
- _LIT( KDes, "CFindItemMenu::~CFindItemMenu invoked" );
-
- CFindItemMenu* menu = CFindItemMenu::NewL( 0 );
- CleanupStack::PushL( menu );
-
- AssertNotNullL( menu, KNewL );
- CleanupStack::PopAndDestroy( menu );
- AssertTrueL( ETrue, KDes );
-
- menu = CFindItemMenu::NewLC( R_BCTESTDOMAVKONPSLN_CASE_MENU );
- AssertNotNullL( menu, KNewLC );
-
- CAknForm* frm = new (ELeave) CAknForm;
- CleanupStack::PushL( frm );
- frm->ConstructL();
-
- CEikMenuPane* pane = new ( ELeave ) CEikMenuPane( frm );
- CleanupStack::PushL( pane );
- pane->ConstructL( pane,0 );
-
- _LIT( KDisplayFindItemMenuItemL,
- "CFindItemMenu::DisplayFindItemMenuItemL invoked" );
- menu->DisplayFindItemMenuItemL( *pane, 0 );
- AssertTrueL( ETrue, KDisplayFindItemMenuItemL );
-
- _LIT( KDisplayFindItemCascadeMenuL,
- "CFindItemMenu::DisplayFindItemCascadeMenuL invoked" );
- menu->DisplayFindItemCascadeMenuL( *pane );
- AssertTrueL( ETrue, KDisplayFindItemCascadeMenuL );
-
- _LIT( KCommandIsValidL, "CFindItemMenu::CommandIsValidL invoked" );
- menu->CommandIsValidL( 0 );
- AssertTrueL( ETrue, KCommandIsValidL );
-
- _LIT( KSearchCase, "CFindItemMenu::SearchCase invoked" );
- menu->SearchCase( R_BCTESTDOMAVKONPSLN_CASE_MENU+1 );
- AssertTrueL( ETrue, KSearchCase );
-
- _LIT( KUpdateItemFinderMenuL, "CFindItemMenu::UpdateItemFinderMenuL invoked" );
- menu->UpdateItemFinderMenuL( R_BCTESTDOMAVKONPSLN_CASE_MENU, pane );
- AssertTrueL( ETrue, KUpdateItemFinderMenuL );
-
- _LIT( KHandleItemFinderCommandL,
- "CFindItemMenu::HandleItemFinderCommandL invoked" );
- menu->HandleItemFinderCommandL( 0 );
- AssertTrueL( ETrue, KHandleItemFinderCommandL );
-
- _LIT( KAttachItemFinderMenuL,
- "CFindItemMenu::HandleItemFinderCommandL invoked" );
- menu->AttachItemFinderMenuL( R_BCTESTDOMAVKONPSLN_CASE_MENU );
- AssertTrueL( ETrue, KAttachItemFinderMenuL );
-
- _LIT( KSetCallbackNumber,
- "CFindItemMenu::SetCallbackNumber invoked" );
-
- menu->SetCallbackNumber( KNumberDes );
- AssertTrueL( ETrue, KSetCallbackNumber );
-
- _LIT( KHandleCallL,
- "CFindItemMenu::HandleCallL invoked" );
- menu->HandleCallL( KUrlDes );
- AssertTrueL( ETrue, KHandleCallL );
-
- _LIT( KHandleVoIPCallL,
- "CFindItemMenu::HandleCallL invoked" );
- menu->HandleVoIPCallL( KUrlDes );
- AssertTrueL( ETrue, KHandleVoIPCallL );
-
- _LIT( KSetSenderHighlightStatus,
- "CFindItemMenu::SetSenderHighlightStatus invoked" );
- menu->SetSenderHighlightStatus( ETrue );
- AssertTrueL( ETrue, KSetSenderHighlightStatus );
-
- _LIT( KSetSenderDisplayText,
- "CFindItemMenu::SetSenderDisplayText invoked" );
- menu->SetSenderDisplayText( KNumberDes );
- AssertTrueL( ETrue, KSetSenderDisplayText );
-
- _LIT( KAddItemFindMenuL,
- "CFindItemMenu::AddItemFindMenuL() invoked" );
-
- CItemFinder* finder = CItemFinder::NewL();
- CleanupStack::PushL( finder );
- menu->AddItemFindMenuL( finder, pane, 0, KNumberDes );
- AssertTrueL( ETrue, KAddItemFindMenuL );
-
- _LIT( KSetSenderDescriptorType,
- "CFindItemMenu::SetSenderDescriptorType() invoked" );
-
- menu->SetSenderDescriptorType( CItemFinder::EUrlAddress );
- AssertTrueL( ETrue, KSetSenderDescriptorType );
-
- CleanupStack::PopAndDestroy( finder );
- CleanupStack::PopAndDestroy( pane );
- CleanupStack::PopAndDestroy( frm );
- CleanupStack::PopAndDestroy( menu );
-}
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindUtilL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindUtilL()
- {
- _LIT( KNewL, "CFindUtil::NewL() invoked" );
- _LIT( KDes, "CFindUtil::~CFindUtil() invoked" );
- CFindUtil* util = CFindUtil::NewL();
- CleanupStack::PushL( util );
- AssertNotNullL( util, KNewL );
-
- CleanupStack::Pop( util );
- delete util;
- AssertTrueL( ETrue, KDes );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestItemFinderL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestItemFinderL()
- {
-
- _LIT( KNewL, "CItemFinder::NewL() invoked" );
- _LIT( KNextItemOrScrollL, "CItemFinder::NextItemOrScrollL() invoked" );
- _LIT( KSetFindModeL, "CItemFinder::SetFindModeL() invoked" );
- _LIT( KSetEditor, "CItemFinder::SetEditor() invoked" );
- _LIT( KParseThisText, "CItemFinder::ParseThisText() invoked" );
- _LIT( KCreateDoItText, "CItemFinder::CreateDoItText() invoked" );
- _LIT( KActivateThisTextL, "CItemFinder::ActivateThisTextL() invoked" );
- _LIT( KReformatOnRecognise, "CItemFinder::ReformatOnRecognise() invoked" );
- _LIT( KReformatOnRollover, "CItemFinder::ReformatOnRollover() invoked" );
- _LIT( KGetRecogniseFormat, "CItemFinder::GetRecogniseFormat() invoked" );
- _LIT( KGetRolloverFormat, "CItemFinder::GetRolloverFormat() invoked" );
- _LIT( KConfirmCursorOverTag, "CItemFinder::ConfirmCursorOverTag() invoked" );
- _LIT( KMParser_Reserved_2, "CItemFinder::MParser_Reserved_2() invoked" );
- _LIT( KPositionOfNextItem, "CItemFinder::PositionOfNextItem() invoked" );
- _LIT( KResetCurrentItem, "CItemFinder::ResetCurrentItem() invoked" );
- _LIT( KResolveAndSetItemTypeL, "CItemFinder::ResolveAndSetItemTypeL() invoked" );
- _LIT( KAddObserver, "CItemFinder::AddObserver() invoked" );
- _LIT( KItemWasTappedL, "CItemFinder::ItemWasTappedL() invoked" );
- _LIT( KSetExternalLinks, "CItemFinder::SetExternalLinks() invoked" );
- _LIT( KDes, "CItemFinder::~CItemFinder() invoked" );
- _LIT( KRelease, "CItemFinder::Release() invoked" );
- _LIT( KCurrentSelection, "CItemFinder::CurrentSelection() invoked" );
- _LIT( KCurrentItemExt, "CItemFinder::CurrentItemExt() invoked" );
-
-
- CItemFinder* finder = CItemFinder::NewL();
- CleanupStack::PushL( finder );
- AssertNotNullL( finder, KNewL );
-
- finder->NextItemOrScrollL( CItemFinder::EInit );
- AssertTrueL( ETrue, KNextItemOrScrollL );
-
- finder->SetFindModeL( 0 );
- AssertTrueL( ETrue, KSetFindModeL );
-
- TGulBorder gulBorder;
- CEikRichTextEditor* editor = new ( ELeave ) CEikRichTextEditor ( gulBorder );
- CleanupStack::PushL( editor );
- editor->ConstructL( iContainer, 0, 0, 0 );
-
- finder->SetEditor( &editor );
- AssertTrueL( ETrue, KSetEditor );
-
- TInt tag(0), len(0);
- CRichText* richText = editor->RichText();
- finder->ParseThisText( *richText, ETrue, 1, 1, tag, len ) ;
- AssertTrueL( ETrue, KParseThisText );
-
- finder->CreateDoItText( *richText, 1, 1 );
- AssertTrueL( ETrue, KCreateDoItText );
-
- finder->ActivateThisTextL( *richText, 1, 1 );
- AssertTrueL( ETrue, KActivateThisTextL );
-
- finder->ReformatOnRecognise();
- AssertTrueL( ETrue, KReformatOnRecognise );
-
- finder->ReformatOnRollover();
- AssertTrueL( ETrue, KReformatOnRollover );
-
- TCharFormat format;
- finder->GetRecogniseFormat( format );
- AssertTrueL( ETrue, KGetRecogniseFormat );
-
- finder->GetRolloverFormat( format );
- AssertTrueL( ETrue, KGetRolloverFormat );
-
- finder->ConfirmCursorOverTag( *richText, 1, 1, 1 );
- AssertTrueL( ETrue, KConfirmCursorOverTag );
-
- finder->MParser_Reserved_2();
- AssertTrueL( ETrue, KMParser_Reserved_2 );
-
- finder->PositionOfNextItem( CItemFinder::EInit );
- AssertTrueL( ETrue, KPositionOfNextItem );
-
- finder->ResetCurrentItem();
- AssertTrueL( ETrue, KResetCurrentItem );
-
- finder->ResolveAndSetItemTypeL();
- AssertTrueL( ETrue, KResolveAndSetItemTypeL );
-
- CItemFinderObserverExt* observer = new ( ELeave ) CItemFinderObserverExt;
- CleanupStack::PushL( observer );
-
- finder->AddObserver( *observer );
- AssertTrueL( ETrue, KAddObserver );
-
- TPoint point( 0, 0 );
- finder->ItemWasTappedL( point );
- AssertTrueL( ETrue, KItemWasTappedL );
-
- TBuf<KDesLength> des( KUrlDes );
- CItemFinder::CFindItemExt* findex = new ( ELeave ) CItemFinder::CFindItemExt;
- CleanupStack::PushL( findex );
-
- findex->iItemType = CItemFinder::EUrlAddress;
- findex->iItemDescriptor = des.AllocL();
- CArrayPtrFlat<CItemFinder::CFindItemExt>* links =
- new ( ELeave ) CArrayPtrFlat<CItemFinder::CFindItemExt>( 1 );
- CleanupStack::PushL( links );
- links->AppendL( findex );
-
- finder->SetExternalLinks( links );
- AssertTrueL( ETrue, KSetExternalLinks );
-
- finder->CurrentItemExt();
- AssertTrueL( ETrue, KCurrentItemExt );
-
- finder->CurrentSelection();
- AssertTrueL( ETrue, KCurrentSelection );
-
- finder->Release();
- AssertTrueL( ETrue, KRelease );
-
- CleanupStack::PopAndDestroy( links );
- CleanupStack::PopAndDestroy( findex );
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::PopAndDestroy( editor );
- CleanupStack::PopAndDestroy( finder );
-
- AssertTrueL( ETrue, KDes );
- }
- //end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdomjplangcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,318 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <coecntrl.h>
-#include <jplangutil.h>
-#include <numbergrouping.h>
-#include <genericparamconsumer.h>
-#include <aiwgenericparam.h>
-
-
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomjplangcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-//CONSTANTS
-
-const TInt KDesLength = 24;
-_LIT( KText, "Text" );
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase* CBCTestDomJPLangCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomJPLangCase* self = new( ELeave ) CBCTestDomJPLangCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase::CBCTestDomJPLangCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase::~CBCTestDomJPLangCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- DELAY(1), // delay between commands is 1*0.1 seconds = 0.1 seconds
- LeftCBA,
- REP( Down, 3 ),
- KeyOK,
- TEND
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline4 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline4:
- TestJPLangUtilL();
- TestNumberGroupL();
- TestGenericParamConsumerL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestLayoutDecorator
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestJPLangUtilL()
- {
- // Test some API here
-
- _LIT( KConvertHalfToFullWidth,
- "JPLangUtil::ConvertHalfToFullWidth() invoked" );
- _LIT( KConvertFullToHalfWidth,
- "JPLangUtil::ConvertFullToHalfWidth() invoked" );
- _LIT( KConvertHalfToFullWidthKatakana,
- "JPLangUtil::ConvertHalfToFullWidthKatakana() invoked" );
- _LIT( KConvertFullHiragnaToFullKatakana,
- "JPLangUtil::ConvertFullHiragnaToFullKatakana() invoked" );
- _LIT( KIsKatakana, "JPLangUtil::IsKatakana() invoked" );
- _LIT( KIsHiragana, "JPLangUtil::IsHiragana() invoked" );
- _LIT( KIsKanji, "JPLangUtil::IsKanji() invoked" );
- _LIT( KIsHalfWidth, "JPLangUtil::IsKanji() invoked" );
- _LIT( KIsFullWidth, "JPLangUtil::IsFullWidth() invoked" );
-
- TBuf<KDesLength> unisrc( KText );
- TBuf<KDesLength> unides;
- JPLangUtil::ConvertHalfToFullWidth( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidth );
-
- JPLangUtil::ConvertFullToHalfWidth( unisrc, unides );
- AssertTrueL( ETrue, KConvertFullToHalfWidth );
-
- JPLangUtil::ConvertHalfToFullWidthKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidthKatakana );
-
- JPLangUtil::ConvertFullToHalfWidthKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidthKatakana );
-
- JPLangUtil::ConvertFullHiragnaToFullKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertFullHiragnaToFullKatakana );
-
- JPLangUtil::IsKatakana( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsKatakana );
-
- JPLangUtil::IsHiragana( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsHiragana );
-
- JPLangUtil::IsKanji( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsKanji );
-
- JPLangUtil::IsHalfWidth( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsHalfWidth );
-
- JPLangUtil::IsFullWidth( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsFullWidth );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestNumberGroupL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestNumberGroupL()
- {
-
- _LIT( KNewL, "CPNGNumberGrouping::NewL() invoked" );
- _LIT( KDes, "CPNGNumberGrouping::~CPNGNumberGrouping() invokde" );
- _LIT( KNewLC, "CPNGNumberGrouping::NewLC() invoked" );
- _LIT( KInsert, "CPNGNumberGrouping::Insert() invoked" );
- _LIT( KDelete, "CPNGNumberGrouping::Delete() invoked" );
- _LIT( KAppend, "CPNGNumberGrouping::Append() invoked" );
- _LIT( KSet, "CPNGNumberGrouping::Set() invoked" );
- _LIT( KUnFormattedLength,
- "CPNGNumberGrouping::UnFormattedLength() invoked" );
- _LIT( KMaxDisplayLength,
- "CPNGNumberGrouping::MaxDisplayLength() invoked" );
- _LIT( KIsSpace, "CPNGNumberGrouping::IsSpace() invoked" );
-
- _LIT( KFormattedNumber,
- "CPNGNumberGrouping::FormattedNumber() invoked" );
- _LIT( KFormattedNumberOverLoad,
- "CPNGNumberGrouping::FormattedNumber() overload invoked" );
- _LIT( KReverseFormattedNumber,
- "CPNGNumberGrouping::ReverseFormattedNumber() invoked" );
- _LIT( KReverseFormattedNumberOverLoad,
- "CPNGNumberGrouping::ReverseFormattedNumber() overload invoked" );
- _LIT( KSelection,
- "CPNGNumberGrouping::Selection() invoked" );
- _LIT( KUnFormattedNumber,
- "CPNGNumberGrouping::UnFormattedNumber() invoked" );
- _LIT( KIsCharacterInsertedByNumberGrouping,
- "CPNGNumberGrouping::IsCharacterInsertedByNumberGrouping() invoked" );
- _LIT( KIsChangedByGrouping,
- "CPNGNumberGrouping::IsChangedByGrouping() overload invoked" );
-
- CPNGNumberGrouping* group = CPNGNumberGrouping::NewL();
- CleanupStack::PushL( group );
- AssertNotNullL( group, KNewL );
-
- CleanupStack::Pop( group );
- delete group;
- group = NULL;
- AssertTrueL( ETrue, KDes );
-
- group = CPNGNumberGrouping::NewLC();
- AssertNotNullL( group, KNewLC );
-
- const TInt index = 0;
- TText chr( 'a' );
- TBuf<KDesLength> numstr( KText );
-
- group->Insert( index, chr );
- AssertTrueL( ETrue, KInsert );
-
- group->Delete( index );
- AssertTrueL( ETrue, KDelete );
-
- group->Append( chr );
- AssertTrueL( ETrue, KAppend );
-
- group->Set( numstr );
- AssertTrueL( ETrue, KSet );
-
- group->UnFormattedLength();
- AssertTrueL( ETrue, KUnFormattedLength );
-
- group->MaxDisplayLength();
- AssertTrueL( ETrue, KMaxDisplayLength );
-
- group->IsSpace( index );
- AssertTrueL( ETrue, KIsSpace );
-
- group->FormattedNumber( index, index );
- AssertTrueL( ETrue, KFormattedNumber );
-
- group->FormattedNumber();
- AssertTrueL( ETrue, KFormattedNumberOverLoad );
-
- group->ReverseFormattedNumber( index, index );
- AssertTrueL( ETrue, KReverseFormattedNumber );
-
- group->ReverseFormattedNumber();
- AssertTrueL( ETrue, KReverseFormattedNumberOverLoad );
-
- group->Selection( index, index );
- AssertTrueL( ETrue, KIsSpace );
-
- group->UnFormattedNumber( index, index );
- AssertTrueL( ETrue, KSelection );
-
- group->UnFormattedNumber();
- AssertTrueL( ETrue, KUnFormattedNumber );
-
- group->IsCharacterInsertedByNumberGrouping( index );
- AssertTrueL( ETrue, KIsCharacterInsertedByNumberGrouping );
-
- group->IsChangedByGrouping();
- AssertTrueL( ETrue, KIsChangedByGrouping );
-
- CleanupStack::PopAndDestroy( group );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestGenericParamConsumerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestGenericParamConsumerL()
- {
-
- _LIT( KAiwGenericParamConsumer,
- "CAiwGenericParamConsumer::CAiwGenericParamConsumer() invoked" );
- _LIT( KDes,
- "CAiwGenericParamConsumer::~CAiwGenericParamConsumer() invoked" );
- _LIT( KRestoreL,
- "CAiwGenericParamConsumer::RestoreL() invoked" );
-
- CEikAppUi* appui = static_cast<CEikAppUi*>( CCoeEnv::Static()->AppUi() );
- CAiwGenericParamConsumerExt* consumer =
- new ( ELeave ) CAiwGenericParamConsumerExt( *appui->Application() );
- CleanupStack::PushL( consumer );
- AssertNotNullL( consumer, KAiwGenericParamConsumer );
-
- CAiwGenericParamList* list = CAiwGenericParamList::NewL();
- CleanupStack::PushL( list );
- TRAP_IGNORE( consumer->SetOutputParamsL( list ) );
-
- CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document();
- CStreamStore* strm = doc->EditStore();
- CStreamDictionary* dict = CStreamDictionary::NewLC();
- TRAP_IGNORE( consumer->RestoreL( *strm, *dict ) );
- AssertTrueL( ETrue, KRestoreL );
-
- CleanupStack::PopAndDestroy( dict );
- CleanupStack::PopAndDestroy( list );
- CleanupStack::PopAndDestroy( consumer );
- AssertTrueL( ETrue, KDes );
- }
- //end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomavkonpsln/src/bctestdompslncase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,473 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32base.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <pslnfwiconhelper.h>
-#include <pslnfwpluginhandler.h>
-#include <coneresloader.h>
-#include <aknappui.h>
-#include <eikspane.h>
-#include <aknnavide.h>
-#include <pslnfwappthemehandler.h>
-#include <xnodt.h>
-#include <xnthememanagement.h>
-#include <aknform.h>
-#include <sortutil.h>
-
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdompslncase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-// CONSTANTS
-
-const TInt KPluginUid = 0x101F84AF;
-
-_LIT( KFilePath, "z:\\resource\\psln.rsc" );
-_LIT( KFileName, "psln.rsc" );
-_LIT( KFileDir, "z:\\resource\\" );
-_LIT8( KMessage, "1");
-
-// =========================== MEMBER FUNCTIONS =============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase* CBCTestDomPslnCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomPslnCase* self = new( ELeave ) CBCTestDomPslnCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase::CBCTestDomPslnCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase::~CBCTestDomPslnCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- DELAY(1),
- LeftCBA,
- REP( Down, 4 ),
- KeyOK,
- TEND
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline5 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline5:
- TestPslnFWBaseContainerL();
- TestPslnFWBaseViewL();
- TestFWIconHelperL();
- TestFWPluginHandlerL();
- TestPslnFWAppThemeHandlerL();
- break;
- default:
- break;
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestPslnFWBaseContainerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWBaseContainerL()
- {
-
- _LIT( KCPslnFWBaseContainer,
- "CPslnFWBaseContainer::CPslnFWBaseContainer() invoked" );
- _LIT( KDes,
- "CPslnFWBaseContainer::~CPslnFWBaseContainer() invoked" );
- _LIT( KConstructL,
- "CPslnFWBaseContainer::ConstructL() invoked" );
- _LIT( KSetMiddleSoftkeyObserver,
- "CPslnFWBaseContainer::SetMiddleSoftkeyObserver() invoked" );
- _LIT( KHandleResourceChange,
- "CPslnFWBaseContainer::HandleResourceChange() invoked" );
- _LIT( KCountComponentControls,
- "CPslnFWBaseContainer::CountComponentControls() invoked" );
- _LIT( KComponentControl,
- "CPslnFWBaseContainer::ComponentControl() invoked" );
- _LIT( KOfferKeyEventL,
- "CPslnFWBaseContainer::OfferKeyEventL() invoked" );
-
- TRect rect( 0, 0, 0, 0 );
- CPslnFWBaseContainer* container = new ( ELeave ) CPslnFWBaseContainerExt;
- CleanupStack::PushL( container );
- AssertTrueL( ETrue, KCPslnFWBaseContainer );
-
- CMPslnFWMSKObserverExt* observer = new ( ELeave ) CMPslnFWMSKObserverExt;
- CleanupStack::PushL( observer );
-
- container->ConstructL( rect );
- AssertTrueL( ETrue, KConstructL );
-
- container->SetMiddleSoftkeyObserver( observer );
- AssertTrueL( ETrue, KSetMiddleSoftkeyObserver );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
- CCoeControl* ctrl = container;
-
- ctrl->HandleResourceChange( 0 );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- ctrl->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- ctrl->ComponentControl( 0 );
- AssertTrueL( ETrue, KComponentControl );
-
- ctrl->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- AssertTrueL( ETrue, KDes );
-
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::Pop( container );
- delete container;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestPslnFWBaseView()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWBaseViewL()
- {
-
- _LIT( KCPslnFWBaseView, "CPslnFWBaseView::CPslnFWBaseView() invoked" );
- _LIT( KConstructL, "CPslnFWBaseView::ConstructL() invoked" );
- _LIT( KSetCurrentItem, "CPslnFWBaseView::SetCurrentItem() invoked" );
- _LIT( KSetNaviPaneL, "CPslnFWBaseView::SetNaviPaneL() invoked" );
- _LIT( KContainer, "CPslnFWBaseView::Container() invoked" );
- _LIT( KOpenLocalizedResourceFileL,
- "CPslnFWBaseView::OpenLocalizedResourceFileL() invoked" );
- _LIT( KOpenLocalizedResourceFileLOverload,
- "CPslnFWBaseView::OpenLocalizedResourceFileL() Overload invoked" );
- _LIT( KSetNaviPaneDecorator,
- "CPslnFWBaseView::SetNaviPaneDecorator() invoked" );
- _LIT( KDoDeactivate, "CPslnFWBaseView::DoDeactivate() invoked" );
- _LIT( KSetTabIndex, "CPslnFWBaseView::SetTabIndex() invoked" );
- _LIT( KGetTabIndex, "CPslnFWBaseView::GetTabIndex() invoked" );
- _LIT( KCreateNaviPaneContextL,
- "CPslnFWBaseView::CreateNaviPaneContextL() invoked" );
- _LIT( KCreateContainerL, "CPslnFWBaseView::CreateContainerL() invoked" );
- _LIT( KDoActivateL, "CPslnFWBaseView::DoActivateL() invoked" );
- _LIT( KSetNaviPaneLOverload,
- "CPslnFWBaseView::SetNaviPaneL() overload invoked" );
- _LIT( KNewContainerL, "CPslnFWBaseView::NewContainerL() invoked" );
- _LIT( KHandleListBoxEventL,
- "CPslnFWBaseView::HandleListBoxEventL() overload invoked" );
- _LIT( KSetMiddleSoftKeyLabelL,
- "CPslnFWBaseView::SetMiddleSoftKeyLabelL() overload invoked" );
- _LIT( KHandleCommandL, "CPslnFWBaseView::HandleCommandL() invoked" );
- _LIT( KSetTitlePaneL, "CPslnFWBaseView::SetTitlePaneL() invoked" );
- _LIT( KDes, "CPslnFWBaseView::~CPslnFWBaseView() invoked" );
-
-
- CPslnFWBaseViewExt* view = new ( ELeave ) CPslnFWBaseViewExt();
- CleanupStack::PushL( view );
-
- AssertNotNullL( view, KCPslnFWBaseView );
-
- view->ConstructL();
- AssertTrueL( ETrue, KConstructL );
- view->SetCurrentItem( 0 );
- AssertTrueL( ETrue, KSetCurrentItem );
-
- view->SetNaviPaneL();
- AssertTrueL( ETrue, KSetNaviPaneL );
-
- view->Container();
- AssertTrueL( ETrue, KContainer );
-
- RConeResourceLoader loader( *CCoeEnv::Static() );
- TRAPD( res, view->OpenLocalizedResourceFileL( KFilePath, loader ) );
- AssertTrueL( ETrue, KOpenLocalizedResourceFileL );
-
- TRAP( res, view->OpenLocalizedResourceFileL( KFileName, loader, &KFileDir ) );
- AssertTrueL( ETrue, KOpenLocalizedResourceFileLOverload );
-
- CAknAppUi* appui = static_cast<CAknAppUi*>( CCoeEnv::Static()->AppUi() );
- CEikStatusPane* pane = appui->StatusPane ();
- CAknNavigationControlContainer* container =
- static_cast<CAknNavigationControlContainer*>(
- pane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
-
- CAknForm* frm = new( ELeave ) CAknForm();
- CleanupStack::PushL( frm );
- frm->ConstructL();
- CleanupStack::Pop( frm );
-
- CAknNavigationDecorator* decorate =
- CAknNavigationDecorator::NewL( container, frm );
- CleanupStack::PushL( decorate );
-
- view->SetNaviPaneDecorator( decorate );
- AssertTrueL( ETrue, KSetNaviPaneDecorator );
-
- view->DoDeactivate();
- AssertTrueL( ETrue, KDoDeactivate );
-
- view->SetTabIndex( 0 );
- AssertTrueL( ETrue, KSetTabIndex );
-
- view->GetTabIndex();
- AssertTrueL( ETrue, KGetTabIndex );
-
- view->CreateNaviPaneContextL( 0 );
- AssertTrueL( ETrue, KCreateNaviPaneContextL );
-
- view->CreateContainerL();
- AssertTrueL( ETrue, KCreateContainerL );
-
- view->NewContainerL();
- AssertTrueL( ETrue, KNewContainerL );
-
- TVwsViewId viewid;
- view->DoActivateL( viewid, KNullUid, KMessage );
- AssertTrueL( ETrue, KDoActivateL );
-
- view->SetNaviPaneL( 0 );
- AssertTrueL( ETrue, KSetNaviPaneLOverload );
-
- view->HandleListBoxEventL( NULL,
- MEikListBoxObserver::EEventEnterKeyPressed );
- AssertTrueL( ETrue, KHandleListBoxEventL );
-
- view->SetMiddleSoftKeyLabelL( R_BCTEST_AVKONPSLN_LABEL, 0 );
- AssertTrueL( ETrue, KSetMiddleSoftKeyLabelL );
-
- view->HandleCommandL( 0 );
- AssertTrueL( ETrue, KHandleCommandL );
-
- view->SetTitlePaneL( res );
- AssertTrueL( ETrue, KSetTitlePaneL );
-
- CleanupStack::Pop( decorate );
- CleanupStack::PopAndDestroy( view );
- AssertTrueL( ETrue, KDes );
-
- delete decorate;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestPslnFWBaseView()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestFWIconHelperL()
- {
- _LIT( KNewL, "CPslnFWIconHelper::NewL() invoked ");
- _LIT( KAddIconsToSettingItemsL,
- "CPslnFWIconHelper::AddIconsToSettingItemsL() invoked ");
- _LIT( KGetLocalizedStringLC,
- "CPslnFWIconHelper::GetLocalizedStringLC() invoked ");
- _LIT( KDestruct, "CPslnFWIconHelper::~CPslnFWIconHelper() invoked ");
-
- CPslnFWIconHelper* helper = CPslnFWIconHelper::NewL();
- CleanupStack::PushL( helper );
- AssertNotNullL( helper, KNewL );
-
- CEikColumnListBox* textList = new( ELeave ) CEikColumnListBox();
- CleanupStack::PushL( textList );
-
- textList->ConstructL( iContainer );
-
- helper->AddIconsToSettingItemsL( ETrue, 0, textList );
- AssertTrueL( ETrue, KAddIconsToSettingItemsL );
-
- TRAP_IGNORE( helper->GetLocalizedStringLC( KFilePath, 0, CCoeEnv::Static() ) );
- AssertTrueL( ETrue, KGetLocalizedStringLC );
- CleanupStack::Pop( textList );
- delete textList;
-
- CleanupStack::Pop( helper );
- delete helper;
- AssertTrueL( ETrue, KDestruct );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestFWPluginHandlerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestFWPluginHandlerL()
- {
-
- _LIT( KNewL, "CPslnFWPluginHandler::NewL() invoked" );
- _LIT( KNewLOverload, "CPslnFWPluginHandler::NewL() overload invoked" );
- _LIT( KLoadPluginL, "CPslnFWPluginHandler::LoadPluginL() invoked" );
- _LIT( KLoadPluginLOverLoad,
- "CPslnFWPluginHandler::LoadPluginL() overload invoked" );
- _LIT( KDes, "CPslnFWPluginHandler::~CPslnFWPluginHandler() invoked" );
-
- CArrayPtrFlat<CPslnFWPluginInterface>* array =
- new ( ELeave ) CArrayPtrFlat<CPslnFWPluginInterface>( 1 );
- CleanupStack::PushL( array );
-
- CAknViewAppUi* appui = static_cast<CAknViewAppUi*>
- ( CEikonEnv::Static()->AppUi() );
-
- CPslnFWPluginHandler* handle =
- CPslnFWPluginHandler::NewL( appui, array );
- CleanupStack::PushL( handle );
- AssertNotNullL( handle, KNewL );
-
- CleanupStack::Pop( handle );
- CleanupStack::Pop( array );
-
- delete handle;
- AssertTrueL( ETrue, KDes );
- handle = NULL;
-
- array->Reset();
- delete array;
-
- handle = CPslnFWPluginHandler::NewL( appui );
- CleanupStack::PushL( handle );
- AssertNotNullL( handle, KNewLOverload );
-
- CPslnFWPluginInterface* inf = handle->LoadPluginL( TUid::Uid( KPluginUid ) );
- AssertTrueL( ETrue, KLoadPluginL );
-
- delete inf;
-
- TRAP_IGNORE( handle->LoadPluginsL( array ) );
- AssertTrueL( ETrue, KLoadPluginLOverLoad );
-
- CleanupStack::Pop( handle );
- delete handle;
- handle = NULL;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestPslnFWAppThemeHandlerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWAppThemeHandlerL()
- {
- //Added "CSortUtil::NewL()".
- CSortUtil* sortUtil = CSortUtil::NewL();
- CleanupStack::PushL( sortUtil );
- _LIT( KCSortUtil, "CSortUtil::NewL" );
- AssertTrueL( ETrue, KCSortUtil );
- CleanupStack::PopAndDestroy( sortUtil );
-
- _LIT( KCPslnFWAppThemeHandler, "CPslnFWAppThemeHandler::NewL() invoked" );
- _LIT( KSetApplicationSkinL,
- "CPslnFWAppThemeHandler::SetApplicationSkinL() invoked" );
- _LIT( KGetApplicationSkinsL,
- "CPslnFWAppThemeHandler::GetApplicationSkinsL() invoked" );
- _LIT( KCancelGetApplicationSkins,
- "CPslnFWAppThemeHandler::CancelGetApplicationSkins() invoked" );
- _LIT( KSetApplicationSkinAndExitL,
- "CPslnFWAppThemeHandler::SetApplicationSkinAndExitL() invoked" );
- _LIT( KDes, "CPslnFWAppThemeHandler::~CPslnFWAppThemeHandler() invoked" );
-
- CXnODT* odt = CXnODT::NewL();
- CleanupStack::PushL( odt );
- CArrayPtrFlat<CXnODT>* array =
- new ( ELeave ) CArrayPtrFlat<CXnODT>( 1 );
- CleanupStack::PushL( array );
-
- array->AppendL( odt, 0 );
- CMPslnFWAppThemeObserverExt* observer = new ( ELeave )
- CMPslnFWAppThemeObserverExt;
- CleanupStack::PushL( observer );
-
- CPslnFWAppThemeHandler* handler =
- CPslnFWAppThemeHandler::NewL( *observer, *array );
- CleanupStack::PushL( handler );
- AssertNotNullL( handler, KCPslnFWAppThemeHandler );
-
- TXnServiceCompletedMessage msg =
- handler->GetApplicationSkinsL( TUid::Uid( KPluginUid ) );
- AssertTrueL( ETrue, KGetApplicationSkinsL );
-
- handler->SetApplicationSkinL( *odt );
- AssertTrueL( ETrue, KSetApplicationSkinL );
-
- handler->CancelGetApplicationSkins();
- AssertTrueL( ETrue, KCancelGetApplicationSkins );
-
- handler->SetApplicationSkinAndExitL( *odt );
- AssertTrueL( ETrue, KSetApplicationSkinAndExitL );
-
- CleanupStack::PopAndDestroy( handler );
- AssertTrueL( ETrue, KDes );
- array->Reset();
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::PopAndDestroy( array );
- CleanupStack::PopAndDestroy( odt );
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/group/bctestdomcoreui.mmp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/group/bctestdomcoreui.mmp Mon May 03 12:45:33 2010 +0300
@@ -60,12 +60,9 @@
LIBRARY bctestutil.lib
LIBRARY efsrv.lib
LIBRARY menuinterface.lib
-LIBRARY voiceuinamedialer.lib
-LIBRARY pbkeng.lib
LIBRARY eikdlg.lib
LIBRARY eikctl.lib
LIBRARY eikcdlg.lib
-LIBRARY voiceuirecognition.lib
START RESOURCE ../group/bctestdomcoreui_reg.rss
DEPENDS bctestdomcoreui.rsg
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/inc/bctestdomcoreuicase.h Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/inc/bctestdomcoreuicase.h Mon May 03 12:45:33 2010 +0300
@@ -79,36 +79,6 @@
void TestMenuSATInterfaceL();
/**
- * Test TestAddVoiceTagDialogL
- */
- void TestAddVoiceTagDialogL();
-
- /**
- * Test TestChangeVoiceTagDialogL
- */
- void TestChangeVoiceTagDialogL();
-
- /**
- * Test TestEraseVoiceTagDialogL
- */
- void TestEraseVoiceTagDialogL();
-
- /**
- * Test TestVoiceDialerL
- */
- void TestVoiceDialerL();
-
- /**
- * Test TestVoiceTagContactL
- */
- void TestVoiceTagContactL();
-
- /**
- * Test TestVoiceTagFieldL
- */
- void TestVoiceTagFieldL();
-
- /**
* Test TestVoiceRecogL
*/
void TestVoiceRecogL();
@@ -117,8 +87,6 @@
* Test TestVoiceRecognitionDialogL
*/
void TestVoiceRecognitionDialogL();
-
- void TestPlaybackVoiceTagDialogL();
private: // constructor
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/src/bctestdomcoreuicase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomcoreui/src/bctestdomcoreuicase.cpp Mon May 03 12:45:33 2010 +0300
@@ -18,15 +18,7 @@
#include <w32std.h>
#include <coecntrl.h>
-#include <vuicaddvoicetagdialog.h>
-#include <vuicchangevoicetagdialog.h>
-#include <vuicerasevoicetagdialog.h>
-#include <vuicplaybackvoicetagdialog.h>
-#include <vuicvoicedialer.h>
-#include <vuicvoicetagcontact.h>
-#include <vuicvoicetagfield.h>
-#include <vuicvoicerecog.h>
-#include <vuicvoicerecogdialog.h>
+
#include <bctestdomcoreui.rsg>
#include "bctestdomcoreuicase.h"
@@ -152,13 +144,9 @@
void CBCTestDomCoreUiCase::TestFunctionL()
{
TestMenuSATInterfaceL();
- TestAddVoiceTagDialogL();
- TestChangeVoiceTagDialogL();
- TestEraseVoiceTagDialogL();
- TestVoiceDialerL();
- TestVoiceTagContactL();
- TestVoiceTagFieldL();
TestVoiceRecogL();
+ TestVoiceRecognitionDialogL();
+
}
// ---------------------------------------------------------------------------
@@ -185,210 +173,6 @@
CleanupStack::PopAndDestroy( menuSI );
}
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestAddVoiceTagDialogL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestAddVoiceTagDialogL()
- {
- CPbkContactEngine* pbk = CPbkContactEngine::NewL();
- CleanupStack::PushL( pbk );//push
- CPbkContactItem* contactItem = pbk->CreateEmptyContactL();
- CleanupStack::PushL( contactItem );//push
-
- CAddVoiceTagDialog* addDial = new( ELeave ) CAddVoiceTagDialog( *contactItem, 1 );
- CleanupStack::PushL( addDial );//push
- _LIT( msiLogAddVoiceTagDialog, "CAddVoiceTagDialog::CAddVoiceTagDialog()" );
- AssertNotNullL( addDial, msiLogAddVoiceTagDialog );
-
- addDial->ExecuteLD();
- _LIT( msiLogExecuteLD, "CAddVoiceTagDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
-
- CleanupStack::PopAndDestroy( addDial );
- CleanupStack::PopAndDestroy( contactItem );
- CleanupStack::PopAndDestroy( pbk );
- _LIT( msiLogDesc, "CAddVoiceTagDialog::~CAddVoiceTagDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestChangeVoiceTagDialogL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestChangeVoiceTagDialogL()
- {
- CPbkContactEngine* pbk = CPbkContactEngine::NewL();
- CleanupStack::PushL( pbk ); //push
- CPbkContactItem* contactItem = pbk->CreateEmptyContactL();
- CleanupStack::PushL( contactItem );//push
-
- CChangeVoiceTagDialog *changeDial = new( ELeave ) CChangeVoiceTagDialog( *contactItem, 1 );
- CleanupStack::PushL( changeDial );//push, because ExecuteLD() just return a error.
- _LIT( msiLogChangeVoiceTagDialog, "CChangeVoiceTagDialog::CChangeVoiceTagDialog()" );
- AssertNotNullL( changeDial, msiLogChangeVoiceTagDialog );
-
- changeDial->ExecuteLD();
- _LIT( msiLogExecuteLD, "CChangeVoiceTagDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
-
- CleanupStack::PopAndDestroy( changeDial );
- CleanupStack::PopAndDestroy( contactItem );
- CleanupStack::PopAndDestroy( pbk );
- _LIT( msiLogDesc, "CChangeVoiceTagDialog::~CChangeVoiceTagDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestEraseVoiceTagDialogL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestEraseVoiceTagDialogL()
- {
- CPbkContactEngine* pbk = CPbkContactEngine::NewL();
- CleanupStack::PushL( pbk );//push
- CPbkContactItem* contactItem = pbk->CreateEmptyContactL();
- CleanupStack::PushL( contactItem );//push
-
- CEraseVoiceTagDialog *eraseDial =new( ELeave ) CEraseVoiceTagDialog( *contactItem, 1 );
- CleanupStack::PushL( eraseDial );//push, because ExecuteLD() just return a error.
- _LIT( msiLogCEraseVoiceTagDialog, "CEraseVoiceTagDialog::CEraseVoiceTagDialog()" );
- AssertNotNullL( eraseDial, msiLogCEraseVoiceTagDialog );
-
- eraseDial->ExecuteLD();
- _LIT( msiLogExecuteLD, "CEraseVoiceTagDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
-
- CleanupStack::PopAndDestroy( eraseDial );
- CleanupStack::PopAndDestroy( contactItem );
- CleanupStack::PopAndDestroy( pbk );
- _LIT( msiLogDesc, "CEraseVoiceTagDialog::~CEraseVoiceTagDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestVoiceDialerL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestVoiceDialerL()
- {
- CVoiceDialer* voiceDial = CVoiceDialer::NewL();
- CleanupStack::PushL( voiceDial );//push
- _LIT( msiLogNewL, "CVoiceDialer::NewL()" );
- AssertNotNullL( voiceDial, msiLogNewL );
- _LIT( msiLogNewLC, "CVoiceDialer::NewLC()" );
- AssertTrueL( ETrue, msiLogNewLC );
-
- voiceDial->VoiceTagAvailable();
- _LIT( msiLogVTA, "CVoiceDialer::VoiceTagAvailable()" );
- AssertTrueL( ETrue, msiLogVTA );
-
- CPbkContactEngine* pbk = CPbkContactEngine::NewL();
- CleanupStack::PushL( pbk );//push
-
- CPbkContactItem* contactItem = pbk->CreateEmptyContactL();
- CleanupStack::PushL( contactItem );//push
-
- voiceDial->EraseVoiceTag( *contactItem, 1 );
- _LIT( msiLogVT, "CVoiceDialer::EraseVoiceTag()" );
- AssertTrueL( ETrue, msiLogVT );
-
- CVoiceTagContact* voiceTag = CVoiceTagContact::NewL();
- CleanupStack::PushL( voiceTag );//push
-
- voiceDial->GetContactsWithVoiceTagL( *voiceTag );
- _LIT( msiLogGCW, "CVoiceDialer::GetContactsWithVoiceTagL()" );
- AssertTrueL( ETrue, msiLogGCW );
-
- CVoiceTagField *voiceTagField = CVoiceTagField::NewL();
- CleanupStack::PushL( voiceTagField );//push
-
- voiceDial->GetFieldsWithVoiceTagL( *contactItem , *voiceTagField );
- _LIT( msiLogGFW, "CVoiceDialer::GetFieldsWithVoiceTagL()" );
- AssertTrueL( ETrue, msiLogGFW );
-
- CleanupStack::PopAndDestroy( voiceTagField );
- CleanupStack::PopAndDestroy( voiceTag );
- CleanupStack::PopAndDestroy( contactItem );
- CleanupStack::PopAndDestroy( pbk );
- CleanupStack::PopAndDestroy( voiceDial );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestVoiceTagContactL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestVoiceTagContactL()
- {
- CVoiceTagContact* voiceTagContact = CVoiceTagContact::NewL();
- CleanupStack::PushL( voiceTagContact );//push
- _LIT( msiLogNewL, "CVoiceTagContact::NewL()" );
- AssertNotNullL( voiceTagContact, msiLogNewL );
- _LIT( msiLogNewLC, "CVoiceTagContact::NewLC()" );
- AssertTrueL( ETrue, msiLogNewLC );
-
- TContactItemId aCID = 12345;
-
- voiceTagContact->AddL( aCID, 1 );
- _LIT( msiLogAddL, "CVoiceTagContact::AddL()" );
- AssertTrueL( ETrue, msiLogAddL );
-
- voiceTagContact->Count();
- _LIT( msiLogCount, "CVoiceTagContact::Count()" );
- AssertTrueL( ETrue, msiLogCount );
-
- voiceTagContact->ContactId( 0 );
- _LIT( msiLogContactId, "CVoiceTagContact::ContactId()" );
- AssertTrueL( ETrue, msiLogContactId );
-
- voiceTagContact->FieldIndex( 0 );
- _LIT( msiLogFieldIndex, "CVoiceTagContact::FieldIndex()" );
- AssertTrueL( ETrue, msiLogFieldIndex );
-
- voiceTagContact->Reset();
- _LIT( msiLogReset, "CVoiceTagContact::Reset()" );
- AssertTrueL( ETrue, msiLogReset );
-
- CleanupStack::PopAndDestroy( voiceTagContact );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestVoiceTagFieldL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestVoiceTagFieldL()
- {
- CVoiceTagField* voiceTagField = CVoiceTagField::NewL();
- CleanupStack::PushL( voiceTagField );//push
- _LIT( msiLogNewL, "CVoiceTagField::NewL()" );
- AssertNotNullL( voiceTagField, msiLogNewL );
- _LIT( msiLogNewLC, "CVoiceTagField::NewLC()" );
- AssertTrueL( ETrue, msiLogNewLC );
-
- voiceTagField->AddL(0);
- _LIT( msiLogAddL, "CVoiceTagField::AddL()" );
- AssertTrueL( ETrue, msiLogAddL );
-
- voiceTagField->Count();
- _LIT( msiLogCount, "CVoiceTagField::Count()" );
- AssertTrueL( ETrue, msiLogCount );
-
- voiceTagField->FieldIndex(0);
- _LIT( msiLogFieldIndex, "CVoiceTagField::FieldIndex()" );
- AssertTrueL( ETrue, msiLogFieldIndex );
-
- voiceTagField->Reset();
- _LIT( msiLogReset, "CVoiceTagField::Reset()" );
- AssertTrueL( ETrue, msiLogReset );
-
- CleanupStack::PopAndDestroy( voiceTagField );
- }
// ---------------------------------------------------------------------------
// CBCTestDomCoreUiCase::TestVoiceRecogL
@@ -396,80 +180,16 @@
//
void CBCTestDomCoreUiCase::TestVoiceRecogL()
{
- CVoiceRecog* voiceRecog = CVoiceRecog::NewL();
- CleanupStack::PushL( voiceRecog );//push
-
- _LIT( msiLogNewL, "VoiceRecog::NewL()" );
- AssertNotNullL( voiceRecog, msiLogNewL );
- _LIT( msiLogNewLC, "VoiceRecog::NewLC()" );
- AssertTrueL( ETrue, msiLogNewLC );
-
- CleanupStack::PopAndDestroy( voiceRecog );
+
}
// ---------------------------------------------------------------------------
-// CBCTestDomCoreUiCase::TestPlaybackVoiceTagDialogL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomCoreUiCase::TestPlaybackVoiceTagDialogL()
- {
- CPbkContactEngine* pbk = CPbkContactEngine::NewL();
- CleanupStack::PushL( pbk );//push
- CPbkContactItem* contactItem = pbk->CreateEmptyContactL();
- CleanupStack::PushL( contactItem );//push
-
- TContactItemId contactItemId = contactItem->Id();
-
- CPlaybackVoiceTagDialog* playbackDial = new( ELeave ) CPlaybackVoiceTagDialog( contactItemId, 0);
- _LIT( msiLogCon, "CPlaybackVoiceTagDialog::CPlaybackVoiceTagDialog()" );
- AssertTrueL( ETrue, msiLogCon );
-
- MNssContextListArray* contList = NULL;
- TInt errorCode = 0;
- playbackDial->GetContextListCompleted( contList, errorCode);
-
- //error,can't find resource.
- TRAPD( error, playbackDial->ExecuteLD() )
-
- if( error )
- {
- _LIT( msiLogErr, "some resources can't be find!" );
- AssertTrueL( ETrue, msiLogErr );
- }
- else
- {
- _LIT( msiLogExecuteLD, "CPlaybackVoiceTagDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
- }
-
- CleanupStack::PopAndDestroy( contactItem );
- CleanupStack::PopAndDestroy( pbk );
- _LIT( msiLogDesc, "::~CPlaybackVoiceTagDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
-
- }
-
-// ---------------------------------------------------------------------------
// CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL
// ---------------------------------------------------------------------------
//
void CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL()
{
- CVoiceRecognitionDialog* voiceRec = new( ELeave ) CVoiceRecognitionDialog();
- _LIT( msiLogVRD, "CVoiceRecognitionDialog::CVoiceRecognitionDialog()" );
- AssertTrueL( ETrue, msiLogVRD );
-
- voiceRec->ExecuteLD();
- _LIT( msiLogExecuteLD, "CVoiceRecognitionDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
- CVoiceRecognitionDialog* voiceRec2 = new( ELeave ) CVoiceRecognitionDialog();
- voiceRec2->Cancel();
- _LIT( msiLogCancel, "CVoiceRecognitionDialog::Cancel()" );
- AssertTrueL( ETrue, msiLogCancel );
-
- _LIT( msiLogDesc, "CVoiceRecognitionDialog::~CVoiceRecognitionDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
}
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomadapter.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomadapter.cpp Mon May 03 12:45:33 2010 +0300
@@ -65,18 +65,18 @@
//
void CBCTestDomAdapter::ConstructL()
{
- iAdpDataLookup = new (ELeave) TUint[10];
- iAdpDataLookup[0] = ( TUint )CBCTestDomAdapter::TextLine0f;
- iAdpDataLookup[1] = 0x0001;
- iAdpDataLookup[2] = KWindowTxtStart;
- iAdpDataLookup[3] = ( TUint )CBCTestDomAdapter::WindowLine0f;
- iAdpDataLookup[4] = ( TUint )CBCTestDomAdapter::WindowLine1f;
- iAdpDataLookup[5] = 0x0001;
- iAdpDataLookup[6] = KWindowTxtStart;
+ iAdpDataLookup = new (ELeave) TUint[12];
+ iAdpDataLookup[0] = 0x18;
+ iAdpDataLookup[1] = 2;
+ iAdpDataLookup[2 ] = ( TUint )CBCTestDomAdapter::WindowLine0f;
+ iAdpDataLookup[3] = ( TUint )CBCTestDomAdapter::WindowLine1f;
+ iAdpDataLookup[4] = 0x0001;
+ iAdpDataLookup[5] = KWindowTxtStart;
+ iAdpDataLookup[6] = 2;
iAdpDataLookup[7] = ( TUint )CBCTestDomAdapter::TextLine0f;
iAdpDataLookup[8] = ( TUint )CBCTestDomAdapter::TextLine1f;
- iAdpDataLookup[9] = 0x518;
-
+ iAdpDataLookup[9] = 0x0001;
+ iAdpDataLookup[10] = KWindowTxtStart;
}
// ---------------------------------------------------------------------------
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomlayoutsystemcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomlayoutsystemcase.cpp Mon May 03 12:45:33 2010 +0300
@@ -32,7 +32,6 @@
#include "bctestdomadapter.h"
//constant variable define
-const TInt KTableIndex( 2 );
const TUint8 KByteCodedData[] = {
// 0x0000 for Screen
0x02,0xfe,0x00,0x00,0xfe,0xfe,0xf0,0xff,0x01,0x40,
@@ -134,11 +133,7 @@
0x2fd0, // main_burst_pane
-0x01c0,
-
-0x0001, //19
-KTableIndex,
-0x016e
+0x01c0
};
@@ -241,7 +236,6 @@
//
void CBCTestDomLayoutSystemCase::TestLayout2AdaptationDataDefL()
{
-
TRect rect( TPoint( 1, 1 ), TSize( 20, 20 ) );
CBCTestDomAdapter* testAdapter = CBCTestDomAdapter::NewL();
CleanupStack::PushL( testAdapter );
@@ -253,26 +247,24 @@
_LIT( KTxtMultiLineTextLine,
"AknLayoutAdaptationDecodeSupport::MultiLineTextLine" );
AssertTrueL( ETrue, KTxtMultiLineTextLine );
-
- dataLookup += 1;
-
+
TAknWindowLineLayout winLineLayout;
AknLayoutAdaptationDecodeSupport::WindowTable(
winLineLayout, dataLookup, 0, 0, 0, 0, 0, 0 );
_LIT( KTxtWindowTable,
"AknLayoutAdaptationDecodeSupport::WindowTable" );
AssertTrueL( ETrue, KTxtWindowTable );
-
+
AknLayoutAdaptationDecodeSupport::WindowTable(
- winLineLayout, dataLookup, 1, rect, 1, 1, 0, 0, 4 );
+ winLineLayout, dataLookup, 0, rect, 1, 1, 0, 0, 4 );
_LIT( KTxtWindowTable2,
"AknLayoutAdaptationDecodeSupport::WindowTable2" );
AssertTrueL( ETrue, KTxtWindowTable2 );
- const TUint * dataLookup2 = dataLookup + 4;
+ const TUint * dataLookup2 = dataLookup + 5;
AknLayoutAdaptationDecodeSupport::TextTable(
- txtLineLayout, dataLookup2, 1, 1, 1, 0, 0, 0 );
+ txtLineLayout, dataLookup2, 0, 0, 0, 0, 0, 0 );
_LIT( KTxtTextTable,
"AknLayoutAdaptationDecodeSupport::TextTable" );
AssertTrueL( ETrue, KTxtTextTable );
@@ -283,8 +275,7 @@
"AknLayoutAdaptationDecodeSupport::TableLimits" );
AssertTrueL( ETrue, KTxtTableLimits );
- CleanupStack::PopAndDestroy( testAdapter );
-
+ CleanupStack::PopAndDestroy( testAdapter );
}
// ---------------------------------------------------------------------------
@@ -356,36 +347,7 @@
"AknLayoutDecodeSupport::MultiLineTextLine2" );
AssertTrueL( ETrue, KTxtMultiLineTextLine2 );
- implData.iDataLookup += 19;
- AknLayoutDecodeSupport::WindowTable( winLineLayImp2,
- &implData, 0, 0, 0, 0, 0, 0 );
- _LIT( KTxtWindowTable,
- "AknLayoutDecodeSupport::WindowTable" );
- AssertTrueL( ETrue, KTxtWindowTable );
- AknLayoutDecodeSupport::WindowTable( winLineLayImp2,
- &implData, 0, rect, 0, 0, 0, 0, 0 );
- _LIT( KTxtWindowTable2,
- "AknLayoutDecodeSupport::WindowTable2" );
- AssertTrueL( ETrue, KTxtWindowTable2 );
-
- AknLayoutDecodeSupport::TextTable( txtLineLayImp2,
- &implData, 0, 0, 0, 0, 0, 0 );
- _LIT( KTxtTextTable,
- "AknLayoutDecodeSupport::TextTable" );
- AssertTrueL( ETrue, KTxtTextTable );
-
- AknLayoutDecodeSupport::TextTable( txtLineLayImp2,
- &implData, 0, rect, 0, 0, 0, 0, 0 );
- _LIT( KTxtTextTable2,
- "AknLayoutDecodeSupport::TextTable2" );
- AssertTrueL( ETrue, KTxtTextTable2 );
-
- TAknLayoutTableLimits layTableLims =
- AknLayoutDecodeSupport::TableLimits( implData.iDataLookup );
- _LIT( KTxtTableLimits,
- "AknLayoutDecodeSupport::TableLimits" );
- AssertTrueL( ETrue, KTxtTableLimits );
}
// ---------------------------------------------------------------------------
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomskincase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomfntlay/src/bctestdomskincase.cpp Mon May 03 12:45:33 2010 +0300
@@ -1161,7 +1161,7 @@
"RAknsSrvSession::ClientError" );
AssertTrueL( ETrue, KTxtClientError );
- ret = srvSession.SetAllDefinitionSets( KAknsPIDSkin6 );
+ ret = srvSession.SetAllDefinitionSets( KAknsPIDS60DefaultSkin );
_LIT( KTxtSetAllDefinitionSets,
"RAknsSrvSession::SetAllDefinitionSets" );
AssertTrueL( ETrue, KTxtSetAllDefinitionSets );
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/bctestdomecom/group/a00040a7.rss Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/bctestdomecom/group/a00040a7.rss Mon May 03 12:45:33 2010 +0300
@@ -53,4 +53,5 @@
};
}
};
- }
\ No newline at end of file
+ }
+
\ No newline at end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/group/ABLD.BAT Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-@ECHO OFF
-
-REM Bldmake-generated batch file - ABLD.BAT
-REM ** DO NOT EDIT **
-
-perl -S ABLD.PL "\BCTest_Domain\bctestdom3.2\bctestdominputmethods\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
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/inc/bctestdominputmethodscase.h Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/inc/bctestdominputmethodscase.h Mon May 03 12:45:33 2010 +0300
@@ -73,7 +73,16 @@
*/
void TestFunctionL();
-
+ /**
+ * Test TestPenInputServerHandlerL
+ */
+ void TestPenInputServerHandlerL();
+
+ /**
+ * Test TestRPeninputServerL
+ */
+ void TestRPeninputServerL();
+
/**
* Test TestPtiCoreL
*/
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/inc/bctestdompeninputclient.h Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/inc/bctestdompeninputclient.h Mon May 03 12:45:33 2010 +0300
@@ -19,13 +19,80 @@
#ifndef C_BCRPENINPUTSERVEROBSERVER_H
#define C_BCRPENINPUTSERVEROBSERVER_H
-class MPenUiActivationHandler;
class MPeninputServerEventHandler;
class RPeninputServer;
-#include <ecom/ecom.h>
+#include <pticore.h>
+#include <ptihwrrecognizer.h>
+#include <peninputsrveventhandler.h>
+
+/**
+ * inherit from pure virtual class MPenUiActivationHandler,
+ * it's for test RPeninputServer
+ */
+class CMPenUiA : public CBase,public MPenUiActivationHandler
+ {
+public:
+
+ /**
+ * Constructor
+ */
+ CMPenUiA();
+
+ /**
+ * implement pure virtual function.
+ */
+ void OnPeninputUiDeactivated();
+
+ /**
+ * implement pure virtual function.
+ */
+ void OnPeninputUiActivated();
+
+ };
/**
+ * inherit from pure virtual class MPeninputServerEventHandler,
+ * it's for test RPeninputServer
+ */
+class CPenUiNotificationHandler: public CBase,public MPeninputServerEventHandler
+ {
+public:
+
+ /**
+ * create object.
+ * @param aHandler, MPenUiActivationHandler
+ * @param aClient, RPeninputServer
+ * @return Pointer to created CPenUiNotificationHandler class object.
+ */
+ static CPenUiNotificationHandler* NewL( MPenUiActivationHandler* aHandler,
+ RPeninputServer* aClient );
+
+ /**
+ * implement pure virtual function.
+ * @param aEventId, a EventId
+ * @return handle event state.
+ */
+ TBool HandleServerEventL( TInt aEventId );
+
+private:
+
+ /**
+ * Constructor
+ */
+ CPenUiNotificationHandler( MPenUiActivationHandler* aHandler, RPeninputServer* aClient );
+
+ /**
+ * 2nd ctor
+ */
+ void ConstructL();
+
+ MPenUiActivationHandler* iHandler;
+
+ RPeninputServer* iClient;
+ };
+
+/**
* inherit from CHwrRecognizer, it's only for test protected api.
*/
class CBCTestDomHwrRecognizer : public CHwrRecognizer
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/src/bctestdominputmethodscase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/src/bctestdominputmethodscase.cpp Mon May 03 12:45:33 2010 +0300
@@ -20,9 +20,12 @@
#include <w32std.h>
#include <coecntrl.h>
#include <pticore.h>
+#include <peninputclient.h>
#include <ptihwrrecognizer.h>
#include <ptiengine.h>
#include <ptiuserdicentry.h>
+#include <peninputserverhandler.h>
+#include <peninputgenericitutcustomization.h>
#include "bctestdompeninputclient.h"
#include "bctestdominputmethodscase.h"
@@ -80,7 +83,7 @@
void CBCTestDomInputMethodsCase::BuildScriptL()
{
// Add script as your need.
- AddTestL(DELAY(3), LeftCBA, KeyOK,TEND);
+ AddTestL(DELAY(1), LeftCBA, KeyOK,TEND);
}
// ---------------------------------------------------------------------------
@@ -146,19 +149,221 @@
//
void CBCTestDomInputMethodsCase::TestFunctionL() //memory leak, TestPtiCoreL();
{
+ TestPenInputServerHandlerL();
+ TestRPeninputServerL();
TestPtiCoreL();
TestCHwrRecognizerL();
}
+void CBCTestDomInputMethodsCase::TestPenInputServerHandlerL()
+ {
+ CPenInputServerHandler* penISH = CPenInputServerHandler::NewL();
+ CleanupStack::PushL( penISH );//push
+ _LIT( msiLogNewL, "CPenInputServerHandler::NewL()" );
+ AssertNotNullL( penISH, msiLogNewL );
+
+ penISH->ConnectServer();
+ _LIT( msiLogConnect, "CPenInputServerHandler::ConnectServer()" );
+ AssertTrueL( ETrue, msiLogConnect );
+
+ penISH->SetUiLayout( 0 );
+ _LIT( msiLogSetUi, "CPenInputServerHandler::SetUiLayout()" );
+ AssertTrueL( ETrue, msiLogSetUi );
+
+ penISH->ActivateUiLayout( EFalse );
+ _LIT( msiLogActivateUi, "CPenInputServerHandler::ActivateUiLayout()" );
+ AssertTrueL( ETrue, msiLogActivateUi );
+
+ penISH->SendCommandToServer( 0 );
+ _LIT( msiLogSendCommand1, "CPenInputServerHandler::SendCommandToServer(TInt)" );
+ AssertTrueL( ETrue, msiLogSendCommand1 );
+
+ penISH->SendCommandToServer( 0, 0 );
+ _LIT( msiLogSendCommand2, "CPenInputServerHandler::SendCommandToServer(TInt,TInt)" );
+ AssertTrueL( ETrue, msiLogSendCommand2 );
+
+ TBuf<10> param;
+ penISH->SendCommandToServer( 0, param );
+ _LIT( msiLogSendCommand3, "CPenInputServerHandler::SendCommandToServer(TInt,TDesC&)" );
+ AssertTrueL( ETrue, msiLogSendCommand3 );
+
+ //TItutBmp itutBmp;
+ //TItutKey itutkey(0, itutBmp, itutBmp, itutBmp, itutBmp, 0);
+ //penISH->SendNewKeyToServer( 0, itutkey );
+ //_LIT( msiLogSendCommand4, "CPenInputServerHandler::SendCommandToServer(TInt,TItutKey&)" );
+ //AssertTrueL( ETrue, msiLogSendCommand4 );
+
+ TFepInputContextFieldData data;
+ penISH->SetIcfText( data );
+ _LIT( msiLogSetIcfText, "CPenInputServerHandler::SetIcfText()" );
+ AssertTrueL( ETrue, msiLogSetIcfText );
+
+ //TItutPromptText promptText;
+ //penISH->SendPromptTextToServer( 0, promptText );
+ //_LIT( msiLogSendPrompt, "CPenInputServerHandler::SendPromptTextToServer()" );
+ //AssertTrueL( ETrue, msiLogSendPrompt );
+
+ penISH->DisconnectServer();
+ _LIT( msiLogDisconnect, "CPenInputServerHandler::DisconnectServer()" );
+ AssertTrueL( ETrue, msiLogDisconnect );
+
+ CleanupStack::PopAndDestroy( penISH );
+ _LIT( msiLogDes, "CPenInputServerHandler::~CPenInputServerHandler()" );
+ AssertTrueL( ETrue, msiLogDes );
+
+ }
+
+
+// ---------------------------------------------------------------------------
+// CBCTestDomInputMethodsCase::TestRPeninputServerL
+// ---------------------------------------------------------------------------
+//
+void CBCTestDomInputMethodsCase::TestRPeninputServerL()
+ {
+ //RPeninputServer didn't init private data(two points),
+ //so, use User::AllocZL alloc mem and init points.
+ RPeninputServer* penInput =
+ static_cast<RPeninputServer*>( User::AllocZL( sizeof( RPeninputServer ) ) );
+ CleanupStack::PushL( penInput );//push
+
+ TInt error = penInput->Connect();
+ _LIT( msiLogConnect, "RPeninputServer::Connect()" );
+ AssertTrueL( ETrue, msiLogConnect );
+
+ penInput->Version();
+ _LIT( msiLogVersion, "RPeninputServer::Version()" );
+ AssertTrueL( ETrue, msiLogVersion );
+
+ TInt cmd = 0;
+ TBuf8<10> buf;
+
+ penInput->HandleCommand( cmd );
+ _LIT( msiLogHandleCommand, "RPeninputServer::HandleCommand()" );
+ AssertTrueL( ETrue, msiLogHandleCommand );
+
+ penInput->HandleCommand( cmd, buf );
+ _LIT( msiLogHandleCommand2, "RPeninputServer::HandleCommand( , )" );
+ AssertTrueL( ETrue, msiLogHandleCommand2 );
+
+ penInput->HandleCommand( cmd, buf, cmd );
+ _LIT( msiLogHandleCommand3, "RPeninputServer::HandleCommand( , ,)" );
+ AssertTrueL( ETrue, msiLogHandleCommand3 );
+
+ penInput->IsVisible();
+ _LIT( msiLogIsVisible, "RPeninputServer::IsVisible()" );
+ AssertTrueL( ETrue, msiLogIsVisible );
+
+ const TUid testUid = { 0x174657FC };
+ penInput->SetUiLayoutId( testUid );
+ _LIT( msiLogSetUiLayoutId, "RPeninputServer::SetUiLayoutId()" );
+ AssertTrueL( ETrue, msiLogSetUiLayoutId );
+
+ penInput->SetUiLayoutId( testUid, buf );
+ _LIT( msiLogSetUiLayoutId2, "RPeninputServer::SetUiLayoutId( , )" );
+ AssertTrueL( ETrue, msiLogSetUiLayoutId2 );
+
+ TPoint pos;
+ penInput->SetUiLayoutPos( pos );
+ _LIT( msiLogSetUiLayoutPos, "RPeninputServer::SetUiLayoutPos()" );
+ AssertTrueL( ETrue, msiLogSetUiLayoutPos );
+
+ penInput->UiLayoutPos();
+ _LIT( msiLogUiLayoutPos, "RPeninputServer::UiLayoutPos()" );
+ AssertTrueL( ETrue, msiLogUiLayoutPos );
+
+ penInput->ResourceChanged( cmd );
+ _LIT( msiLogResourceChanged, "RPeninputServer::ResourceChanged()" );
+ AssertTrueL( ETrue, msiLogResourceChanged );
+
+ penInput->ActivateLayout( EFalse );
+ _LIT( msiLogActivateLayout, "RPeninputServer::ActivateLayout()" );
+ AssertTrueL( ETrue, msiLogActivateLayout );
+
+ TBuf<10> buf16;
+ penInput->GetServerEventData( buf16 );
+ _LIT( msiLogGetServerEventData, "RPeninputServer::GetServerEventData()" );
+ AssertTrueL( ETrue, msiLogGetServerEventData );
+
+ penInput->ServerEventDataNum();
+ _LIT( msiLogServerEventDataNum, "RPeninputServer::ServerEventDataNum()" );
+ AssertTrueL( ETrue, msiLogServerEventDataNum );
+
+
+ TDisplayMode displayMode = EGray2;
+ penInput->SetDisplayMode( displayMode, displayMode );
+ _LIT( msiLogSetDisplayMode, "RPeninputServer::SetDisplayMode();" );
+ AssertTrueL( ETrue, msiLogSetDisplayMode );
+
+ penInput->ClearServerEvent();
+ _LIT( msiLogClearServerEvent, "RPeninputServer::ClearServerEvent();" );
+ AssertTrueL( ETrue, msiLogClearServerEvent );
+
+ TInt language = 1;
+ TInt pluginMode = 0;
+ RArray<TInt> implmentationIds;
+ penInput->GetImePluginIdListL( language, pluginMode, implmentationIds);
+ _LIT( msiLogGetImePluginIdListL, "RPeninputServer::GetImePluginIdListL();" );
+ AssertTrueL( ETrue, msiLogGetImePluginIdListL );
+
+ penInput->SetForeground( EFalse );
+ _LIT( msiLogSetForeground, "RPeninputServer::SetForeground()" );
+ AssertTrueL( ETrue, msiLogSetForeground );
+
+ penInput->IsForeground();
+ _LIT( msiLogIsForeground, "RPeninputServer::IsForeground()" );
+ AssertTrueL( ETrue, msiLogIsForeground );
+
+ CMPenUiA* penUi = new( ELeave ) CMPenUiA();
+ CleanupStack::PushL( penUi );//push
+
+ CPenUiNotificationHandler* handler= CPenUiNotificationHandler::NewL( penUi ,penInput);
+ CleanupStack::PushL( handler );//push
+
+ penInput->AddPeninputServerObserverL( handler );
+ _LIT( msiLogAddPSO, "RPeninputServer::AddPeninputServerObserverL()" );
+ AssertTrueL( ETrue, msiLogAddPSO );
+
+ penInput->AddPenUiActivationHandler(penUi, 0);
+ _LIT( msiLogAddPUH, "RPeninputServer::AddPenUiActivationHandler()" );
+ AssertTrueL( ETrue, msiLogAddPUH );
+
+ RArray<TInt> languageLists(5);
+ penInput->PenSupportLanguagesL( languageLists );
+ _LIT( msiLogPenSupportLanguagesL, "RPeninputServer::PenSupportLanguagesL();" );
+ AssertTrueL( ETrue, msiLogPenSupportLanguagesL );
+
+ penInput->RemovePeninputServerObserver();;
+ _LIT( msiLogRemovePeninputServerObserver, "RPeninputServer::RemovePeninputServerObserver();" );
+ AssertTrueL( ETrue, msiLogRemovePeninputServerObserver );
+
+ penInput->RemovePenUiActivationHandler();
+ _LIT( msiLogRemovePenUiActivationHandler, "RPeninputServer::RemovePenUiActivationHandler()" );
+ AssertTrueL( ETrue, msiLogRemovePenUiActivationHandler );
+
+ languageLists.Close();
+ implmentationIds.Close();
+
+ penInput->Close();
+ _LIT( msiLogClose, "RPeninputServer::Close()" );
+ AssertTrueL( ETrue, msiLogClose );
+
+ CleanupStack::PopAndDestroy(3);
+
+ RPeninputServer penInput2 = RPeninputServer();
+ _LIT( msiLogInit, "RPeninputServer::RPeninputServer()" );
+ AssertTrueL( ETrue, msiLogInit );
+
+ }
+
// ---------------------------------------------------------------------------
// CBCTestDomInputMethodsCase::TestPtiCoreL
// ---------------------------------------------------------------------------
//
void CBCTestDomInputMethodsCase::TestPtiCoreL()
{
-
+
TUid coreUid = { 0xa00040ad };//from CBCTestDomPtiCore
-
+
CBCTestDomPtiCore* ptiCore = static_cast<CBCTestDomPtiCore*>(CPtiCore::CreateCoreL( coreUid ));
CleanupStack::PushL( ptiCore );//push
_LIT( msiLogCreateCoreL, "CPtiCore::CreateCoreL()" );
@@ -331,7 +536,7 @@
AssertTrueL( ETrue, msiLogSetToneMark );
CleanupStack::PopAndDestroy(3);
- ptiCore->Descecom( ptiCore->DestructorKeyId());
+ ptiCore->Descecom( 1 );
_LIT( msiLogDesc, "CPtiCore::~CPtiCore()" );
AssertTrueL( ETrue, msiLogDesc );
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/src/bctestdompeninputclient.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdominputmethods/src/bctestdompeninputclient.cpp Mon May 03 12:45:33 2010 +0300
@@ -17,11 +17,77 @@
// INCLUDE FILES
-#include <pticore.h>
-#include <ptihwrrecognizer.h>
+#include "peninputclient.h"
#include "bctestdompeninputclient.h"
+// ---------------------------------------------------------------------------
+// CMPenUiA::CMPenUiA
+// ---------------------------------------------------------------------------
+//
+CMPenUiA::CMPenUiA()
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// CMPenUiA::OnPeninputUiDeactivated
+// ---------------------------------------------------------------------------
+//
+void CMPenUiA::OnPeninputUiDeactivated()
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// CMPenUiA::OnPeninputUiActivated
+// ---------------------------------------------------------------------------
+//
+void CMPenUiA::OnPeninputUiActivated()
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// CPenUiNotificationHandler::NewL
+// ---------------------------------------------------------------------------
+//
+CPenUiNotificationHandler* CPenUiNotificationHandler::NewL(
+ MPenUiActivationHandler* aHandler,
+ RPeninputServer* aClient )
+ {
+ CPenUiNotificationHandler* self = new ( ELeave )
+ CPenUiNotificationHandler( aHandler, aClient );
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+// ---------------------------------------------------------------------------
+// CPenUiNotificationHandler::CPenUiNotificationHandler
+// ---------------------------------------------------------------------------
+//
+CPenUiNotificationHandler::CPenUiNotificationHandler(
+ MPenUiActivationHandler* aHandler,RPeninputServer* aClient)
+ : iHandler( aHandler ), iClient( aClient )
+ {
+ }
+
+// ---------------------------------------------------------------------------
+// CPenUiNotificationHandler::ConstructL
+// ---------------------------------------------------------------------------
+//
+void CPenUiNotificationHandler::ConstructL()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CPenUiNotificationHandler::HandleServerEventL
+// ---------------------------------------------------------------------------
+//
+TBool CPenUiNotificationHandler::HandleServerEventL( TInt /*aEventId*/ )
+ {
+ return ETrue;
+ }
// ---------------------------------------------------------------------------
// CBCTestHwrRecognizer::NewL
@@ -89,15 +155,4 @@
aHelpLine,
aBaseLine );
}
-
-// ---------------------------------------------------------------------------
-// From class CPtiCore.
-// Bceause the api is not IMPORT_C, implemented for get iDtorKeyId.
-// ---------------------------------------------------------------------------
-//
-TInt CPtiCore::DestructorKeyId() const
- {
- return iDtorKeyId;
- }
-
// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/group/ABLD.BAT Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-@ECHO OFF
-
-REM Bldmake-generated batch file - ABLD.BAT
-REM ** DO NOT EDIT **
-
-perl -S ABLD.PL "\bc\bctestdomnotifier\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
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/group/bctestdomnotifier.mmp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/group/bctestdomnotifier.mmp Mon May 03 12:45:33 2010 +0300
@@ -78,7 +78,6 @@
LIBRARY aknlayout2adaptation.lib
LIBRARY aknLayout2hierarchy.lib
LIBRARY aknlayout2scalable.lib
-LIBRARY pslnengine.lib
START RESOURCE ../group/bctestdomnotifier_reg.rss
DEPENDS bctestdomnotifier.rsg
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/inc/PslnModel.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,736 +0,0 @@
-/*
-* Copyright (c) 2004-2006 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Model class for Psln application.
-*
-*/
-
-
-#ifndef C_PSLNMODEL_H
-#define C_PSLNMODEL_H
-
-#include <downloadedcontenthandler.h>
-#include <AknServerApp.h>
-#include <aknssrvclient.h>
-#include <Babitflags.h>
-
-// Screen saver plugin capabilities
-enum TScPluginCaps
- {
- // Plugin has no special capabilities
- EScpCapsNone = 0x00,
- // Plugin implements the configure function
- EScpCapsConfigure = 0x01,
- // Plugin wants to be notified when selected as the active screensaver
- EScpCapsSelectionNotification = 0x02,
- // Plugin wants to be notified when preview command is selected
- EScpCapsPreviewNotification = 0x04
- };
-// Determines the type of skin list.
-enum TPslnSkinNameType
- {
- // list name
- EPslnSkinNameTypeList = 0,
- // title name
- EPslnSkinNameTypeTitle
- };
-
-// What kind of scren saver activation it is.
-enum TPslnScreenSaverActivation
- {
- // Preview is activated.
- EPslnScreenSaverPreviewActivation = 0,
- // Preview is deactivated, and "real" screen saver is activated,
- EPslnScreenSaverPreviewDeactivation,
- // Real screen saver is activated straight away.
- EPslnScreenSaverActivation
- };
-
-// Defines actions for a transtion effects
-enum TPslnTransitionEffectAction
- {
- // Used only for enum range validation
- EPslnTransitionEffectDummyFirst = -1,
-
- // -- begin of real values --
-
- // Start theme preview transtion effect
- EPslnTransitionEffectStartPreview,
- // Start theme activation transtion effect
- EPslnTransitionEffectStartThemeActivation,
- // Stop the current transition effect
- EPslnTransitionEffectStop,
-
- // -- end of real values --
-
- // Used only for enum range validation
- EPslnTransitionEffectDummyLast
- };
-
-class MAknsSkinChangeObserver;
-class MPslnScreenSaverECOMObserver;
-class CEikonEnv;
-class CPslnSkinStore;
-class CRepository;
-class CPslnSkinEntry;
-class CPslnSkinNameEntry;
-class TAknsPkgID;
-class CPslnWallpaperUtilsLoader;
-class CPslnEcomListener;
-class CPslnBrowserLaunchLoader;
-
-// Maximum number of characters in Screen saver txt.
-const TInt KPslnMaxLengthOfScreenSaverText = 15;
-
-// CLASS DEFINITIONS
-
-// Inner class for skin name entry.
-class TPslnSkinNameEntry
- {
- public:
- // Package ID.
- TAknsPkgID iPid;
- // Skin list name.
- HBufC* iListName;
- // Skin title name.
- HBufC* iTitleName;
- };
-
-// Auxiliary class for screen saver info.
-class CPslnScreenSaverInfo : public CBase
- {
- public:
-
- // Symbian OS two-phased constructor.
- static CPslnScreenSaverInfo* NewL()
- {
- CPslnScreenSaverInfo* self = new (ELeave) CPslnScreenSaverInfo;
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- };
-
- // Destructor.
- ~CPslnScreenSaverInfo()
- {
- delete iScreenSaverTxt;
- iScreenSaverTxt = NULL;
- delete iFileName;
- iFileName = NULL;
- }
- private:
-
- // Symbian OS second phase constructor.
- void ConstructL()
- {
- iScreenSaverTxt = HBufC::NewL( KPslnMaxLengthOfScreenSaverText );
- iFileName = HBufC::NewL( KMaxFileName );
- };
-
- // C++ default constructor.
- CPslnScreenSaverInfo()
- {
- iScreenSaverType = 1; // magic, default value
- };
-
- public:
- // Filename for screensaver, if applicable.
- HBufC* iFileName;
- // Text, if any, shown in the screensaver.
- HBufC* iScreenSaverTxt;
- // Type of screen saver.
- TInt iScreenSaverType;
- };
-
-/**
-* CPslnModel is the model class of Psln app.
-* It provides functions to get and set setting values.
-*/
-NONSHARABLE_CLASS( CPslnModel ):
- public CBase,
- public MDownloadedContentHandler,
- public MAknServerAppExitObserver
- {
- public:
-
- /**
- * Two-phased constructor.
- * @param aObserver observer for skin changes.
- * @return new instance of CPslnModel.
- */
- IMPORT_C static CPslnModel* NewL( MAknsSkinChangeObserver* aObserver );
-
- /**
- * Deprecated.
- * @return NULL.
- */
- IMPORT_C static CPslnModel* NewL();
-
- /**
- * Destructor
- */
- IMPORT_C ~CPslnModel();
-
- /**
- * Deprecated.
- */
- IMPORT_C TBool ActivateSkinL( const TDesC8& aPreviewType,
- const TInt aActiveSkinIndex );
-
- /**
- * Activates screen saver as set by user.
- * @param aItemIndex screensaver to activate.
- * @param aActivationType screensaver activation type
- * (activation/deactivation/preview).
- * @return error code, or KErrNone on success.
- */
- IMPORT_C TInt ActivateScreenSaver(
- const TInt aItemIndex,
- TPslnScreenSaverActivation aActivationType );
-
- /**
- * Disables skin notify changes.
- *
- * Creates and pushes internal class CPslnActivationGuard to the
- * stack. When CPslnActivationGuard is constructed, SkinSrvSession's
- * DisableSkinChangeNotify is called, and thus skin notify changes are
- * disabled. When CPslnActivationGuard is popped from stack,
- * SkinSrvSession's EnableSkinChangeNotify is called automatically and thus,
- * skin notify changes are again active.
- */
- IMPORT_C void GuardActivationLC();
-
- /**
- * Starts skin download.
- */
- IMPORT_C void DownloadSkinL();
-
- /**
- * Sets Idle Wallpaper.
- * @param aImagePath Path and filename of new wallpaper.
- * @return error code, or KErrNone on success.
- */
- IMPORT_C TInt SetBackgroundImagePath( const TDesC& aImagePath );
-
- /**
- * Invokes screensaver plugins PluginFunction for e.g. configuring
- * the screensaver.
- * @param aIndex screensaver index to use.
- * @param aFunction screensaver function to call.
- */
- IMPORT_C void InvokeSSPluginFunctionL(
- TInt aIndex,
- TScPluginCaps aFunction );
-
- /**
- * Updates skins from server, UI skins list, and screensaver array.
- */
- IMPORT_C void PerformCompleteUpdateL();
-
- /**
- * Creates screen saver array.
- */
- IMPORT_C void LoadScreensaverArrayL();
-
- /**
- * Gets the visible skin by its UI index.
- * Ownership is not transferred.
- * @param aIndex skin index.
- * @return pointer to skin entry.
- */
- IMPORT_C CPslnSkinEntry* VisibleSkin( const TInt aIndex );
-
- /**
- * Gets the name of the skin.
- * @param aIndex skin index to use.
- * @param aSkinName localized skin name.
- * @param aType which skin name to fetch (list/title name).
- */
- IMPORT_C void GetSkinNameByIndex( const TInt aIndex, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /**
- * Checks whether the current (or given) skin is active.
- * @param aSkinIndex skin index to use.
- * @return ETrue is given skin index is currently active skin.
- */
- IMPORT_C TBool IsActiveSkinSelected (
- TInt aSkinIndex = KErrNotFound ) const;
-
- /**
- * Deprecated since 5.0.
- */
- IMPORT_C TAknSkinSrvSkinPackageLocation LocationOfSkin( const TInt aIndex );
-
- /**
- * Returns skin index of active skin.
- * @return skin index of active skin.
- */
- IMPORT_C TInt ActiveSkinIndex() const;
-
- /**
- * Returns skin index of currently highlighted skin.
- * @return skin index of highlighted skin.
- */
- IMPORT_C TInt CurrentSelectedSkinIndex() const;
-
- /**
- * Returns number of found skins.
- * @return number of found skins.
- */
- IMPORT_C TInt NumberOfSkins() const;
-
- /**
- * Returns screensaver name array.
- * @return screensaver name array.
- */
- IMPORT_C const MDesC16Array& ScreensaverNames() const;
-
- /**
- * Checks if selected screensaver has the requested capability
- * @param aIndex index of screensaver in screensaver array.
- * @param aCapability requested capability.
- * @return ETrue if screensaver has the capability, EFalse otherwise.
- */
- IMPORT_C TBool ScreensaverHasCapability(
- const TInt aIndex,
- const TScPluginCaps aCapability ) const;
-
- /**
- * Returns protection type of skin.
- * @param aIndex skin index to use.
- * @return protection type of skin.
- */
- IMPORT_C TAknsSkinSrvSkinProtectionType ProtectionOfSkin(
- const TInt aIndex );
-
- /**
- * Checks if the skin can be activated.
- * @param aItemIndex skin index to use.
- * @return ETrue, if skin can be activated.
- */
- IMPORT_C TBool IsValidForActivation( const TInt aItemIndex );
-
- /**
- * Checks if the skin can be previewed.
- * @param aItemIndex skin index to use.
- * @return ETrue, if skin can be previewed.
- */
- IMPORT_C TBool IsValidForPreview( const TInt aItemIndex );
-
- /**
- * Sets the given skin index as currently highlighted one.
- * @param aCurrentSkinIndex skin index.
- */
- IMPORT_C void SetCurrentSelectedSkinIndex(
- const TInt aCurrentSkinIndex );
-
- /**
- * Deprecated.
- */
- IMPORT_C TInt SetCurrentPropertyType( const TInt aProperty,
- const TInt aCurItemIndex );
-
- /**
- * Gets currently active index of given property.
- * @param aProperty property type - either wallpaper or screensaver.
- * @return index of currently active property, or error code.
- */
- IMPORT_C TInt CurrentPropertyIndex( const TInt aProperty );
-
- /**
- * Enables (or disables) notifications from ECOM framework.
- * When ECOM state is changed, PslnModel will check that it's
- * screensaver list is up to date. Changes in the list are
- * indicated to observer class.
- * @param aActive if ETrue, notifications are subscribed, otherwise
- * subscription is terminated.
- * @param aObserver observer for notifications.
- */
- IMPORT_C void EnableScreenSaverNotifications(
- const TBool& aActive,
- MPslnScreenSaverECOMObserver& aObserver );
-
- /**
- * Deprecated.
- */
- IMPORT_C TBool ActivateSkinL(
- const TDesC8& aPreviewType,
- const TInt aActiveSkinIndex,
- const TBool& aActivateFromPreview );
-
- /**
- * Activates the entire skin.
- * @since 3.2
- * @param aActiveSkinIndex skin index of active skin.
- * @return ETrue, if skin activation is successful.
- */
- IMPORT_C TBool ActivateSkinL( const TInt aActiveSkinIndex );
-
- /**
- * Gets currently active index of given property.
- * This is leaving version of CurrentPropertyIndex (see above).
- * @param aProperty property type - either wallpaper or screensaver.
- * @return index of currently active property, or error code.
- */
- IMPORT_C TInt CurrentPropertyIndexL( const TInt aProperty );
-
- /**
- * Sets transition effects enabled/disabled as given in the parameter.
- * @param aEffectValue used as bitmask. Value of zero enables all effects,
- * and value of KMaxTInt disables all effects.
- * All other values are considered as invalid.
- * @return KErrArgument if aEffectValue is not zero or KMaxTInt.
- * Otherwise return value is what is given out by CRepository::Set().
- *
- * @since 3.2
- */
- IMPORT_C TInt SetTransitionEffectsL( const TInt aEffectValue );
-
- /**
- * Gets current transition effect value.
- * @return in error cases returns KErrNotFound,
- * otherwise returns current repository value.
- *
- * @since 3.2
- */
- IMPORT_C TInt GetTransitionEffectStateL();
-
- /**
- * Checks if the screensaver is installed on memory card.
- * @param aScreensaverIndex screensaver index
- * @return ETrue, if screensaver is installed to the memory card.
- *
- * @since 3.2
- */
- IMPORT_C TBool IsScreenSaverOnMemoryCard( const TInt aIndex ) const;
-
- /**
- * Sets a given property (wallpaper or screensaver) as active.
- * @param aProperty property type - either wallpaper or screensaver.
- * @param aCurItemIndex item index that is currently active.
- * @return KErrNone always.
- *
- * @since 3.2
- */
- IMPORT_C void SetCurrentPropertyTypeL( const TInt aProperty,
- const TInt aCurItemIndex );
-
- /**
- * Checks if a skin with given index is on memory card,
- * @param aIndex skin index from application.
- * @return ETrue if skin is on memory card, EFalse otherwise.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsThemeOnMemoryCard( const TInt& aIndex );
-
- /**
- * Checks if a skin with given index is on mass drive,
- * @param aIndex skin index from application.
- * @return ETrue if skin is on memory card, EFalse otherwise.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsThemeOnMassDrive( const TInt& aIndex );
-
- /**
- * Checks if the screensaver is installed on mass drive.
- * @param aScreensaverIndex screensaver index
- * @return ETrue, if screensaver is installed to the mass drive.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsScreenSaverOnMassDrive( const TInt& aIndex ) const;
-
- /**
- * Returns skin server session.
- * @return skin server session.
- *
- * @since 3.2
- */
- IMPORT_C RAknsSrvSession SkinSrvSession() const;
-
- /**
- * Starts or stops transition effects.
- *
- * @param aAction specifies actions for transition effects.
- * The value can be one of the values defined in TPslnTransitionEffectAction.
- * @since 3.2
- */
- IMPORT_C void TransEffect(TInt aAction) const;
-
- private:
-
- /**
- * Gets the separately localized name of the skin, if any.
- * @param aPID package ID to use.
- * @param aSkinName localized skin name.
- * @param aType which skin name to fetch (list/title name).
- * @return ETrue, if localized skin name was found.
- */
- TBool GetSeparatelyLocalizedSkinName(
- const TAknsPkgID aPID, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /**
- * From MDownloadedContentHandler.
- *
- * Handle downloaded content that has been saved to a file,
- * and return ETrue if it was handled successfully.
- * @param aFileName File name with path.
- * @param aParamList Generic parameter list.
- * @param aContinue Output parameter: It must be ETrue if the caller wants
- * Browser not to terminate after the content is handled.
- * @return ETrue if the implementer has processed the content. If it is
- * EFalse, BrowserLauncher opens that content in an
- * appropriate viewer application.
- */
- TBool HandleContentL(
- const TDesC& aFilename,
- const CAiwGenericParamList& aParamList,
- TBool& aContinue );
-
- /**
- * From MDownloadedContentHandler.
- * Reserved for future use.
- * @param aAnyParam reserved for future use.
- * @return reserved for future use.
- */
- virtual TAny* DownloadedContentHandlerReserved1( TAny* aAnyParam );
-
- /**
- * Default C++ contructor
- */
- CPslnModel();
-
- /**
- * Symbian default constructor
- */
- void ConstructL( MAknsSkinChangeObserver* aObserver );
-
- /**
- * Loads the separately localized skin names resource.
- */
- void LoadSkinNamesResourceL();
-
- /**
- * Finds screensavers from the given path and appends them to the
- * screensaver list.
- * @return ETrue if screensavers were found, EFalse otherwise.
- */
- TBool FindAndAppendScreensaversL();
-
- /**
- * Updates the skin information from the server and
- * the list of visible skins.
- */
- void UpdateFromServerL();
-
- /**
- * Updates the list of visible skins.
- */
- void UpdateVisibleSkinListL();
-
- /**
- * Activates skin that is currently selected.
- */
- void SetActiveSkinL();
-
- /**
- * Launches query dialog for screensaver name.
- * @return EFalse, if user cancelled the query.
- */
- TBool QueryAndSetScreensaverTextL();
-
- /**
- * From MAknServerAppExitObserver.
- */
- void HandleServerAppExit( TInt aReason );
-
- /* Gets full name of skin. */
- const TDesC& GetSkinFullName( const TInt aItemIndex );
-
- /* Gets the name of the skin. */
- void GetSkinNameByPID( const TAknsPkgID aPID, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /* Activates default skin. */
- void ActivateDefaultSkinL();
-
- /* Gets default text for text screensaver. */
- void GetDefaultTextToScreensaverL( TDes& aDisplayText );
-
- /* Gets wallpaper item index. */
- TInt GetWallPaperItemIndex();
-
- /* Gets wallpaper item index. */
- TInt GetScreenSaverItemIndexL();
-
- /* Loads AknsWallpaperUtils to memory. */
- void LoadWallpaperUtilsL();
-
- /* Strips file path information from screensaver UID. */
- TPtrC GetRealScreenSaverUid( const TInt aIndex );
-
- /* Leaving version of ActivateScreenSaver. */
- void ActivateScreenSaverL(
- const TInt aItemIndex,
- TPslnScreenSaverActivation aActivationType );
-
- /* Loads browser launcher dll to memory. */
- void LoadBrowserLaunchL();
-
- private: // Data
-
- /*
- * Skin store.
- * Own.
- */
- CPslnSkinStore* iSkinStore;
-
- /*
- * Array of visible skins.
- * Own.
- */
- RPointerArray<CPslnSkinNameEntry>* iVisibleSkinArr;
-
- /*
- * Skin server session.
- */
- RAknsSrvSession iSkinSrvSession;
-
- /*
- * CenRep object for skin keys.
- * Own.
- */
- CRepository* iSkinsRepository;
-
- /*
- * CenRep object for screen saver keys.
- * Own.
- */
- CRepository* iScreenSaverRepository;
-
- /*
- * CenRep object for themes application keys.
- * Own.
- */
- CRepository* iThemesAppRepository;
-
- /*
- * Pointer to eikon environment. Stored to avoid repeated fetches.
- * Not own.
- */
- CEikonEnv* iEikEnv;
-
- /*
- * Currently highlighted skin index.
- */
- TInt iCurrentSkinIndex;
-
- /*
- * Active skin index.
- */
- TInt iActiveSkinIndex;
-
- /*
- * Array of skin names.
- */
- RArray<TPslnSkinNameEntry> iSkinNames;
-
- /*
- * Array of screensaver filenames.
- * Own.
- */
- CDesC16ArrayFlat* iScreensaverFilenameArr;
-
- /*
- * Array of screensaver names.
- * Own.
- */
- CDesC16ArrayFlat* iScreensaverNameArr;
-
- /*
- * Array of screensaver capabilities.
- */
- RArray<TInt> iScreensaverCapsArr;
-
- /*
- * Active screensaver information.
- * Own.
- */
- CPslnScreenSaverInfo* iScreenSaverInfo;
-
- /*
- * A handle to a dynamically loadable DLL.
- */
- RLibrary iWallpaperDll;
-
- /*
- * Loads Wallpaper Utils DLL dynamically to memory.
- * Allows use of the DLL through this pointer, but only for
- * methods implemented within the wrapper.
- * Own.
- */
- CPslnWallpaperUtilsLoader* iWallpaperSetter;
-
- /**
- * Listens to ECOM for screensaver plugin changes.
- * Own.
- */
- CPslnEcomListener* iScreenSaverListener;
-
- /*
- * A handle to a dynamically loadable DLL.
- */
- RLibrary iBrowserLaunchDll;
-
- /*
- * Loads Wallpaper Utils DLL dynamically to memory.
- * Allows use of the DLL through this pointer, but only for
- * methods implemented within the wrapper.
- * Own.
- */
- CPslnBrowserLaunchLoader* iBrowserLauncher;
-
- /*
- * Internal state of the class.
- */
- enum TPslnModelState
- {
- // initial state
- EPslnModelStateInitial = 0x00000000,
- // wallpaper dll has been loaded
- EPslnModelStateWallpaperDllLoaded = 0x00000001,
- // has the default enable CR key for transition effects been read
- EPslnModelStateTransitionEnableCRKeyRead = 0x00000002,
- // is skin being previewed
- EPslnModelStateSkinPreviewed = 0x00000004,
- // browser launch dll has been loaded
- EPslnModelStateBrowserLaunchDllLoaded = 0x00000008,
- // localized skin names have been loaded
- EPslnModelStateSkinNamesLoaded = 0x00000010
- };
- TBitFlags iInternalState;
-
- /**
- * Default mask for enable transition effects.
- */
- TInt iEffectsDefaultEnableMask;
- };
-
-#endif // C_PSLNMODEL_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/inc/bctestdomnotifierview.h Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/inc/bctestdomnotifierview.h Mon May 03 12:45:33 2010 +0300
@@ -33,7 +33,6 @@
*/
class CBCDomainTestNotifierView : public CAknView
{
- friend class CBCDomainTestNotifierCase;
public: // Constructors and destructor
/**
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/sis/bctestdomnotifier.pkg Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/sis/bctestdomnotifier.pkg Mon May 03 12:45:33 2010 +0300
@@ -13,7 +13,7 @@
;
; Description:
;
-; bctesttempalte.pkg
+; bctestdomnotifier.pkg
; Languages
&EN
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/src/bctestdomnotifiercase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/src/bctestdomnotifiercase.cpp Mon May 03 12:45:33 2010 +0300
@@ -22,6 +22,7 @@
#include <AknLayout2ScalableDecode.h>
#include <eikcolib.h>
+#include <badesca.h>
#include <w32std.h>
#include <coecntrl.h>
#include <eikenv.h>
@@ -62,15 +63,17 @@
#include <AknPhoneNumberEditor.h>
#include <aknnoteattributes.h>
#include <eikdialg.h>
+#include <eikmenup.h>
#include <bctestdomnotifier.rsg>
-#include "PslnModel.h"
#include "bctestdomnotifiercase.h"
#include "bctestdomnotifiercontainer.h"
#include "bctestdomnotifier.hrh"
#include "bctestdomnotifierview.h"
#include "bctestdomnotifierapp.h"
+_LIT( KCAknNotifierAppServerAppUi, "App server error" );
+
// ======== MEMBER FUNCTIONS ========
// ---------------------------------------------------------------------------
// Symbian 2nd static Constructor
@@ -122,7 +125,7 @@
{
// Add script as your need.
AddTestL( DELAY(1), LeftCBA, KeyOK, LeftCBA, Down, KeyOK, LeftCBA, Down,
- Down, KeyOK, RightCBA, LeftCBA, Down, Down, Down, KeyOK, RightCBA,
+ Down, KeyOK, DELAY(3), RightCBA, LeftCBA, Down, Down, Down, KeyOK, DELAY(3), RightCBA,
TEND );
}
@@ -146,13 +149,15 @@
TestFunctionL();
break;
case EBCTestCmdOutline2:
- TestSignalL();
+// TestSignalL() has some problem, so comment it currently.
+// TestSignalL();
break;
case EBCTestCmdOutline3:
TestOtherL();
break;
case EBCTestCmdOutline4:
TestPhoneL();
+ break;
default:
break;
}
@@ -205,32 +210,31 @@
rfile.Create( fs, KFilePath, EFileWrite | EFileShareAny );
CleanupClosePushL( rfile );
- CAiwGenericParamList* aiwparalist = CAiwGenericParamList::NewL();
- CPslnModel* psmodel= CPslnModel::NewL();
- MAknServerAppExitObserver* serappexit =
- static_cast<MAknServerAppExitObserver*> ( psmodel );
-
- CAknOpenFileService* fileserv = NULL;
- TRAPD( err, fileserv = CAknOpenFileService::NewL(
- KFilePath, serappexit, aiwparalist ) );
- _LIT( KCAknOpenFileServiceNewL, "CAknOpenFileService::NewL()" );
- AssertTrueL( ETrue, KCAknOpenFileServiceNewL );
-
-
- TUid KUid = { 0xA0004001 };
- TInt err1;
- TRAP( err1, fileserv = CAknOpenFileService::NewL(
- KUid, rfile, serappexit, aiwparalist ) );
- _LIT( KCAknOpenFileServiceNewLOver, "CAknOpenFileService::NewL()" );
- AssertTrueL( ETrue, KCAknOpenFileServiceNewLOver );
- CleanupStack::PopAndDestroy();
- delete fileserv;
- delete psmodel;
- delete aiwparalist;
-
-
- _LIT( KCAknNotifierAppServerAppUi,"CAknNotifierAppServerAppUi" );
-
+// CAiwGenericParamList* aiwparalist = CAiwGenericParamList::NewL();
+// CPslnModel* psmodel= CPslnModel::NewL();
+// MAknServerAppExitObserver* serappexit =
+// static_cast<MAknServerAppExitObserver*> ( psmodel );
+//
+// CAknOpenFileService* fileserv = NULL;
+// TRAPD( err, fileserv = CAknOpenFileService::NewL(
+// KFilePath, serappexit, aiwparalist ) );
+// _LIT( KCAknOpenFileServiceNewL, "CAknOpenFileService::NewL()" );
+// AssertTrueL( ETrue, KCAknOpenFileServiceNewL );
+// delete fileserv;
+// fileserv = NULL;
+//
+// TUid KUid = { 0xA0004001 };
+// TInt err1;
+// TRAP( err1, fileserv = CAknOpenFileService::NewL(
+// KUid, rfile, serappexit, aiwparalist ) );
+// _LIT( KCAknOpenFileServiceNewLOver, "CAknOpenFileService::NewL()" );
+// AssertTrueL( ETrue, KCAknOpenFileServiceNewLOver );
+//
+// CleanupStack::PopAndDestroy(); // rfile
+// delete fileserv;
+// delete psmodel;
+// delete aiwparalist;
+// _LIT( KCAknNotifierAppServerAppUi,"CAknNotifierAppServerAppUi" );
// AknNotiferAppServerApplication.h
CBCNotifierAppServer *notifierapp = new ( ELeave )
@@ -254,8 +258,8 @@
_LIT( KSetManager, "SetManager" );
_LIT( KEikSrvBlocked, "EikSrvBlocked" );
- CAknNotifierAppServerAppUi* notifier = ( CAknNotifierAppServerAppUi* )
- CEikonEnv::Static()->AppUi();
+ CAknNotifierAppServerAppUi* notifier = static_cast<CAknNotifierAppServerAppUi*>
+ ( CEikonEnv::Static()->AppUi() );
notifier->CAknNotifierAppServerAppUi::HandleCommandL( EEikCmdCanceled );
AssertTrueL( ETrue, KHandleCommandL );
@@ -286,13 +290,9 @@
notifier->EikSrvBlocked();
AssertTrueL( ETrue, KEikSrvBlocked );
-
- /*
- notifier = new ( ELeave ) CAknNotifierAppServerAppUi();
- CleanupStack::PushL( notifier );
- notifier->SuppressAppSwitching( EFalse );
- CleanupStack::Pop(); */
-
+ //notifier->SuppressAppSwitching( ETrue );
+ //_LIT( KSuppressAppSwitching, "SuppressAppSwitching" );
+ //AssertTrueL( ETrue, KSuppressAppSwitching );
// AknNotiferAppServer.h
_LIT( KNotiServer, "CAknNotifierAppServer");
@@ -304,15 +304,23 @@
_LIT( KSetImplementationFinderL, "SetImplementationFinderL");
_LIT( KUnbalanceReferenceCountForNotif, "UnbalanceReferenceCountForNotif");
_LIT( KCreateServiceL, "CreateServiceL");
- _LIT( KLoadNotifiersL, "LoadNotifiersL");
_LIT( KCAknNotifierAppServerDestroy, "SCAknNotifierAppServerDestroy" );
_LIT( KUpdateNotifierAndGetResponseL, "UpdateNotifierAndGetResponseL" );
-
+////////////////////////////////////////////////////////////////////////////////////////////////
CAknNotifierAppServer *notiserver = new ( ELeave ) CAknNotifierAppServer();
CleanupStack::PushL( notiserver );
AssertNotNullL( notiserver, KNotiServer );
+
+ _LIT(KLabName, "ictsuiutilsnotif.dll");
+ //_LIT(KLabName, "aknoldstylenotif.dll");
+ notiserver->AppendNotifierLibNameL( KLabName );
+ AssertTrueL( ETrue,KAppendNotifierLibNameL );
+
+ //TRAP( err, notiserver->LoadNotifiersL() );
+ //AssertTrueL( ETrue,KLoadNotifiersL );
TBuf8<32> bf;
+ TInt err;
TRAP( err,notiserver->StartNotifierL(
KUidBCDomainTestNotifier, bf, bf ) );
AssertTrueL( ETrue,KStartNotifierL );
@@ -330,9 +338,6 @@
KUidBCDomainTestNotifier, bf, msg, replyslot ) );
AssertTrueL( ETrue, KStartNotifierAndGetResponseL );
- TBuf<32> libaryname;
- notiserver->AppendNotifierLibNameL( libaryname );
- AssertTrueL( ETrue,KAppendNotifierLibNameL );
MNotifLibraryOwningServer* pFinder = NULL;
notiserver->SetImplementationFinderL( pFinder );
@@ -342,21 +347,18 @@
KUidBCDomainTestNotifier, EFalse );
AssertTrueL( ETrue,KUnbalanceReferenceCountForNotif );
- //notifier->UpdateNotifierAndGetResponseL( ## Since 3.2
- // KUidBCDomainTestNotifier, bf, msg, replyslot );
-
TRAP( err, notiserver->CreateServiceL( KUidBCDomainTestNotifier ) );
AssertTrueL( ETrue, KCreateServiceL );
- TRAP( err, notiserver->LoadNotifiersL() );
- AssertTrueL( ETrue,KLoadNotifiersL );
+
TRAP( err, notiserver->UpdateNotifierAndGetResponseL(
KUidBCDomainTestNotifier, bf, msg, replyslot ) );
AssertTrueL( ETrue, KUpdateNotifierAndGetResponseL );
+
CleanupStack::PopAndDestroy( notiserver );
AssertTrueL( ETrue,KCAknNotifierAppServerDestroy );
-
+////////////////////////////////////////////////////////////////////////////////////
// AknNotifierAppServerSession.h
// aknnotifiercontrollerutilities.h
@@ -511,7 +513,6 @@
_LIT( KSInfo, "Info" );
_LIT( KNotifierCapabilites, "NotifierCapabilites" );
_LIT( KCancel, "Cancel" );
- _LIT( KPopAndDestroy, "PopAndDestroy" );
_LIT( KNewServerRequestL, "NewServerRequestL" );
_LIT( KAsyncMessageCompleted, "AsyncMessageCompleted" );
@@ -586,14 +587,12 @@
CleanupStack::PopAndDestroy( notimessa );
notiwrap->Cancel();
- AssertTrueL( ETrue,KCancel );
+ AssertTrueL( ETrue, KCancel );
-
-
-
-
- CleanupStack::PopAndDestroy( notiwrap );
- AssertTrueL( ETrue,KPopAndDestroy );
+ notiwrap->Release();
+ _LIT( KRelease, "Release" );
+ AssertTrueL( ETrue, KRelease );
+ CleanupStack::Pop( notiwrap );
TUid ntfUid = { 0x10aa0d10 };
CAknNotifierWrapper* notifierWrap =
@@ -614,10 +613,7 @@
_LIT( KCAknNotifierWrapper2, "CAknNotifierWrapper::StartNotifierL(2)" );
AssertTrueL( ETrue, KCAknNotifierWrapper2 );
-
-
// AknSignalNotify.h
- //NewL & constructor are Privat
}
// ---------------------------------------------------------------------------
@@ -626,6 +622,7 @@
//
void CBCDomainTestNotifierCase::TestOtherL()
{
+
// AknMarqueeControl.h
_LIT( KCAknMarqueeControl, "CAknMarqueeControl" );
@@ -633,7 +630,6 @@
_LIT( KReset, "Reset" );
_LIT( KStop, "Stop" );
_LIT( KIsMarqueeOn, "IsMarqueeOn" );
- _LIT( KDrawText,"DrawText" );
_LIT( KUseLogicalToVisualConversion, "UseLogicalToVisualConversion" );
_LIT( KSetSpeedInPixels, "SetSpeedInPixels" );
_LIT( KSetDelay, "SetDelay" );
@@ -677,11 +673,9 @@
CWindowGc& gc = marcontrol->SystemGc();
marcontrol->DrawText( gc, rect, txt, baselineoffset, align, *font );
- AssertTrueL( ETrue, KDrawText );
- iContainer->DrawNow();
- AssertTrueL( ETrue, KDrawText );
+ //marcontrol->DrawText( gc, rect, textlayout, txt, font );
- CleanupStack::PopAndDestroy();
+ CleanupStack::PopAndDestroy( marcontrol );
AssertTrueL( ETrue, KSCAknMarqueeControlDestroy );
// AknMediatorFacade.h
@@ -704,6 +698,7 @@
_LIT( KGlobalAknMediatorFacade, "Global::AknMediatorFacade" );
AssertTrueL( ETrue, KGlobalAknMediatorFacade );
+
TInt& index = mediatorFacade->DialogIndex();
index = 1;
mediatorFacade->IssueCommand();
@@ -718,54 +713,71 @@
_LIT( KCMFacadeSetObserver, "CAknMediatorFacade::SetObserver()" );
AssertTrueL( ETrue, KCMFacadeSetObserver );
- CleanupStack::PopAndDestroy( 2 );// mediatorFacade, dialog
+ CleanupStack::PopAndDestroy( mediatorFacade );
+ CleanupStack::PopAndDestroy( dialog );
+
// aknlistloadertfx.h
_LIT( KTfxApiInternal, "TfxApiInternal" );
_LIT( KTfxApi, "TfxApi" );
_LIT( KRemoveTfxGc, "RemoveTfxGc" );
- _LIT( KCreateTfxGc, "CreateTfxGc" );
+ _LIT( KInvalidateAll, "InvalidateAll" );
CAknListLoader::TfxApiInternal( &gc );
AssertTrueL( ETrue, KTfxApiInternal );
CAknListLoader::TfxApi( &gc );
AssertTrueL( ETrue, KTfxApi );
- CAknListLoader::RemoveTfxGc( &gc );
- AssertTrueL( ETrue, KRemoveTfxGc );
+
CAknDialog* dlg = new ( ELeave ) CAknDialog();
- CEikMenuPane* menupane = NULL;
+ CleanupStack::PushL( dlg );
+ CEikMenuPane* menupane = new (ELeave) CEikMenuPane(dlg);
+ CleanupStack::PushL( menupane );
TInt topindex = 0;
TInt itemsthatfitinview = 1;
CAknListLoader::CreateTfxGc( *menupane, topindex, itemsthatfitinview );
- CDesCArray* txtarray = CEikonEnv::Static()->ReadDesCArrayResourceL(
- R_BCTESTDOMNOTIFIER_CBA_OPTIONS_NEXT );
- CleanupStack::PushL( txtarray );
+
+ //CDesCArray* txtarray = new (ELeave) CDesCArraySeg(1);
+ //CleanupStack::PushL( txtarray );
+ //TBuf<32> item( KStart );
+ //txtarray->AppendL( item );
+
- CTextListBoxModel* model = new( ELeave ) CTextListBoxModel();
- CleanupStack::PushL( model );
- model->ConstructL( txtarray );
+ //CTextListBoxModel* model = new( ELeave ) CTextListBoxModel();
+ //CleanupStack::PushL( model );
+ //model->ConstructL();
+
- CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer();
- CleanupStack::PushL( drawer );
- drawer->ConstructL( CEikonEnv::Static()->NormalFont() );
+ //CTextListItemDrawer* drawer = new( ELeave ) CTextListItemDrawer();
+ //CleanupStack::PushL( drawer );
+ //drawer->ConstructL( CEikonEnv::Static()->NormalFont() );
+
+ //CEikListBox* lstbox = new ( ELeave ) CEikListBox();
+ //CleanupStack::PushL( lstbox );
- CEikListBox* lstbox = new ( ELeave ) CEikListBox();
- CleanupStack::PushL( lstbox );
+ //TGulBorder tborder( TGulBorder::ESingleGray );
+ //lstbox->ConstructL( iContainer );
+ // EAknListBoxSelectionList | EAknListBoxViewerFlags );
- TGulBorder tborder( TGulBorder::ESingleGray );
- lstbox->ConstructL( model, drawer, iContainer, tborder,
- EAknListBoxSelectionList | EAknListBoxViewerFlags );
+ //CAknListLoader::CreateTfxGc( *lstbox );
+ //AssertTrueL( ETrue, KCreateTfxGc );
- CAknListLoader::CreateTfxGc( *lstbox );
- AssertTrueL( ETrue, KCreateTfxGc );
-
- CleanupStack::PopAndDestroy( lstbox );
- CleanupStack::Pop( drawer );
- CleanupStack::Pop( model );
- CleanupStack::Pop( txtarray );
- delete dlg;
-
+
+
+ CAknListLoader::RemoveTfxGc( &gc );
+ AssertTrueL( ETrue, KRemoveTfxGc );
+
+
+ CAknListLoader::InvalidateAll();
+ AssertTrueL( ETrue, KInvalidateAll );
+
+ //CleanupStack::PopAndDestroy( lstbox );
+ //CleanupStack::PopAndDestroy( drawer );
+ //CleanupStack::PopAndDestroy( model );
+ //CleanupStack::PopAndDestroy( txtarray );
+
+ CleanupStack::PopAndDestroy( menupane);
+ CleanupStack::PopAndDestroy( dlg );
// AknReadingConverter.h
_LIT( KCReadingConverter, "CReadingConverter" );
_LIT( KHandleCompletionOfTransactionL, "HandleCompletionOfTransactionL" );
@@ -774,6 +786,7 @@
_LIT( KSetReadingEditor, "SetReadingEditor" );
_LIT( KSetMainEditor, "SetMainEditor" );
+
CReadingConverter* rdconver = CReadingConverter::NewL();
CleanupStack::PushL( rdconver );
AssertNotNullL( rdconver, KCReadingConverter );
@@ -799,19 +812,17 @@
AssertTrueL( ETrue, KSetMainEditor );
CleanupStack::PopAndDestroy( rdconver );
- AssertTrueL( ETrue, KSetMainEditor );
// aknMemoryCardDialog.h
_LIT( KCAknMemoryCardDialog, "CAknMemoryCardDialog" );
_LIT( KSetSelfPointer, "SetSelfPointer" );
_LIT( KUnlockCardLD, "UnlockCardLD" );
- _LIT( KNotifierArray, "notifierarray " );
+ _LIT( KNotifierArray, "NotifierArray" );
CAknMemoryCardDialog* memdlg = CAknMemoryCardDialog::NewLC();
AssertTrueL( ETrue, KCAknMemoryCardDialog );
CArrayPtr<MEikSrvNotifierBase2>* notifies = NotifierArray();
- //notifies = NotifierArray();
AssertTrueL( ETrue, KNotifierArray );
memdlg->SetSelfPointer( &memdlg );
@@ -868,6 +879,7 @@
TBuf<32> tbuf( KNumberGroup );
const CFont *tfont = CEikonEnv::Static()->NormalFont();
CArrayFix<TPtrC>* ary = new ( ELeave ) CArrayFixFlat<TPtrC>( 32 );
+ CleanupStack::PushL( ary );
TPtrC tptr( tbuf );
AknPhoneNumberTextUtils::WrapPhoneNumberToArrayL(
@@ -877,10 +889,10 @@
AssertTrueL( ETrue, KClipLineOnLeft );
AknPhoneNumberTextUtils::CharsThatFitOnRight( tarea, 2, *tfont );
AssertTrueL( ETrue, KCharsThatFitOnRight );
- delete ary;
+ CleanupStack::PopAndDestroy( ary );
+ //delete ary;
// AknPhoneNumberEditor.h
- _LIT( KCAknPhoneNumberEditor, "CAknPhoneNumberEditor" );
_LIT( KConstructFromResourceL, "ConstructFromResourceL" );
_LIT( KFormat, "Format" );
_LIT( KWouldTextFitInFormat, "WouldTextFitInFormat" );
@@ -890,7 +902,6 @@
_LIT( KSizeChanged, "SizeChanged" );
_LIT( KMinimumSize, "MinimumSize" );
_LIT( KInputCapabilities, "InputCapabilities" );
- _LIT( KDrawNow, " draw() " );
_LIT( KTextLength, "TextLength" );
_LIT( KCursorPos, "CursorPos" );
_LIT( KSelectionLength, "SelectionLength" );
@@ -916,18 +927,25 @@
_LIT( KCAknPhoneNumberEditorDestroy, "KCAknPhoneNumberEditorDestroy" );
_LIT( KCAknPhoneNumberEditorDraw, "Draw" );
- CAknPhoneNumberEditor* phonenumeditor = new ( ELeave ) CAknPhoneNumberEditor;
- AssertNotNullL( phonenumeditor,KCAknPhoneNumberEditor );
+ CAknPhoneNumberEditor* phonenumeditor =
+ new ( ELeave ) CAknPhoneNumberEditor;
+ CleanupStack::PushL( phonenumeditor );
+ //AssertNotNullL( phonenumeditor,KCAknPhoneNumberEditor );
phonenumeditor->SetContainerWindowL( *iContainer );
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC( reader,
- R_PHONEEDAPP_RESEDIT );
+ R_PHONEEDAPP_RESEDIT );
+
+
phonenumeditor->ConstructFromResourceL( reader );
AssertTrueL( ETrue,KConstructFromResourceL );
+ CleanupStack::PopAndDestroy();//reader
+
phonenumeditor->Format( 0 );
AssertTrueL( ETrue, KFormat );
- iContainer->SetControl( phonenumeditor ); //Draw() function will be called.
+ //Draw() function will be called.
+ iContainer->SetControl( phonenumeditor );
AssertTrueL( ETrue, KCAknPhoneNumberEditorDraw );
TInt tcount = phonenumeditor->CountFormats();
@@ -945,8 +963,6 @@
AssertTrueL( ETrue, KMinimumSize );
phonenumeditor->InputCapabilities();
AssertTrueL( ETrue, KInputCapabilities );
- phonenumeditor->DrawNow();
- AssertTrueL( ETrue, KDrawNow );
phonenumeditor->TextLength();
AssertTrueL( ETrue, KTextLength );
@@ -967,22 +983,25 @@
phonenumeditor->GetText( tarea );
AssertTrueL( ETrue, KGetText );
HBufC* temp = phonenumeditor->GetTextInHBufL();
+ CleanupStack::PushL( temp );
AssertTrueL( ETrue, KGetTextInHBufL );
- delete temp;
+ CleanupStack::PopAndDestroy( temp );
phonenumeditor->SetTextL( &tarea );
AssertTrueL( ETrue, KSetTextL );
phonenumeditor->SetText( tarea );
AssertTrueL( ETrue, KSetText );
+
phonenumeditor->CancelFepTransaction();
AssertTrueL( ETrue, KCancelFepTransaction );
phonenumeditor->UpdateScrollBarsL();
AssertTrueL( ETrue, KUpdateScrollBarsL );
CEikScrollBarFrame* pScrBar = phonenumeditor->CreateScrollBarFrameL();
+ CleanupStack::PushL( pScrBar );
AssertTrueL( ETrue, KCreateScrollBarFrameL );
- delete pScrBar;
+ CleanupStack::PopAndDestroy( pScrBar );
phonenumeditor->LineCursorWidth();
AssertTrueL( ETrue, KLineCursorWidth );
phonenumeditor->Margins();
@@ -1001,7 +1020,9 @@
phonenumeditor->FocusChanged( EDrawNow );//Draw() function will be called.
AssertTrueL( ETrue, KFocusChanged );
- CleanupStack::PopAndDestroy();
+ iContainer->ResetControl();
+ CleanupStack::Pop();
+ //CleanupStack::PopAndDestroy();
AssertTrueL( ETrue, KCAknPhoneNumberEditorDestroy );
TestFormatL();
@@ -1013,7 +1034,6 @@
//
void CBCDomainTestNotifierCase::TestFormatL()
{
-
_LIT( KCAknPhoneNumberEditor, "CAknPhoneNumberEditor" );
_LIT( KConstructL, "ConstructL" );
_LIT( KString, "..." );
@@ -1027,7 +1047,8 @@
CAknPhoneNumberEditor* phonenumeditor = new ( ELeave ) CAknPhoneNumberEditor;
AssertNotNullL( phonenumeditor, KCAknPhoneNumberEditor );
- phonenumeditor->ConstructL( 30, 3, 3, KString );
+ phonenumeditor->SetContainerWindowL( *iContainer );
+ phonenumeditor->ConstructL( 30, 3, 3, KString);
AssertTrueL( ETrue, KConstructL );
const CFont *tfont = CEikonEnv::Static()->NormalFont();
@@ -1044,15 +1065,15 @@
CAknPhoneNumberEditor::TFormat readformat( reader );
AssertTrueL( ETrue, KTFormat );
- CleanupStack::PopAndDestroy( );
+ CleanupStack::PopAndDestroy( );//reader
+ delete phonenumeditor;
AssertTrueL( ETrue, KCAknPhoneNumberEditorDestroy );
- delete phonenumeditor;
+
CAknNoteAttributes::GetSkinnedBitmapID( 0 );
AssertTrueL( ETrue, KGetSkinnedBitmapID );
//aknmemorycarddialog.h
-
CAknMemoryCardDialog* memdlg = CAknMemoryCardDialog::NewLC();
AssertNotNullL( memdlg, KCAknMemoryCardDialog );
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/src/bctestdomnotifiercontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomnotifier/src/bctestdomnotifiercontainer.cpp Mon May 03 12:45:33 2010 +0300
@@ -16,9 +16,6 @@
*/
#include <eikenv.h>
-#include <AknMarqueeControl.h>
-#include <aknlayoutscalable_avkon.cdl.h>
-
#include "bctestdomnotifiercontainer.h"
#define KAknAtListGray TRgb( 0xaaaaaa )
@@ -67,17 +64,6 @@
gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
gc.DrawRect( aRect );
- _LIT( KStart, "DRAW" );
- const TBuf<32> txt( KStart );
- TRect rect( TRect(1,1,99,99) );
- const CFont* font = CEikonEnv::Static()->NormalFont();
- TAknTextComponentLayout textlayout;
- CAknMarqueeControl* marcontrol = CAknMarqueeControl::NewL();
- CleanupStack::PushL( marcontrol );
-
- marcontrol->DrawText( gc, rect, textlayout, txt, font );
- CleanupStack::PopAndDestroy();
-
}
// ---------------------------------------------------------------------------
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdompopup/src/bctestdompopupcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdompopup/src/bctestdompopupcase.cpp Mon May 03 12:45:33 2010 +0300
@@ -477,7 +477,7 @@
mapdlg->HandleDialogPageEventL( MEikDialogPageObserver::EUnknownType );
AssertTrueL( ETrue, KHandleDialogPageEventL );
- mapdlg->HandleResourceChange( KEikDefaultCursorWidth );
+ mapdlg->HandleResourceChange( 1 );
AssertTrueL( ETrue, KHandleResourceChange );
mapdlg->DisableRecentCharsRow();
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdompopup/src/bctestdompopupimp.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdompopup/src/bctestdompopupimp.cpp Mon May 03 12:45:33 2010 +0300
@@ -47,7 +47,7 @@
//
TInt CAknCharMap::CharacterCase()
{
- return iCharCase;
+ return iSpecialCharCase;
}
// -----------------------------------------------------------------------------
--- a/uifw/AvKon/tsrc/bc/bctestdom3.2/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom3.2/group/bld.inf Mon May 03 12:45:33 2010 +0300
@@ -17,15 +17,13 @@
PRJ_EXPORTS
-../../BCTestLauncher/group/config_dom32.xml /epoc32/winscw/c/BCTestLog/config.xml
+../../bctestlauncher/group/config_dom32.xml /epoc32/winscw/c/BCTestLog/config.xml
PRJ_MMPFILES
../../bctestutil/group/bctestutil.mmp
../../bctestlauncher/group/bctestlauncher.mmp
-../bctestdomavkonpsln/group/bctestdomavkonpsln.mmp
-
../bctestdomaiwakn/group/bctestdomaiwakn.mmp
../bctestdomcdl/group/bctestdomcdl.mmp
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/group/bctestdomavkonpsln.mmp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-/*
-* 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 definition file for project bctestdomavkonpsln
-*
-*/
-
-#include <platform_paths.hrh>
-TARGET bctestdomavkonpsln.exe
-TARGETTYPE exe
-UID 0x0 0xA00040A1
-
-VENDORID 0x101FB657
-CAPABILITY NetworkServices LocalServices Location ReadUserData \
- WriteUserData ReadDeviceData WriteDeviceData SwEvent \
- UserEnvironment
-
-TARGETPATH sys/bin
-
-START RESOURCE bctestdomavkonpsln.rss
-HEADER
-TARGETPATH resource/apps
-END // RESOURCE
-
-LANG 01
-
-SOURCEPATH ../Src
-SOURCE bctestdomavkonpslnapp.cpp
-SOURCE bctestdomavkonpslndocument.cpp
-SOURCE bctestdomavkonpslnappui.cpp
-SOURCE bctestdomavkonpslnview.cpp
-SOURCE bctestdomavkonpslncontainer.cpp
-SOURCE bctestdomavkonpslnext.cpp
-SOURCE bctestdomakncase.cpp
-SOURCE bctestdomeikcase.cpp
-SOURCE bctestdomfindcase.cpp
-SOURCE bctestdomjplangcase.cpp
-SOURCE bctestdompslncase.cpp
-
-USERINCLUDE . ../inc
-USERINCLUDE ../../../bctestutil/inc
-
-APP_LAYER_SYSTEMINCLUDE
-SYSTEMINCLUDE MW_LAYER_PLATFORM_EXPORT_PATH(uikon)
-
-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 aknnotify.lib
-LIBRARY eikalert.lib
-LIBRARY aknnotifyplugin.lib
-LIBRARY akntransitionutils.lib
-LIBRARY eikdlg.lib
-LIBRARY eiksrvui.lib
-LIBRARY commonui.lib
-LIBRARY findutil.lib
-LIBRARY aknicon.lib
-LIBRARY eikctl.lib
-LIBRARY form.lib
-LIBRARY uiklaf.lib
-LIBRARY egul.lib
-LIBRARY etext.lib
-LIBRARY jplangutil.lib
-LIBRARY numbergrouping.lib
-LIBRARY pslnframework.lib
-LIBRARY estor.lib
-LIBRARY commonengine.lib
-LIBRARY xnodt.lib
-LIBRARY ecom.lib
-LIBRARY eiksrvc.lib
-LIBRARY servicehandler.lib
-LIBRARY sortutil.lib
-
-START RESOURCE ../group/bctestdomavkonpsln_reg.rss
-DEPENDS bctestdomavkonpsln.rsg
-HEADER
-TARGETPATH /private/10003a3f/apps
-END
-
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/group/bctestdomavkonpsln.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,337 +0,0 @@
-/*
-* 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: resources for the module
-*
-*/
-
-
-// RESOURCE IDENTIFIER
-NAME BCDO
-
-// INCLUDES
-
-#include <eikon.rh>
-#include <eikon.rsg>
-#include <avkon.hrh>
-#include <avkon.mbg>
-#include <avkon.rsg>
-#include <avkon.rh>
-#include <avkonicons.hrh>
-
-#include <appinfo.rh>
-
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpsln.loc"
-
-// CONSTANTS
-
-// MACROS
-#define CHECKBOX_SETTING_PAGE_NUMBER 1
-
-
-// RESOURCE DEFINITIONS
-//-----------------------------------------------------------------------------
-//
-// RSS_SIGNATURE
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE RSS_SIGNATURE
- {
- }
-
-//-----------------------------------------------------------------------------
-//
-// TBUF16
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE TBUF16
- {
- buf = qtn_app_buf;
- }
-
-//-----------------------------------------------------------------------------
-//
-// EIK_APP_INFO
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE EIK_APP_INFO
- {
- menubar = r_bctestdomavkonpsln_menubar_main;
- cba = r_bctestdomavkonpsln_cba_options_next;
- }
-
-// ---------------------------------------------------------
-// Provide Caption and Icon Info for Scalable UI
-//
-// ---------------------------------------------------------
-//
-RESOURCE LOCALISABLE_APP_INFO r_bctestdomavkonpsln_localisable_app_info
- {
- short_caption = qtn_apps_tavl_grid;
-
- caption_and_icon =
- CAPTION_AND_ICON_INFO
- {
- caption = qtn_apps_tavl_list;
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_view
-// AVKON_VIEW for CBCTestDomAvkonPslnView
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_VIEW r_bctestdomavkonpsln_view
- {
- menubar = r_bctestdomavkonpsln_menubar_main;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_menubar
-// MenuBar
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_BAR r_bctestdomavkonpsln_menubar_main
- {
- titles =
- {
- MENU_TITLE
- {
- menu_pane = r_bctestdomavkonpsln_menu;
- },
- MENU_TITLE
- {
- menu_pane = r_bctestdomavkonpsln_case_menu;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_case_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomavkonpsln_case_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EBCTestCmdOutline1;
- txt = qtn_bctestdomavkonpsln_outline1;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline2;
- txt = qtn_bctestdomavkonpsln_outline2;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline3;
- txt = qtn_bctestdomavkonpsln_outline3;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline4;
- txt = qtn_bctestdomavkonpsln_outline4;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline5;
- txt = qtn_bctestdomavkonpsln_outline5;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomavkonpsln_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EProgCmdAutoTest;
- txt = qtn_bctestdomavkonpsln_autotest;
- },
- MENU_ITEM // Menu "Exit"
- {
- command = EAknCmdExit;
- txt = qtn_bctestdomavkonpsln_menu_exit;
- }
- };
- }
-
-// ----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_cba_options_next
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-
-RESOURCE CBA r_bctestdomavkonpsln_cba_options_next
- {
- buttons =
- {
- CBA_BUTTON
- {
- id=EAknSoftkeyOptions;
- txt = text_softkey_option;
- },
- AVKON_CBA_BUTTON
- {
- id = EBCTestDomainCbaCmdNext;
- txt = qtn_bctestdomavkonpsln_cba_next;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_avkon_content
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_STYLUSACTIVATEDPOPUP_CONTENT r_bctestdomavkonpsln_avkon_content
- {
- titletext = qtn_content_title;
- infotext = qtn_content_info;
- cmdlinks =
- {
- AVKON_STYLUSACTIVATEDPOPUP_LINK
- {
- linkid = EAknStylusPopUpCmdLink1;
- linktext = qtn_content_link_txt;
- },
- AVKON_STYLUSACTIVATEDPOPUP_LINK
- {
- linkid = EAknStylusPopUpCmdLink2;
- linktext = qtn_content_link_txt;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_checkbox_setting_page
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_SETTING_PAGE r_bctestdomavkonpsln_checkbox_setting_page
- {
- number = CHECKBOX_SETTING_PAGE_NUMBER;
- label = qtn_aknatlist_multi_title;
- type = EAknSetListBox;
- editor_resource_id = r_bctestdomavkonpsln_listbox;
- menubar = r_bctestdomavkonpsln_menubar_main;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_listbox
-// ListBox( Single )
-//
-//-----------------------------------------------------------------------------
-//
-
-RESOURCE LISTBOX r_bctestdomavkonpsln_listbox
- {
- array_id = r_bctestdomavkonpsln_item_array;
- flags = EAknListBoxSelectionList;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_item_array
-// Items array for ListBox( Single 3 )
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE ARRAY r_bctestdomavkonpsln_item_array
- {
- items =
- {
- LBUF
- {
- txt = qtn_list_item_first;
- },
- LBUF
- {
- txt = qtn_list_item_second;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_editor
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_INTEGER_EDWIN r_bctestdomavkonpsln_editor
- {
- maxlength = 0;
- min = -99999999;
- max = 99999999;
- unset_value=-100000000;
- }
-
-// ----------------------------------------------------------------------------
-//
-// r_bctestdomavkonpsln_avkon_dynamic_volume_control
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-RESOURCE DYNAMIC_VOLUME r_bctestdomavkonpsln_avkon_dynamic_volume_control
- {
- flags = EDynRangePopupVolumeControl;
- value = 30; // Has to have a value, otherwise crashes
- bmpfile = AVKON_BMP_FILENAME;
- bmpid = EMbmAvkonQgn_indi_speaker_active;
- bmpmask = EMbmAvkonQgn_indi_speaker_active_mask;
- minvalue = 0;
- maxvalue = 40;
- }
-
-// ----------------------------------------------------------------------------
-//
-// NAVI_LABEL r_bctest_avkonpsln_label
-// ?description
-//
-// ----------------------------------------------------------------------------
-//
-RESOURCE NAVI_LABEL r_bctest_avkonpsln_label
- {
- txt = qtn_bctestdomavkonpsln_cba_next;
- }
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/group/bctestdomavkonpsln_reg.rss Fri Apr 16 15:13:44 2010 +0300
+++ /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:
-*
-*/
-#include <appinfo.rh>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomavkonpsln.loc"
-
-UID2 KUidAppRegistrationResourceFile
-UID3 0xA00040A1 // application UID
-
-RESOURCE APP_REGISTRATION_INFO
- {
- app_file = qtn_apps_name;
- localisable_resource_file = qtn_localization_filename;
- localisable_resource_id = R_BCTESTDOMAVKONPSLN_LOCALISABLE_APP_INFO;
- hidden = KAppIsHidden;
- embeddability = KAppNotEmbeddable;
- group_name = qtn_group_name;
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-/*
-* 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_MMPFILES
-
-bctestdomavkonpsln.mmp
-
-// End of File
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomakncase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,139 +0,0 @@
-/*
-* 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_BCTESTDOMAKNDOMAINCASE_H
-#define C_BCTESTDOMAKNDOMAINCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomAknCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomAknCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomAknCase();
-
-// 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();
-
- /**
- * TestAknSkinnableClockL
- */
- void TestSkinnableClockL();
-
- /**
- * TestAknSmallIndicatorL
- */
- void TestSmallIndicatorL();
-
- /**
- * TestAknSoftNotifierL
- */
- void TestSoftNotifierL();
-
- /**
- * TestAknStatuspaneUtils
- */
- void TestStatuspaneUtilsL();
-
- /**
- * TestAknPopupContentL
- */
- void TestPopupContentL();
-
- /**
- * TestSyncDrawL
- */
- void TestSyncDrawL();
-
- /**
- * TestAknTaskListL
- */
- void TestTaskListL();
-
- /**
- * TestAknTransitionUtilsL
- */
- void TestTransitionL();
-
- /**
- * TestCameraSettingPageL
- */
- void TestCameraSettingPageL();
-
- /**
- * TestAknVolumePopupL
- */
- void TestAknVolumePopupL();
-
- /**
- * TestLafSystemFontL
- */
- void TestLafSystemFontL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomAknCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNCASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpsln.hrh Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
-* 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: resource header file
-*
-*/
-
-
-#ifndef C_BCTESTDOMAVKONPSLN_HRH
-#define C_BCTESTDOMAVKONPSLN_HRH
-
-enum TBCTestDomainMenuCommands
- {
- EBCTestCmdEmptyOutline = 0x6000,
- EBCTestCmdOutline1,
- EBCTestCmdOutline2,
- EBCTestCmdOutline3,
- EBCTestCmdOutline4,
- EBCTestCmdOutline5,
- EBCTestCmdMaxOutline,
- EProgCmdAutoTest
- };
-
-enum TBCTestDomainCba
- {
- EBCTestDomainCbaCmdNext = 0x6300
- };
-
-#endif // C_BCTESTDOMAVKONPSLN_HRH
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpsln.loc Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/*
-* 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: bctestdomavkonpsln localise file
-*
-*/
-
-
-// LOCALISATION STRINGS
-
-// Caption
-#define qtn_apps_tavl_list "bctestdomavkonpsln"
-#define qtn_apps_tavl_grid "bctestdomavkonpsln"
-
-// MenuBar
-#define qtn_bctestdomavkonpsln_menubar "Option"
-#define qtn_bctestdomavkonpsln_cba_next "Next"
-#define qtn_bctestdomavkonpsln_autotest "Autotest"
-#define qtn_bctestdomavkonpsln_menu_exit "Exit"
-
-// softkey
-#define text_softkey_option "Options"
-
-// outline
-#define qtn_bctestdomavkonpsln_outline1 "Outline01"
-#define qtn_bctestdomavkonpsln_outline2 "Outline02"
-#define qtn_bctestdomavkonpsln_outline3 "Outline03"
-#define qtn_bctestdomavkonpsln_outline4 "Outline04"
-#define qtn_bctestdomavkonpsln_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"
-
-//Constant
-#define qtn_content_link_txt "link"
-#define qtn_content_title "title"
-#define qtn_content_info "info"
-
-#define qtn_list_item_first "first"
-#define qtn_list_item_second "second"
-
-// registraton string
-#define qtn_apps_name "bctestdomavkonpsln"
-#define qtn_localization_filename "\\resource\\apps\\bctestdomavkonpsln"
-#define qtn_group_name "BCTest"
-
-#define qtn_app_buf "avkonpsln"
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslnapp.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNAPP_H
-#define C_BCTESTDOMAVKONPSLNAPP_H
-
-#include <aknapp.h>
-
-const TUid KUidBCTestDomain = { 0xA00040A1 }; // UID of the application.
-
-/**
-* CBCTestDomAvkonPslnApp class.
-* Provides factory to create concrete document object.
-*/
-class CBCTestDomAvkonPslnApp : public CAknApplication
- {
-
-private:
-// From CApaApplication
-
- /**
- * From CApaApplication, CreateDocumentL.
- * Creates CBCTestDomAvkonPslnDocument document object.
- * @return A pointer to the created document object.
- */
- CApaDocument* CreateDocumentL();
-
- /**
- * From CApaApplication, AppDllUid.
- * Returns application's UID ( KUidBCTestDomain ).
- * @return The value of KUidBCTestDomain.
- */
- TUid AppDllUid() const;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNAPP_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslnappui.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNAPPUI_H
-#define C_BCTESTDOMAVKONPSLNAPPUI_H
-
-#include <aknviewappui.h>
-
-class CBCTestDomAvkonPslnView;
-class CBCTestUtil;
-
-/**
- * Application UI class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomAvkonPslnAppUi : public CAknViewAppUi
- {
-
-public:
-// Constructors and destructor
-
- /**
- * constructor
- */
- CBCTestDomAvkonPslnAppUi();
-
- /**
- * symbian 2nd constructor
- */
- void ConstructL();
-
- /**
- * destructor
- */
- virtual ~CBCTestDomAvkonPslnAppUi();
-
-private:
-
- /**
- * From CEikAppUi
- */
- void HandleCommandL( TInt aCommand );
-
-private:
-// data
-
- /**
- * pointor to the view.
- * own
- */
- CBCTestDomAvkonPslnView* iView;
-
- /**
- * pointor to the BC Test framework utility.
- * own
- */
- CBCTestUtil* iTestUtil;
- };
-
-#endif // C_BCTESTDOMAVKONPSLNAPPUI_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslncontainer.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNCONTAINER_H
-#define C_BCTESTDOMAVKONPSLNCONTAINER_H
-
-#include <coecntrl.h>
-
-class CBCTestDomEikCase;
-/**
-* container class
-*/
-class CBCTestDomAvkonPslnContainer: public CCoeControl
- {
-
- friend class CBCTestDomEikCase;
-
-public:
-// constructor and destructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomAvkonPslnContainer();
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomAvkonPslnContainer();
-
- /**
- * 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 component control.
- * own
- */
- CCoeControl* iControl;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNCONTAINER_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslndocument.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNDOCUMENT_H
-#define C_BCTESTDOMAVKONPSLNDOCUMENT_H
-
-#include <eikdoc.h>
-
-class CEikAppUi;
-
-/**
-* CBCTestDomAvkonPslnDocument class.
-*/
-class CBCTestDomAvkonPslnDocument : 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 CBCTestDomAvkonPslnDocument* NewL( CEikApplication& aApp );
-
- /**
- * Destructor.
- */
- virtual ~CBCTestDomAvkonPslnDocument();
-
-private:
-// Constructors
-
- /**
- * Overload constructor.
- * @param aApp Reference to Application class object.
- */
- CBCTestDomAvkonPslnDocument( CEikApplication& aApp );
-
-private:
-// From CEikDocument
-
- /**
- * From CEikDocument, CreateAppUiL.
- * Creates CBCTestDomAvkonPslnAppUi "App UI" object.
- * @return Pointer to created AppUi class object.
- */
- CEikAppUi* CreateAppUiL();
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNDOCUMENT_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslnext.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,274 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNEXT_H
-#define C_BCTESTDOMAVKONPSLNEXT_H
-
-#include <akntransitionutils.h>
-#include <akntransparentcamerasettingpage.h>
-#include <genericparamconsumer.h>
-#include <xnthememanagement.h>
-#include <pslnfwbasecontainer.h>
-#include <mpslnfwmsklabelobserver.h>
-#include <pslnfwbaseview.h>
-#include <itemfinder.h>
-#include <mpslnfwappthemeobserver.h>
-
-class MDesCArray;
-class CAknTransparentCameraSettingPage;
-class CGulIcon;
-class MItemFinderObserver;
-class CXnODT;
-class MPslnFWAppThemeObserver;
-
-
-/**
- * CAknTransitionExt class create just for test CAknTransition
- */
-class CAknTransitionExt : public CBase,
- public MAknTransitionUtilsObserver
- {
-
-public:
-
- /**
- * C++ default constructor
- */
- CAknTransitionExt();
-
- /**
- * C++ default destructor
- */
- virtual ~CAknTransitionExt();
-
- /**
- * Callback function
- */
- virtual TInt AknTransitionCallback( TInt, TInt,
- const TDesC8* );
-
- };
-
-
-/**
- * CAknTransparentCameraSettingPageExt class create just for test
- * CAknTransparentCameraSettingPage
- */
-class CAknTransparentCameraSettingPageExt :
- public CAknTransparentCameraSettingPage
- {
-
- friend class CBCTestDomAknCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CAknTransparentCameraSettingPageExt( TInt aResourceID,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray );
- /**
- * C++ default constructor
- */
- CAknTransparentCameraSettingPageExt( const TDesC* aSettingTitleText,
- TInt aSettingNumber,
- TInt aControlType,
- TInt aEditorResourceId,
- TInt aSettingPageResourceId,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray );
-
- };
-
-/**
- * CAiwGenericParamConsumerExt class create just for test
- * CAiwGenericParamConsumer
- */
-class CAiwGenericParamConsumerExt : public CAiwGenericParamConsumer
- {
-
- friend class CBCTestDomJPLangCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CAiwGenericParamConsumerExt( CEikApplication& aApp );
-
- /**
- * CreateAppUiL()
- */
- CEikAppUi* CreateAppUiL();
-
- };
-
-/**
- * CXnThemeManagementServiceObserverExt class
- */
-class CXnThemeManagementServiceObserverExt : public CBase,
- MXnThemeManagementServiceObserver
- {
-
-public:
-
- /**
- * HandleXnClientMessage()
- */
- virtual void HandleXnClientMessage( TXnServiceCompletedMessage
- /*aMessage*/ );
-
- };
-
-
-/**
- * CPslnFWBaseContainerExt class create just for test
- * CPslnFWBaseContainer
- */
-class CPslnFWBaseContainerExt : public CPslnFWBaseContainer
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * C++ default constructor
- */
- CPslnFWBaseContainerExt();
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL( const TRect& aRect );
-
- /**
- * C++ default destructor
- */
- ~CPslnFWBaseContainerExt();
-
- /**
- * Construct ListBox from resource id
- */
- void ConstructListBoxL( TInt aResLbxId );
-
- };
-
-/**
- * Test Class CMPslnFWMSKObserverExt
- */
-class CMPslnFWMSKObserverExt : public CBase,
- public MPslnFWMSKObserver
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * interface function implemented to test
- */
- void CheckMiddleSoftkeyLabelL();
-
- };
-
-/**
- * CPslnFWBaseViewExt class create just for test
- * CPslnFWBaseView
- */
-class CPslnFWBaseViewExt : public CPslnFWBaseView
- {
-
- friend class CBCTestDomPslnCase;
-
-public:
-
- /**
- * Symbian 2nd static constructor
- */
- void ConstructL();
-
- /**
- * NewContainerL()
- */
- void NewContainerL();
-
- /**
- * HandleListBoxSelectionL()
- */
- void HandleListBoxSelectionL();
-
- /**
- * GetCaptionL()
- */
- void GetCaptionL( TDes& /*aCaption*/ ) const;
-
- /**
- * GetTabTextL()
- */
- virtual void GetTabTextL( TDes& /*aCaption*/ ) const;
-
- /**
- * CreateIconL()
- */
- virtual CGulIcon* CreateIconL();
-
- /**
- * Id()
- */
- TUid Id() const;
-
- };
-
-/**
- * Test Class CMPslnFWAppThemeObserverExt
- */
-class CItemFinderObserverExt : public CBase ,
- public MItemFinderObserver
- {
-
-public:
-
- void HandleParsingComplete();
- };
-
-/**
- * Test Class CMPslnFWAppThemeObserverExt
- */
-class CMPslnFWAppThemeObserverExt : public CBase,
- public MPslnFWAppThemeObserver
- {
-
-public:
-
- /**
- * HandleMessage()
- */
- void HandleMessage( TXnServiceCompletedMessage /*aMessage*/ );
-
- /**
- * HandleMessage() Overload
- */
- void HandleMessage(
- const TXnServiceCompletedMessage /*aMessage*/,
- CArrayPtrFlat<CXnODT>& /*aAppThemeList*/ );
- };
-
-#endif
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomavkonpslnview.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-/*
-* 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_BCTESTDOMAVKONPSLNVIEW_H
-#define C_BCTESTDOMAVKONPSLNVIEW_H
-
-#include <aknview.h>
-
-const TUid KBCTestDomainViewId = { 1 };
-
-class CBCTestDomAvkonPslnContainer;
-class CBCTestUtil;
-
-/**
- * CBCTestDomAvkonPslnView class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomAvkonPslnView : public CAknView
- {
-
-public:
-// Constructors and destructor
-
- /**
- * Symbian static 2nd constructor
- */
- static CBCTestDomAvkonPslnView* NewL( CBCTestUtil* aUtil );
-
- /**
- * destructor
- */
- virtual ~CBCTestDomAvkonPslnView();
-
-// from CAknView
-
- /**
- * Return view Id.
- */
- TUid Id() const;
-
- /**
- * From CAknView, HandleCommandL.
- * @param aCommand Command to be handled.
- */
- void HandleCommandL( TInt aCommand );
-
- /**
- * getter of Container
- */
- CBCTestDomAvkonPslnContainer* 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
- */
- CBCTestDomAvkonPslnView();
-
- /**
- * symbian 2nd constructor
- */
- 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
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMAVKONPSLNVIEW_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomeikcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/*
-* 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_BCTESTDOMEIKCASE_H
-#define C_BCTESTDOMEIKCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomEikCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomEikCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomEikCase();
-
-// 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();
-
- /**
- * TestAlarmControlL
- */
- void TestAlarmControlL();
-
- /**
- * TestSettingsListBoxDataL
- */
- void TestSettingsListBoxDataL();
-
- /**
- * TestSettingsListBoxDataL
- */
- void TestEikSoftkeyImageL();
-
- /**
- * TestServAppUiBaseL
- */
- void TestServAppUiBaseL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomEikCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private:
-// data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomfindcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/*
-* 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_BCTESTDOMFINDCASE_H
-#define C_BCTESTDOMFINDCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomFindCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomFindCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomFindCase();
-
-// 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 CFindItemDialog Class
- */
- void TestFindItemDialogL();
-
- /**
- * Test CFindItemMenu Class
- */
- void TestFindItemMenuL();
-
- /**
- * Test CFindUtil Class
- */
- void TestFindUtilL();
-
- /**
- * for test CItemFinder Class
- */
- void TestItemFinderL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomFindCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private:
-// data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdomjplangcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,100 +0,0 @@
-/*
-* 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_BCTESTDOMJPLANGCASE_H
-#define C_BCTESTDOMJPLANGCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomJPLangCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomJPLangCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomJPLangCase();
-
-// 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();
-
- /**
- * TestJPLangUtilL()
- */
- void TestJPLangUtilL();
-
- /**
- * TestNumberGroupL()
- */
- void TestNumberGroupL();
-
- /**
- * TestGenericParamConsumerL()
- */
- void TestGenericParamConsumerL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomJPLangCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/inc/bctestdompslncase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,111 +0,0 @@
-/*
-* 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_BCTESTDOMPSLNCASE_H
-#define C_BCTESTDOMPSLNCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomAvkonPslnContainer;
-class CCoeControl;
-
-/**
-* test case for various classes
-*/
-class CBCTestDomPslnCase: public CBCTestCase
- {
-
-public:
-// constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomPslnCase* NewL( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomPslnCase();
-
-// 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();
-
- /**
- * TestPslnFWBaseContainerL
- */
- void TestPslnFWBaseContainerL();
-
- /**
- * TestPslnFWBaseView
- */
- void TestPslnFWBaseViewL();
-
- /**
- * TestFWIconHelperL
- */
- void TestFWIconHelperL();
-
- /**
- * TestFWPluginHandlerL
- */
- void TestFWPluginHandlerL();
-
- /**
- * TestPslnFWAppThemeHandlerL
- */
- void TestPslnFWAppThemeHandlerL();
-
-private:
-// constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomPslnCase( CBCTestDomAvkonPslnContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private:
-// data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomAvkonPslnContainer* iContainer;
-
- };
-
-#endif // C_BCTESTDOMTEMPLATECASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/readme.txt Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-case : bctestakncase
-tested header files:
-<aknskinnableclock.h>
-<aknsmallindicator.h>
-<aknsoftnotificationparameters.h>
-<aknsoftnotifier.h>
-<aknstatuspaneutils.h>
-<aknstylusactivatedpopupcontent.h>
-<aknsyncdraw.h>
-<akntasklist.h>
-<akntransitionutils.h>
-<aknvolumepopup.h>
-<aknsystemfont.h>
-
-case : bctesteikcase
-tested header files:
-<eikalmct.h>
-<eikslbd.h>
-<eiksoftkeyimage.h>
-<eiksrvui.h>
-
-case : bctestfindcase
-tested header files:
-<finditemdialog.h>
-<finditemmenu.h>
-<findutil.h>
-<itemfinder.h>
-
-case : bctestjplangcase
-tested header files:
-<jplangutil.h>
-<numbergrouping.h>
-
-case :bctestpslncase
-tested header files:
-<PslnFWAppThemeHandler.h>
-<PslnFWBaseContainer.h>
-<PslnFWBaseView.h>
-<PslnFWIconHelper.h>
-<PslnFWPluginHandler.h>
-
-Warning:
-
-there would be some error in the header file "aknstylusactivatedpopupcontent.h"
-when compiling the project on the Week38 SDK,the user can modify the header file
-by add the "class TAknWindowComponentLayout;" predeclaration to reslove the problem
-
-
-
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/sis/bctestdomavkonpsln.pkg Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-;
-; 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: Package file for project bctestdomavkonpsln
-;
-
-; bctestdomavkonpsln.pkg
-
-; Languages
-&EN
-
-; Header
-#{"bctestdomavkonpsln"},(0xA00040A1),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\bctestdomavkonpsln.exe"-
-"!:\sys\bin\bctestdomavkonpsln.exe"
-
-"\epoc32\data\z\resource\apps\bctestdomavkonpsln.r01"-
-"!:\resource\apps\bctestdomavkonpsln.r01"
-
-"\epoc32\data\z\PRIVATE\10003A3F\APPS\bctestdomavkonpsln_reg.r01"-
-"!:\PRIVATE\10003A3F\import\APPS\bctestdomavkonpsln_reg.r01"
-
-; bctestutil must be installed
-(0x20004742), 1, 10, 0, {"bctestutil.dll"}
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomakncase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,997 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32const.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <fbs.h>
-#include <aknskinnableclock.h>
-#include <aknsmallindicator.h>
-/*
-The "class TAknWindowComponentLayout;" and "class CAknStylusActivatedItem;"
-should be added when "aknstylusactivatedpopupcontent.h" is used.
-*/
-class CAknStylusActivatedItem;
-class TAknWindowComponentLayout;
-#include <aknstylusactivatedpopupcontent.h>
-#include <aknsoftnotificationparameters.h>
-#include <aknnotedialog.h>
-#include <aknsoftnotifier.h>
-#include <aknstatuspaneutils.h>
-#include <aknsyncdraw.h>
-#include <akntasklist.h>
-#include <akntransitionutils.h>
-#include <aknvolumepopup.h>
-#include <aknform.h>
-#include <aknsystemfont.h>
-#include <s32file.h>
-#include <s32strm.h>
-
-#include <avkon.mbg>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomakncase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-
-//CONSTANTS
-
-const TInt KWidth = 25;
-const TInt KHeight = 25;
-const TInt KShareVolumeUid = 0x000000001;
-const TInt KViewerUid = 0x10282D0A;
-const TInt KVolumeMaxValue = 10;
-const TInt KVolumeMinValue = 0;
-const TInt KDesLength = 24;
-const TInt KTimeOut = 5;
-const TInt KStepSize = 2;
-const TInt KGraphicMode = 100;
-
-_LIT( KFilePath, "c:\\bctestlog\\rest.txt" );
-_LIT8( KMessage, "Message Descriptor" );
-_LIT( KTitle, "Title" );
-_LIT( KText, "Text" );
-_LIT( KDriver, "C:" );
-
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase* CBCTestDomAknCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomAknCase* self = new( ELeave ) CBCTestDomAknCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase::CBCTestDomAknCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAknCase::~CBCTestDomAknCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- DELAY(2), // delay between commands is 1*0.1 seconds = 0.1 seconds
- LeftCBA,
- KeyOK,
- KeyOK,
- KeyOK
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline1 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline1:
- TestSkinnableClockL();
- TestSmallIndicatorL();
- TestSoftNotifierL();
- TestStatuspaneUtilsL();
- TestPopupContentL();
- TestTransitionL();
- TestCameraSettingPageL();
- TestAknVolumePopupL();
- TestLafSystemFontL();
- TestTaskListL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSkinnableClock()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSkinnableClockL()
- {
- // Test some API here
- _LIT( KNewL, "CAknSkinnableClock::NewL invoked" );
- _LIT( KUpdateDisplay, "CAknSkinnableClock::NewL UpdateDisplay invoked" );
- _LIT( KSetFormatL, "CAknSkinnableClock::NewL SetFormatL invoked" );
- _LIT( KDes, "CAknSkinnableClock::~CAknSkinnableClock invoked" );
-
- CAknSkinnableClock* clock =
- CAknSkinnableClock::NewL( iContainer, ETrue, ETrue );
- CleanupStack::PushL( clock );
- AssertNotNullL( clock, KNewL );
-
- clock->UpdateDisplay();
- AssertTrueL( ETrue, KUpdateDisplay );
-
- clock->SetFormatL( EClockDigital );
- AssertTrueL( ETrue, KSetFormatL );
-
- clock->PositionChanged();
- TPointerEvent event;
- event.iType = TPointerEvent::EButton1Down;
- event.iModifiers = 0;
- TPoint eventPos( KWidth, KHeight );
- event.iPosition = eventPos;
- event.iParentPosition = eventPos;
-
- clock->HandlePointerEventL( event );
- CleanupStack::Pop( clock );
- delete clock;
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSmallIndicator
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSmallIndicatorL()
- {
- // Test some API here
- _LIT( KNewL, "CAknSmallIndicator::NewL invoked" );
- _LIT( KDes, "CAknSmallIndicator::~CAknSmallIndicator invoked" );
- _LIT( KNewLC, "CAknSmallIndicator::NewLC invoked" );
- _LIT( KSetIndicatorStateL,
- "CAknSmallIndicator::SetIndicatorStateL invoked" );
- _LIT( KHandleIndicatorTapL,
- "CAknSmallIndicator::HandleIndicatorTapL invoked" );
-
- CAknSmallIndicator* indicator =
- CAknSmallIndicator::NewL( TUid::Uid( KViewerUid ) );
- CleanupStack::PushL( indicator );
- AssertNotNullL( indicator, KNewL );
-
- CleanupStack::Pop( indicator );
- delete indicator;
- AssertTrueL( ETrue, KDes );
-
- indicator = CAknSmallIndicator::NewLC( TUid::Uid( KViewerUid ) );
- AssertNotNullL( indicator, KNewLC );
-
- indicator->SetIndicatorStateL( 0 );
- AssertTrueL( ETrue, KSetIndicatorStateL );
-
- indicator->HandleIndicatorTapL();
- AssertTrueL( ETrue, KHandleIndicatorTapL );
-
- CleanupStack::PopAndDestroy( indicator );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSoftNotifier
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSoftNotifierL()
- {
-
- _LIT( KNewL, "CAknSoftNotificationParameters::NewL invoked" );
- _LIT( KDes,
- "CAknSoftNotificationParameters::~CAknSNParameters invoked" );
- _LIT( KNewLOver, "CAknSoftNotificationParameters::NewL overload invoked" );
- _LIT( KNewLOverLoad,
- "CAknSoftNotificationParameters::NewL overload invoked" );
- _LIT( KNotifierNewL, "CAknSoftNotifier::NewL invoked" );
- _LIT( KNotifierDes, "CAknSoftNotifier::~CAknSoftNotifier invoked" );
- _LIT( KNewLC, "CAknSoftNotifier::NewLC invoked" );
- _LIT( KAddNotificationL, "CAknSoftNotifier::AddNotificationL invoked" );
- _LIT( KAddNotificationLOverLoad,
- "CAknSoftNotifier::AddNotificationL overload invoked" );
- _LIT( KSetNotificationCountL,
- "CAknSoftNotifier::SetNotificationCountL invoked" );
- _LIT( KCancelSoftNotificationL,
- "CAknSoftNotifier::CancelSoftNotificationL invoked" );
- _LIT( KAddCustomNotificationL,
- "CAknSoftNotifier::AddCustomNotificationL invoked" );
- _LIT( KSetCustomNotificationCountL,
- "CAknSoftNotifier::SetCustomNotificationCountL invoked" );
- _LIT( KCancelCustomSoftNotificationL,
- "CAknSoftNotifier::CancelCustomSoftNotificationL invoked" );
-
-
- CAknSoftNotificationParameters* parameters =
- CAknSoftNotificationParameters::NewL();
- CleanupStack::PushL( parameters );
- AssertNotNullL( parameters, KNewL );
-
- CleanupStack::Pop( parameters );
- delete parameters;
- AssertTrueL( ETrue, KDes );
-
-
- parameters = CAknSoftNotificationParameters::
- NewL( KFilePath, 0, 0, 0, CAknNoteDialog::ENoTone);
- CleanupStack::PushL( parameters );
- AssertTrueL( ETrue, KNewLOver );
- CleanupStack::Pop( parameters );
- delete parameters;
-
- parameters = CAknSoftNotificationParameters::NewL( KDriver, 0, 0, 0,
- CAknNoteDialog::ENoTone,
- KNullViewId, KNullUid,
- 0, KMessage );
- CleanupStack::PushL( parameters );
- AssertNotNullL( parameters, KNewLOverLoad );
-
- CAknSoftNotifier* notifier = CAknSoftNotifier::NewL();
- CleanupStack::PushL( notifier );
- AssertNotNullL( notifier, KNotifierNewL );
- CleanupStack::Pop( notifier );
- delete notifier;
- AssertTrueL( ETrue, KNotifierDes );
-
- notifier = CAknSoftNotifier::NewLC();
- AssertNotNullL( notifier, KNewLC );
-
- notifier->AddNotificationL( ENetworkInformationNotification );
- AssertTrueL( ETrue, KAddNotificationL );
-
- notifier->AddNotificationL( ENetworkInformationNotification, 1 );
- AssertTrueL( ETrue, KAddNotificationLOverLoad );
-
- notifier->SetNotificationCountL( ENetworkInformationNotification, 1 );
- AssertTrueL( ETrue, KSetNotificationCountL );
-
- notifier->CancelSoftNotificationL( ENetworkInformationNotification );
- AssertTrueL( ETrue, KCancelSoftNotificationL );
-
- notifier->AddCustomNotificationL( *parameters );
- AssertTrueL( ETrue, KAddCustomNotificationL );
-
- notifier->SetCustomNotificationCountL( *parameters, 1 );
- AssertTrueL( ETrue, KSetCustomNotificationCountL );
-
- notifier->CancelCustomSoftNotificationL( *parameters );
- AssertTrueL( ETrue, KCancelCustomSoftNotificationL );
-
- CleanupStack::PopAndDestroy( notifier );
- CleanupStack::PopAndDestroy( parameters );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestStatuspaneUtils
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestStatuspaneUtilsL()
- {
-
- _LIT( KStaconPaneActive, "AknStatuspaneUtils::StaconPaneActive invoked" );
- _LIT( KStaconSoftKeysLeft,
- "AknStatuspaneUtils::StaconSoftKeysLeft invoked" );
- _LIT( KStaconSoftKeysRight,
- "AknStatuspaneUtils::StaconSoftKeysRight invoked" );
- _LIT( KIdleLayoutActive, "AknStatuspaneUtils::IdleLayoutActive invoked" );
- _LIT( KFlatLayoutActive, "AknStatuspaneUtils::FlatLayoutActive invoked" );
- _LIT( KUsualLayoutActive,
- "AknStatuspaneUtils::UsualLayoutActive invoked" );
- _LIT( KSmallLayoutActive,
- "AknStatuspaneUtils::SmallLayoutActive invoked" );
- _LIT( KTouchPaneCompatibleLayoutActive,
- "AknStatuspaneUtils::TouchPaneCompatibleLayoutActive invoked" );
- _LIT( KExtendedStaconPaneActive,
- "AknStatuspaneUtils::ExtendedStaconPaneActive invoked" );
- _LIT( KExtendedFlatLayoutActive,
- "AknStatuspaneUtils::ExtendedFlatLayoutActive invoked" );
-
- TBool val = AknStatuspaneUtils::StaconPaneActive();
- AssertTrueL( ETrue, KStaconPaneActive );
-
- val = AknStatuspaneUtils::StaconSoftKeysLeft();
- AssertTrueL( ETrue, KStaconSoftKeysLeft );
-
- val = AknStatuspaneUtils::StaconSoftKeysRight();
- AssertTrueL( ETrue, KStaconSoftKeysRight );
-
- val = AknStatuspaneUtils::IdleLayoutActive();
- AssertTrueL( ETrue, KIdleLayoutActive );
-
- val = AknStatuspaneUtils::FlatLayoutActive();
- AssertTrueL( ETrue, KFlatLayoutActive );
-
- val = AknStatuspaneUtils::UsualLayoutActive();
- AssertTrueL( ETrue, KUsualLayoutActive );
-
- val = AknStatuspaneUtils::SmallLayoutActive();
- AssertTrueL( ETrue, KSmallLayoutActive );
-
- val = AknStatuspaneUtils::TouchPaneCompatibleLayoutActive();
- AssertTrueL( ETrue, KTouchPaneCompatibleLayoutActive );
-
- val = AknStatuspaneUtils::ExtendedStaconPaneActive();
- AssertTrueL( ETrue, KExtendedStaconPaneActive );
-
- val = AknStatuspaneUtils::ExtendedFlatLayoutActive();
- AssertTrueL( ETrue, KExtendedFlatLayoutActive );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestPopupContent()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestPopupContentL()
- {
-
- _LIT( KNewL, "CAknStylusActivatedPopUpContent::NewL invoked" );
- _LIT( KNewLOverload,
- "CAknStylusActivatedPopUpContent::NewL overload invoked" );
- _LIT( KNewLRes,
- "CAknStylusActivatedPopUpContent::NewL int resid overload invoked" );
- _LIT( KNewLReader,
- "CAknStylusActivatedPopUpContent::NewL reader resid overload invoked" );
- _LIT( KDes,
- "CAknStylusActivatedPopUpContent::~CAknStylusContent invoked" );
- _LIT( KComponentControl,
- "CAknStylusActivatedPopUpContent::ComponentControl invoked" );
- _LIT( KCountComponentControls,
- "CAknStylusActivatedPopUpContent::CountComponentControls invoked" );
- _LIT( KMinimumSize,
- "CAknStylusActivatedPopUpContent::MinimumSize invoked" );
- _LIT( KHandleResourceChange,
- "CAknStylusActivatedPopUpContent::HandleResourceChange() invoked" );
- _LIT( KSetContainerWindowL,
- "CAknStylusActivatedPopUpContent::SetContainerWindowL() invoked" );
- _LIT( KSetCommandObserver,
- "CAknStylusActivatedPopUpContent::SetCommandObserver invoked" );
- _LIT( KHandlePointerEventL,
- "CAknStylusActivatedPopUpContent::HandlePointerEventL invoked" );
- _LIT( KHandleControlEventL,
- "CAknStylusActivatedPopUpContent::HandleControlEventL invoked" );
-
- CAknStylusActivatedPopUpContent* content
- = CAknStylusActivatedPopUpContent::NewL( KTitle, KText );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewL );
-
- CleanupStack::Pop( content );
- delete content;
- AssertTrueL( ETrue, KDes );
-
- TBuf<KDesLength> linktxt( KTitle );
- RArray<TAknContentLink> array;
- TAknContentLink link;
- link.iLinkText = &linktxt;
- CleanupClosePushL( array );
- array.Append( link );
- content = CAknStylusActivatedPopUpContent::NewL( KTitle, KText, array );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewLOverload );
- CleanupStack::Pop( content );
- delete content;
- CleanupStack::PopAndDestroy( &array );
-
- content = CAknStylusActivatedPopUpContent::
- NewL( R_BCTESTDOMAVKONPSLN_AVKON_CONTENT );
- CleanupStack::PushL( content );
- AssertNotNullL( content, KNewLRes );
-
- CAknForm* frm = new ( ELeave ) CAknForm();
- CleanupStack::PushL( frm );
- frm->ConstructL();
-
- content->SetCommandObserver( *frm );
- AssertTrueL( ETrue, KSetCommandObserver );
-
- content->HandleResourceChange( 0 );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- content->SetContainerWindowL( *iContainer );
- AssertTrueL( ETrue, KSetContainerWindowL );
-
- TPointerEvent event;
- event.iType = TPointerEvent::EButton1Down;
- event.iModifiers = 0;
- TPoint eventPos( KWidth, KHeight );
- event.iPosition = eventPos;
- event.iParentPosition = eventPos;
- content->HandlePointerEventL( event );
- AssertTrueL( ETrue, KHandlePointerEventL );
-
- content->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestExit );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- CleanupStack::Pop( frm );
- CleanupStack::Pop( content );
-
- delete content;
- delete frm;
-
- TResourceReader reader;
- CCoeEnv::Static()->CreateResourceReaderLC( reader,
- R_BCTESTDOMAVKONPSLN_AVKON_CONTENT );
- CCoeControl* ctrl = CAknStylusActivatedPopUpContent::NewL( reader );
- CleanupStack::PushL( ctrl );
- AssertNotNullL( ctrl, KNewLReader );
-
- ctrl->ComponentControl( 0 );
- AssertTrueL( ETrue, KComponentControl );
-
- ctrl->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- ctrl->MinimumSize();
- AssertTrueL( ETrue, KMinimumSize );
-
- CleanupStack::PopAndDestroy( ctrl );
- CleanupStack::PopAndDestroy(); // reader
-
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestSyncDraw()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestSyncDrawL()
- {
-
- _LIT( KConstruct, "TAknSyncControlDrawer::TAknSyncControlDrawer invoked" );
- _LIT( KSetControl, "TAknSyncControlDrawer::SetControl invoked" );
- _LIT( KMasrPrepareForDraw,
- "TAknSyncControlDrawer::MasrPrepareForDraw invoked" );
- _LIT( KMasrDraw, "TAknSyncControlDrawer::MasrDraw invoked" );
- _LIT( KMasrDeactivateGc,
- "TAknSyncControlDrawer::MasrDeactivateGc invoked" );
- _LIT( KMasrActivateGc,
- "TAknSyncControlDrawer::MasrActivateGc invoked" );
- _LIT( KNewL, "CAknDrawSynchronizer::NewL invoked" );
- _LIT( KAddL, "CAknDrawSynchronizer::AddL invoked" );
- _LIT( KSignal, "CAknDrawSynchronizer::Signal invoked" );
- _LIT( KRemove, "CAknDrawSynchronizer::Remove invoked" );
- _LIT( KDes, "CAknDrawSynchronizer::~CAknDrawSynchronizer invoked" );
-
- TAknSyncControlDrawer drawer;
- AssertTrueL( ETrue, KConstruct );
-
- drawer.SetControl( iContainer );
- AssertTrueL( ETrue, KSetControl );
-
- drawer.MasrPrepareForDraw();
- AssertTrueL( ETrue, KMasrPrepareForDraw );
-
- drawer.MasrDraw();
- AssertTrueL( ETrue, KMasrDraw );
-
- drawer.MasrDeactivateGc();
- AssertTrueL( ETrue, KMasrDeactivateGc );
-
- drawer.MasrActivateGc();
- AssertTrueL( ETrue, KMasrActivateGc );
-
- CAknDrawSynchronizer* sync = CAknDrawSynchronizer::NewL();
- CleanupStack::PushL( sync );
- AssertNotNullL( sync, KNewL );
-
- sync->AddL( &drawer );
- AssertTrueL( ETrue, KAddL );
-
- sync->Signal( &drawer );
- AssertTrueL( ETrue, KSignal );
-
- sync->Remove( &drawer );
- AssertTrueL( ETrue, KRemove );
-
- CleanupStack::PopAndDestroy( sync );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestTaskListL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestTaskListL()
- {
-
- _LIT( KNewL, "CAknTaskList::NewL invoked" );
- _LIT( KNewLC, "CAknTaskList::NewLC invoked" );
- _LIT( KDes, "CAknTaskList::~CAknTaskList invoked" );
- _LIT( KUpdateListL, "CAknTaskList::UpdateListL invoked" );
- _LIT( KWgArray, "CAknTaskList::WgArray invoked" );
- _LIT( KFindRootApp, "CAknTaskList::FindRootApp invoked" );
- _LIT( KIsRootWindowGroup, "CAknTaskList::IsRootWindowGroup invoked" );
-
- CAknTaskList* tasklist =
- CAknTaskList::NewL( CCoeEnv::Static()->WsSession() );
- CleanupStack::PushL( tasklist );
- AssertNotNullL( tasklist, KNewL );
-
- CleanupStack::Pop( tasklist );
- delete tasklist;
- AssertTrueL( ETrue, KDes );
-
- tasklist = CAknTaskList::NewLC( CCoeEnv::Static()->WsSession() );
- AssertNotNullL( tasklist, KNewLC );
-
- tasklist->UpdateListL();
- AssertTrueL( ETrue, KUpdateListL );
-
- tasklist->WgArray();
- AssertTrueL( ETrue, KWgArray );
-
- tasklist->FindRootApp( KNullUid );
- AssertTrueL( ETrue, KFindRootApp );
-
- TBool val = tasklist->IsRootWindowGroup( 0 );
- AssertTrueL( ETrue, KIsRootWindowGroup );
-
- CleanupStack::PopAndDestroy( tasklist );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestTransitionL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestTransitionL()
- {
-
- _LIT( KCAknTransition, "CAknTransition::CAknTransition invoked" );
- _LIT( KAddObserver, "CAknTransitionUtils::AddObserver invoked" );
- _LIT( KRemoveObserver, "CAknTransitionUtils::RemoveObserver invoked" );
- _LIT( KGetState, "CAknTransitionUtils::GetState invoked" );
- _LIT( KSetData, "CAknTransitionUtils::SetData invoked" );
- _LIT( KGetData, "CAknTransitionUtils::GetData invoked" );
- _LIT( KRemoveData, "CAknTransitionUtils::RemoveData invoked" );
- _LIT( KSetAllParents, "CAknTransitionUtils::SetAllParents invoked" );
- _LIT( KTransitionsEnabled,
- "CAknTransitionUtils::TransitionsEnabled invoked" );
- _LIT( KMakeVisibleSubComponents,
- "CAknTransitionUtils::MakeVisibleSubComponents invoked" );
- _LIT( KGetDemarcation, "CAknTransitionUtils::GetDemarcation invoked" );
- _LIT( KDes, "CAknTransition::~CAknTransition invoked" );
-
- CAknTransitionExt* observer = new ( ELeave ) CAknTransitionExt;
- CleanupStack::PushL( observer );
- AssertNotNullL( observer, KCAknTransition );
-
- TInt res = CAknTransitionUtils::AddObserver( observer,
- CAknTransitionUtils::EEventWsBufferRedirection );
- AssertTrueL( ETrue, KAddObserver );
-
- CAknTransitionUtils::RemoveObserver( observer,
- CAknTransitionUtils::EEventWsBufferRedirection );
- AssertTrueL( ETrue, KRemoveObserver );
-
- TInt stat;
- CAknTransitionUtils::GetState(
- CAknTransitionUtils::EEventWsBufferRedirection,
- &stat );
- AssertTrueL( ETrue, KGetState );
-
- TInt skey( 0 ),sdata( 0 );
- CAknTransitionUtils::SetData( skey, &sdata );
- AssertTrueL( ETrue, KSetData );
-
- CAknTransitionUtils::GetData( skey );
- AssertTrueL( ETrue, KGetData );
-
- CAknTransitionUtils::RemoveData( skey );
- AssertTrueL( ETrue, KRemoveData );
-
- CAknTransitionUtils::SetAllParents( iContainer );
- AssertTrueL( ETrue, KSetAllParents );
-
- CAknTransitionUtils::TransitionsEnabled( sdata );
- AssertTrueL( ETrue, KTransitionsEnabled );
-
- CAknTransitionUtils::MakeVisibleSubComponents( iContainer,
- CAknTransitionUtils::EForceInvisible );
- AssertTrueL( ETrue, KMakeVisibleSubComponents );
-
- TRect rect;
- CAknTransitionUtils::GetDemarcation(
- CAknTransitionUtils::EOptionsMenu,
- rect );
- AssertTrueL( ETrue, KGetDemarcation );
-
- CleanupStack::PopAndDestroy( observer );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestCameralSettingPageL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestCameraSettingPageL()
- {
-
- _LIT( KCAknTransparentCameraSettingPage,
- "CAknTransparentCameraSettingPage::\
- CAknTransparentCameraSettingPage invoked" );
- _LIT( KCAknTransparentCameraSettingPageDes,
- "CAknTransparentCameraSettingPage::\
- ~CAknTransparentCameraSettingPage invoked" );
- _LIT( KCAknTransparentCameraSettingPageOverload,
- "CAknTransparentCameraSettingPage::\
- CAknTransparentCameraSettingPage overload invoked" );
- _LIT( KConstructL,
- "CAknTransparentCameraSettingPage::Constructor invoked" );
- _LIT( KListBoxControl,
- "CAknTransparentCameraSettingPage::ListBoxControl invoked" );
- _LIT( KSetItemArrayAndSelectionL,
- "CAknTransparentCameraSettingPage::\
- SetItemArrayAndSelectionL invoked" );
- _LIT( KChangeBackground,
- "CAknTransparentCameraSettingPage::ChangeBackground invoked" );
- _LIT( KSetBitmapPositionAndClipRect,
- "CAknTransparentCameraSettingPage::\
- SetBitmapPositionAndClipRect invoked" );
- _LIT( KUpdateSettingL,
- "CAknTransparentCameraSettingPage::UpdateSettingL invoked" );
- _LIT( KDynamicInitL,
- "CAknTransparentCameraSettingPage::DynamicInitL invoked" );
- _LIT( KSelectCurrentItemL,
- "CAknTransparentCameraSettingPage::SelectCurrentItemL invoked" );
- _LIT( KProcessCommandL,
- "CAknTransparentCameraSettingPage::ProcessCommandL invoked" );
- _LIT( KOfferKeyEventL,
- "CAknTransparentCameraSettingPage::OfferKeyEventL invoked" );
- _LIT( KSizeChanged,
- "CAknTransparentCameraSettingPage::SizeChanged invoked" );
- _LIT( KDraw,
- "CAknTransparentCameraSettingPage::Draw invoked" );
- _LIT( KExecuteLD,
- "CAknTransparentCameraSettingPage::ExecuteLD invoked" );
- _LIT( KHandleListBoxEventL,
- "CAknTransparentCameraSettingPage::HandleListBoxEventL invoked" );
- _LIT( KHandleResourceChange,
- "CAknTransparentCameraSettingPage::HandleResourceChange invoked" );
- _LIT( KHandleControlEventL,
- "CAknTransparentCameraSettingPage::HandleControlEventL invoked" );
- _LIT( KWriteInternalStateL,
- "CAknTransparentCameraSettingPage::WriteInternalStateL invoked" );
-
- TInt index( 0 );
- CPtrCArray* array = new ( ELeave ) CPtrCArray( 1 );
- TBuf<KDesLength> txt( KTitle );
- array->AppendL( txt );
- CleanupStack::PushL( array );
-
- CAknTransparentCameraSettingPageExt* settingpage =
- new ( ELeave ) CAknTransparentCameraSettingPageExt(
- R_BCTESTDOMAVKONPSLN_CHECKBOX_SETTING_PAGE,
- index,
- array );
- CleanupStack::PushL( settingpage );
- AssertNotNullL( settingpage, KCAknTransparentCameraSettingPage );
-
-
- settingpage->ConstructL();
- CleanupStack::Pop( settingpage );
-
- TRect rect( 0, 0, 0, 0 );
- settingpage->Draw( rect );
- AssertTrueL( ETrue, KDraw );
- settingpage->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted );
- AssertTrueL( ETrue, KExecuteLD );
-
- settingpage = NULL;
- AssertTrueL( ETrue, KCAknTransparentCameraSettingPageDes );
-
- settingpage = new ( ELeave ) CAknTransparentCameraSettingPageExt(
- &KTitle,
- 0,
- 0,
- 0,
- R_BCTESTDOMAVKONPSLN_CHECKBOX_SETTING_PAGE,
- index,
- array );
- CleanupStack::PushL( settingpage );
- AssertNotNullL( settingpage, KCAknTransparentCameraSettingPageOverload );
-
- settingpage->ConstructL();
- AssertTrueL( ETrue, KConstructL );
-
- settingpage->ListBoxControl();
- AssertTrueL( ETrue, KListBoxControl );
-
- CEikListBox* list = new ( ELeave ) CEikListBox();
- CleanupStack::PushL( list );
- settingpage->HandleListBoxEventL( list,
- MEikListBoxObserver::
- EEventEnterKeyPressed );
- AssertTrueL( ETrue, KHandleListBoxEventL );
- CleanupStack::PopAndDestroy( list );
-
- settingpage->SetItemArrayAndSelectionL( array, 0 );
- AssertTrueL( ETrue, KSetItemArrayAndSelectionL );
-
- TPoint point( 0, 0 );
- settingpage->SetBitmapPositionAndClipRect( point, rect );
- AssertTrueL( ETrue, KSetBitmapPositionAndClipRect );
-
- settingpage->HandleResourceChange( index );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- settingpage->UpdateSettingL();
- AssertTrueL( ETrue, KUpdateSettingL );
-
- settingpage->DynamicInitL();
- AssertTrueL( ETrue, KDynamicInitL );
-
- settingpage->SelectCurrentItemL();
- AssertTrueL( ETrue, KSelectCurrentItemL );
-
- settingpage->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestCancel );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
-
- settingpage->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- settingpage->SizeChanged();
- AssertTrueL( ETrue, KSizeChanged );
-
- CFbsBitmap* bmp = NULL;
- bmp = AknIconUtils::CreateIconL( AknIconUtils::AvkonIconFileName(),
- EMbmAvkonQgn_prop_nrtyp_note );
- CleanupStack::PushL( bmp );
- AssertNotNullL( bmp );
-
- settingpage->SetBitmapPositionAndClipRect( point, rect, ETrue );
- AssertTrueL( ETrue, KSetBitmapPositionAndClipRect );
-
- settingpage->ChangeBackground( bmp );
- AssertTrueL( ETrue, KChangeBackground );
-
- CCoeEnv::Static()->AppUi()->AddToStackL( settingpage );
- settingpage->ProcessCommandL( EAknSoftkeyHide );
- AssertTrueL( ETrue, KProcessCommandL );
-
- CCoeEnv::Static()->AppUi()->RemoveFromStack( settingpage );
-
- RFileWriteStream stream;
- stream.PushL();
- stream.Replace( CCoeEnv::Static()->FsSession(), KFilePath, EFileWrite );
- settingpage->WriteInternalStateL( stream );
- AssertTrueL( ETrue, KWriteInternalStateL );
- stream.Pop();
- stream.Close();
-
- CleanupStack::PopAndDestroy( bmp );
- CleanupStack::PopAndDestroy( settingpage );
- CleanupStack::PopAndDestroy( array );
-
- }
-
-// ----------------------------------------------------------------------------
-// Test AknVolumePopup.
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestAknVolumePopupL()
- {
- _LIT( KNewL, "CAknVolumePopup::NewL invoked" );
- _LIT( KNewLOverLoad, "CAknVolumePopup::NewL overload invoked" );
- _LIT( KConstructFromResource,
- "CAknVolumePopup::ConstructFromResourceL invoked" );
- _LIT( KCountComponentControls,
- "CAknVolumePopup::CountComponentControls invoked" );
- _LIT( KComponentControl,
- "CAknVolumePopup::ComponentControl() invoked" );
- _LIT( KHandlePointerEventL,
- "CAknVolumePopup::HandlePointerEventL() invoked" );
- _LIT( KOfferKeyEventL, "CAknVolumePopup::OfferKeyEventL invoked" );
- _LIT( KHandleControlEventL,
- "CAknVolumePopup::HandleControlEventL() invoked" );
- _LIT( KHandleVolumeKeyEventL,
- "CAknVolumePopup::HandleVolumeKeyEventL() invoked" );
- _LIT( KSetRange, "CAknVolumePopup::SetRange() invoked" );
- _LIT( KGetRange, "CAknVolumePopup::GetRange() invoked" );
- _LIT( KValue, "CAknVlumePopup::Value() invoked" );
- _LIT( KSetTitleTextL, "CAknVlumePopup::SetTitleTextL() invoked" );
- _LIT( KShowProfileName, "CAknVlumePopup::ShowProfileName() invoked" );
- _LIT( KShowVolumePopupL, "CAknVlumePopup::ShowVolumePopupL() invoked" );
- _LIT( KCloseVolumePopup, "CAknVlumePopup::CloseVolumePopup() invoked" );
- _LIT( KSetDecimalPlaces, "CAknVlumePopup::SetDecimalPlaces() invoked" );
- _LIT( KSetGraphics, "CAknVlumePopup::SetGraphics() invoked" );
- _LIT( KSetTimeOutAsSecond,
- "CAknVlumePopup::SetTimeOutAsSecond() invoked" );
- _LIT( KSetAdjustmentIndicatorDisplay,
- "CAknVlumePopup::SetAdjustmentIndicatorDisplay() invoked" );
- _LIT( KSetStepSize, "CAknVlumePopup::SetStepSize() invoked" );
- _LIT( KSetValueType, "CAknVlumePopup::ValueType() invoked" );
-
- TUid uid = TUid::Uid( KShareVolumeUid );
- CAknVolumePopup* vol = CAknVolumePopup
- ::NewL( uid, KTitle, KVolumeMaxValue );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KNewL );
- CleanupStack::Pop( vol );
- delete vol;
- vol = NULL;
-
- vol = CAknVolumePopup::NewL( iContainer, ETrue );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KNewL );
- CleanupStack::PopAndDestroy( vol );
- vol = NULL;
-
- vol = CAknVolumePopup
- ::ConstructFromResourceL( R_AVKON_POPUP_VOLUME_INDICATOR );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KConstructFromResource );
- CleanupStack::Pop( vol );
- delete vol;
- vol = NULL;
-
- vol = CAknVolumePopup::NewL( KVolumeMaxValue );
- CleanupStack::PushL( vol );
- AssertNotNullL( vol, KNewLOverLoad );
-
- TInt val = vol->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- vol->ComponentControl( val );
- AssertTrueL( ETrue, KComponentControl );
-
- TWsEvent wsEvent;
- TPointerEvent* ptEvent = wsEvent.Pointer();
- vol->HandlePointerEventL( *ptEvent );
- AssertTrueL( ETrue, KHandlePointerEventL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
-
- vol->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- vol->HandleControlEventL( iContainer,
- MCoeControlObserver::EEventRequestCancel );
- AssertTrueL( ETrue, KHandleControlEventL );
-
- vol->HandleVolumeKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KHandleVolumeKeyEventL );
-
- vol->SetRange( KVolumeMinValue, KVolumeMaxValue );
- AssertTrueL( ETrue, KSetRange );
-
- TInt maxVal, minVal;
- vol->GetRange( minVal, maxVal );
- AssertTrueL( ETrue, KGetRange );
-
- vol->Value();
- AssertTrueL( ETrue, KValue );
-
- vol->SetTitleTextL( KTitle );
- AssertTrueL( ETrue, KSetTitleTextL );
-
- vol->ShowProfileName( ETrue );
- AssertTrueL( ETrue, KShowProfileName );
-
- vol->ShowVolumePopupL();
- AssertTrueL( ETrue, KShowVolumePopupL );
-
- CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();
- CleanupStack::PushL( bitmap );
- vol->SetGraphics( KGraphicMode, bitmap, bitmap );
- AssertTrueL( ETrue, KSetGraphics );
-
- vol->CloseVolumePopup();
- AssertTrueL( ETrue, KCloseVolumePopup );
-
- vol->SetDecimalPlaces( 0 );
- AssertTrueL( ETrue, KSetDecimalPlaces );
- vol->SetTimeOutAsSecond( KTimeOut );
- AssertTrueL( ETrue, KSetTimeOutAsSecond );
- vol->SetAdjustmentIndicatorDisplay( ETrue );
- AssertTrueL( ETrue, KSetAdjustmentIndicatorDisplay );
- vol->SetStepSize( KStepSize );
- AssertTrueL( ETrue, KSetStepSize );
- vol->SetValueType( 0 );
- AssertTrueL( ETrue, KSetValueType );
-
- CleanupStack::Pop( bitmap );
- CleanupStack::Pop( vol );//vol
- delete vol;
-
- }
-
-// ----------------------------------------------------------------------------
-// TestLafSystemFontL
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomAknCase::TestLafSystemFontL()
- {
- _LIT( KNewL, "CLafSystemFont::NewL() invoked" );
- _LIT( KFont, "CLafSystemFont::Font() invoked" );
- _LIT( KUid, "CLafSystemFont::Uid() invoked" );
- _LIT( KDes, "CLafSystemFont::~CLafSystemFont() invoked" );
- CLafSystemFont* font = CLafSystemFont::NewL( KNullUid, NULL );
- CleanupStack::PushL( font );
- AssertNotNullL( font, KNewL );
-
- font->Font();
- AssertTrueL( ETrue, KFont );
-
- font->Uid();
- AssertTrueL( ETrue, KUid );
-
- CleanupStack::Pop( font );
- delete font;
- AssertTrueL( ETrue, KDes );
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslnapp.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-#include <eikstart.h>
-
-#include "bctestdomavkonpslnapp.h"
-#include "bctestdomavkonpslndocument.h"
-
-
-// ================= MEMBER FUNCTIONS ========================================
-
-// ---------------------------------------------------------------------------
-// TUid CBCTestDomAvkonPslnApp::AppDllUid()
-// Returns application UID.
-// ---------------------------------------------------------------------------
-//
-TUid CBCTestDomAvkonPslnApp::AppDllUid() const
- {
- return KUidBCTestDomain;
- }
-
-// ---------------------------------------------------------------------------
-// CApaDocument* CBCTestDomAvkonPslnApp::CreateDocumentL()
-// Creates CBCTestDomAvkonPslnDocument object.
-// ---------------------------------------------------------------------------
-//
-CApaDocument* CBCTestDomAvkonPslnApp::CreateDocumentL()
- {
- return CBCTestDomAvkonPslnDocument::NewL( *this );
- }
-
-// ================= OTHER EXPORTED FUNCTIONS ================================
-//
-// ---------------------------------------------------------------------------
-// CApaApplication* NewApplication()
-// Constructs CBCTestDomAvkonPslnApp.
-// Returns: CApaDocument*: created application object
-// ---------------------------------------------------------------------------
-//
-LOCAL_C CApaApplication* NewApplication()
- {
- return new CBCTestDomAvkonPslnApp;
- }
-
-GLDEF_C TInt E32Main()
- {
- return EikStart::RunApplication( NewApplication );
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslnappui.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <avkon.hrh>
-#include <aknsutils.h>
-
-#include "bctestdomavkonpslnappui.h"
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpslnview.h"
-#include "bctestutil.h"
-#include "bctestdomakncase.h"
-#include "bctestdomeikcase.h"
-#include "bctestdomfindcase.h"
-#include "bctestdomjplangcase.h"
-#include "bctestdompslncase.h"
-
-
-// ============================= MEMBER FUNCTIONS ============================
-
-// ---------------------------------------------------------------------------
-// constructor do nothing
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnAppUi::CBCTestDomAvkonPslnAppUi()
- {
- }
-
-// ---------------------------------------------------------------------------
-// symbian 2nd phase constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnAppUi::ConstructL()
- {
- BaseConstructL();
- AknsUtils::SetAvkonSkinEnabledL( ETrue );
-
- // init test util
- iTestUtil = CBCTestUtil::NewL();
-
- // init view
- CBCTestDomAvkonPslnView* view = CBCTestDomAvkonPslnView::NewL( iTestUtil );
- CleanupStack::PushL( view );
- AddViewL( view );
- CleanupStack::Pop( view );
-
- ActivateLocalViewL( view->Id() );
-
- // Add test case here.
- iTestUtil->AddTestCaseL( CBCTestDomAknCase::NewL( view->Container() ),
- _L( "domakn test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomEikCase::NewL( view->Container() ),
- _L( "domeik test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomFindCase::NewL( view->Container() ),
- _L( "domfind test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomJPLangCase::NewL( view->Container() ),
- _L( "domjplang test case" ) );
-
- iTestUtil->AddTestCaseL( CBCTestDomPslnCase::NewL( view->Container() ),
- _L( "dompsln test case" ) );
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnAppUi::~CBCTestDomAvkonPslnAppUi()
-// Destructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnAppUi::~CBCTestDomAvkonPslnAppUi()
- {
- delete iTestUtil;
- }
-
-// ---------------------------------------------------------------------------
-// handle menu command events
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnAppUi::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EAknSoftkeyBack:
- case EEikCmdExit:
- {
- Exit();
- return;
- }
- default:
- break;
- }
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslncontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include "bctestdomavkonpslncontainer.h"
-
-#define KAKNATLISTGRAY TRgb( 0xaaaaaa )
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer::CBCTestDomAvkonPslnContainer()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer::~CBCTestDomAvkonPslnContainer()
- {
- ResetControl();
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::ConstructL( const TRect& aRect )
- {
- CreateWindowL();
- SetRect( aRect );
- ActivateL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::Draw
-// Fills the window's rectangle.
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::Draw( const TRect& aRect ) const
- {
- CWindowGc& gc = SystemGc();
- gc.SetPenStyle( CGraphicsContext::ENullPen );
- gc.SetBrushColor( KAKNATLISTGRAY );
- gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
- gc.DrawRect( aRect );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::CountComponentControls
-// ---------------------------------------------------------------------------
-//
-TInt CBCTestDomAvkonPslnContainer::CountComponentControls() const
- {
- if ( iControl )
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::ComponentControl
-// ---------------------------------------------------------------------------
-//
-CCoeControl* CBCTestDomAvkonPslnContainer::ComponentControl( TInt ) const
- {
- return iControl;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::SetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::SetControl( CCoeControl* aControl )
- {
- iControl = aControl;
- if ( iControl )
- {
- // You can change the position and size
- iControl->SetExtent( Rect().iTl, Rect().Size() );
- iControl->ActivateL();
- DrawNow();
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnContainer::ResetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnContainer::ResetControl()
- {
- delete iControl;
- iControl = NULL;
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslndocument.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include "bctestdomavkonpslndocument.h"
-#include "bctestdomavkonpslnappui.h"
-
-
-// ================= MEMBER FUNCTIONS ========================================
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument* CBCTestDomAvkonPslnDocument::NewL( CEikApplication& )
-// Symbian OS two-phased constructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument* CBCTestDomAvkonPslnDocument::NewL(
- CEikApplication& aApp )
- {
- CBCTestDomAvkonPslnDocument* self =
- new( ELeave ) CBCTestDomAvkonPslnDocument( aApp );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument::~CBCTestDomAvkonPslnDocument()
-// Destructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument::~CBCTestDomAvkonPslnDocument()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnDocument::CBCTestDomAvkonPslnDocument( CEikApplication& )
-// Overload constructor.
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnDocument::CBCTestDomAvkonPslnDocument( CEikApplication& aApp )
- : CEikDocument( aApp )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CEikAppUi* CBCTestDomAvkonPslnDocument::CreateAppUiL()
-// Constructs CBCTestDomVolumeAppUi.
-// ---------------------------------------------------------------------------
-//
-CEikAppUi* CBCTestDomAvkonPslnDocument::CreateAppUiL()
- {
- return new( ELeave ) CBCTestDomAvkonPslnAppUi;
- }
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslnext.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,278 +0,0 @@
-/*
-* 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: class extended for test case
-*
-*/
-
-
-#include <bamdesca.h>
-#include <barsread.h>
-#include <bctestdomavkonpsln.rsg>
-#include "bctestdomavkonpslnext.h"
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransitionExt::CAknTransitionExt()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Destructor
-// ---------------------------------------------------------------------------
-//
-CAknTransitionExt::~CAknTransitionExt()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CAknTransitionExt::AknTransitionCallback
-// ---------------------------------------------------------------------------
-//
-TInt CAknTransitionExt::AknTransitionCallback( TInt,
- TInt,
- const TDesC8* )
- {
- return 0;
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransparentCameraSettingPageExt::
- CAknTransparentCameraSettingPageExt( TInt aResourceID,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray ):
- CAknTransparentCameraSettingPage
- (
- aResourceID,
- aCurrentSelectionIndex,
- aItemArray )
- {
-
- }
-
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAknTransparentCameraSettingPageExt::
- CAknTransparentCameraSettingPageExt( const TDesC* aSettingTitleText,
- TInt aSettingNumber,
- TInt aControlType,
- TInt aEditorResourceId,
- TInt aSettingPageResourceId,
- TInt& aCurrentSelectionIndex,
- const MDesCArray* aItemArray ):
- CAknTransparentCameraSettingPage
- (
- aSettingTitleText,
- aSettingNumber,
- aControlType,
- aEditorResourceId,
- aSettingPageResourceId,
- aCurrentSelectionIndex,
- aItemArray
- )
- {
-
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CAiwGenericParamConsumerExt::
- CAiwGenericParamConsumerExt( CEikApplication& aApp ):
- CAiwGenericParamConsumer( aApp )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CAiwGenericParamConsumerExt::CreateAppUiL()
-// ---------------------------------------------------------------------------
-//
-CEikAppUi* CAiwGenericParamConsumerExt::CreateAppUiL()
- {
- return NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CXnThemeManagementServiceObserverExt::HandleXnClientMessage()
-// ---------------------------------------------------------------------------
-//
-void CXnThemeManagementServiceObserverExt::HandleXnClientMessage(
- TXnServiceCompletedMessage /*aMessage*/ )
- {
- }
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CPslnFWBaseContainerExt::CPslnFWBaseContainerExt()
- {
- iListBox = NULL;
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static constructor
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseContainerExt::ConstructL( const TRect& aRect )
- {
-
- iListBox = new( ELeave ) CEikTextListBox();
- BaseConstructL( aRect, 0, R_BCTESTDOMAVKONPSLN_LISTBOX );
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseContainerExt::ConstructListBoxL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseContainerExt::ConstructListBoxL( TInt aResLbxId )
- {
- TResourceReader rReader;
- iCoeEnv->CreateResourceReaderLC( rReader, aResLbxId );
- iListBox->ConstructFromResourceL( rReader );
- CleanupStack::PopAndDestroy(); // rReader
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Destructor
-// ---------------------------------------------------------------------------
-//
-CPslnFWBaseContainerExt::~CPslnFWBaseContainerExt()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWMSKObserverExt::CheckMiddleSoftkeyLabelL()
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWMSKObserverExt::CheckMiddleSoftkeyLabelL()
- {
- }
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::ConstructL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::ConstructL()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::NewContainerL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::NewContainerL()
- {
- if( iContainer )
- delete iContainer;
- iContainer = NULL;
- iContainer = new ( ELeave )CPslnFWBaseContainerExt;
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::HandleListBoxSelectionL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::HandleListBoxSelectionL()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::GetCaptionL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::GetCaptionL( TDes& /*aCaption*/ ) const
- {
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::GetTabTextL()
-// ---------------------------------------------------------------------------
-//
-void CPslnFWBaseViewExt::GetTabTextL( TDes& /*aCaption*/ ) const
- {
- }
-
-
-// ================================ MEMBER FUNCTIONS =========================
-
-// ---------------------------------------------------------------------------
-// CGulIcon* CPslnFWBaseViewExt::CreateIconL()
-// ---------------------------------------------------------------------------
-//
-CGulIcon* CPslnFWBaseViewExt::CreateIconL()
- {
- return NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CPslnFWBaseViewExt::Id()
-// ---------------------------------------------------------------------------
-//
-TUid CPslnFWBaseViewExt::Id() const
- {
- return KNullUid;
- }
-
-// ---------------------------------------------------------------------------
-// CItemFinderObserverExt::HandleParsingComplete()
-// ---------------------------------------------------------------------------
-//
-void CItemFinderObserverExt::HandleParsingComplete()
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWAppThemeObserverEx::HandleMessage()
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWAppThemeObserverExt::HandleMessage( TXnServiceCompletedMessage
- /*aMessage*/ )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CMPslnFWAppThemeObserverEx::HandleMessage() Overload
-// ---------------------------------------------------------------------------
-//
-void CMPslnFWAppThemeObserverExt::HandleMessage(
- const TXnServiceCompletedMessage /*aMessage*/,
- CArrayPtrFlat<CXnODT>& /*aAppThemeList*/ )
- {
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomavkonpslnview.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,137 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <aknviewappui.h>
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomavkonpsln.hrh"
-#include "bctestdomavkonpslnview.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestutil.h"
-
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView* CBCTestDomAvkonPslnView::NewL( CBCTestUtil* aUtil )
- {
- CBCTestDomAvkonPslnView* self = new( ELeave ) CBCTestDomAvkonPslnView();
- CleanupStack::PushL( self );
- self->ConstructL( aUtil );
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView::CBCTestDomAvkonPslnView()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::ConstructL( CBCTestUtil* aUtil )
- {
- BaseConstructL( R_BCTESTDOMAVKONPSLN_VIEW );
-
- iContainer = new( ELeave ) CBCTestDomAvkonPslnContainer();
- iContainer->SetMopParent( this );
- iContainer->ConstructL( ClientRect() );
- AppUi()->AddToStackL( *this, iContainer );
- iContainer->MakeVisible( ETrue );
-
- iTestUtil = aUtil;
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnView::~CBCTestDomAvkonPslnView()
- {
- if ( iContainer )
- {
- AppUi()->RemoveFromStack( iContainer );
- }
- delete iContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::Id
-// ---------------------------------------------------------------------------
-//
-TUid CBCTestDomAvkonPslnView::Id() const
- {
- return KBCTestDomainViewId;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::DoActivateL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::DoActivateL( const TVwsViewId&, TUid,
- const TDesC8& )
- {
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::DoDeactivate
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::DoDeactivate()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::Container
-// ---------------------------------------------------------------------------
-//
-CBCTestDomAvkonPslnContainer* CBCTestDomAvkonPslnView::Container()
- {
- return iContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAvkonPslnView::HandleCommandL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomAvkonPslnView::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EProgCmdAutoTest:
- iTestUtil->RunL();
- break;
- default:
- if ( aCommand > EBCTestCmdEmptyOutline &&
- aCommand < EBCTestCmdMaxOutline )
- {
- iTestUtil->RunL( aCommand );
- }
- break;
- }
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomeikcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,285 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32const.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <fbs.h>
-#include <aknnotedialog.h>
-#include <eikalmct.h>
-#include <eikslbd.h>
-#include <eiksoftkeyimage.h>
-#include <eikimage.h>
-#include <avkon.mbg>
-#include <akniconutils.h>
-#include <eiksrvui.h>
-#include <tactilefeedbackserver.h>
-
-#include "bctestdomeikcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-// CONSTANTS
-
-const TInt KWidth = 25;
-const TInt KHeight = 25;
-
-_LIT( KText, "Text" );
-
-
-// ============================ MEMBER FUNCTIONS ============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-class CEikServAppUi;
-CBCTestDomEikCase* CBCTestDomEikCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomEikCase* self = new( ELeave ) CBCTestDomEikCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomEikCase::CBCTestDomEikCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomEikCase::~CBCTestDomEikCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::BuildScriptL()
- {
-
- const TInt scripts[] =
- {
- LeftCBA,
- Down,
- LeftCBA
- };
- AddTestScriptL(scripts, sizeof(scripts)/sizeof(TInt));
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline2 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline2:
- TestServAppUiBaseL();
- TestAlarmControlL();
- TestSettingsListBoxDataL();
- TestEikSoftkeyImageL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomAknCase::TestAlarmControlL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestAlarmControlL()
- {
- _LIT( KCEikAlarmControl, "CEikAlarmControl::EikAlarmControl invoked" );
- _LIT( KConstructL, "CEikAlarmControl::ConstructL invoked" );
- _LIT( KDes, "CEikAlarmControl::~EikAlarmControl invoked" );
-
- CEikAlarmControl* contrl = new ( ELeave ) CEikAlarmControl( NULL, NULL );
- CleanupStack::PushL( contrl );
- AssertNotNullL( contrl, KCEikAlarmControl );
- contrl->ConstructL();
- AssertTrueL( ETrue, KConstructL );
-
- CleanupStack::PopAndDestroy( contrl );
- AssertTrueL( ETrue, KDes );
-
- // Testcase for class MTactileFeedbackServer
- //MTactileFeedbackServer::Instance();
- //_LIT( KMInstance, "MTactileFeedbackServer::Instance" );
- //AssertTrueL( ETrue, KMInstance );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestSettingsListBoxDataL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestSettingsListBoxDataL()
- {
-
- _LIT( KCSettingsListBoxData, "CSettingsListBoxData::NewL invoked" );
- _LIT( KDes, "CSettingsListBoxData::~CSettingsListBoxData invoked" );
- _LIT( KDraw, "CSettingsListBoxData::Draw invoked" );
-
- CSettingsListBoxData* data = CSettingsListBoxData::NewL();
- CleanupStack::PushL( data );
- AssertNotNullL( data, KCSettingsListBoxData );
-
- iContainer->ActivateGc();
- TListItemProperties proper;
- CWindowGc& gc = iContainer->SystemGc();
-
- TRect rect( 0, 0, KWidth, KHeight );
- CFormattedCellListBoxData::TColors gulcolor;
-
- data->Draw( proper, gc, &KText, rect, ETrue, gulcolor );
- AssertTrueL( ETrue, KDraw );
- iContainer->DeactivateGc();
-
- CleanupStack::PopAndDestroy( data );
- AssertTrueL( ETrue, KDes );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestEikSoftkeyImageL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestEikSoftkeyImageL()
- {
-
- _LIT( KSetImage, "EikSoftkeyImage::SetImage() invoked" );
- _LIT( KSetLabel, "EikSoftkeyImage::SetLabel() invoked" );
-
- CEikButtonGroupContainer* container = CEikButtonGroupContainer::Current();
- EikSoftkeyImage::SetLabel( container, ETrue );
- AssertTrueL( ETrue, KSetLabel );
-
- CEikImage* image = new ( ELeave ) CEikImage;
- CleanupStack::PushL( image );
- CFbsBitmap* bmp = AknIconUtils::CreateIconL( AknIconUtils::AvkonIconFileName(),
- EMbmAvkonQgn_indi_speaker_active );
- image->SetPicture( bmp );
-
- EikSoftkeyImage::SetImage( container, *image, ETrue );
- AssertTrueL( ETrue, KSetImage );
- CleanupStack::Pop( image );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestServAppUiBaseExtL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomEikCase::TestServAppUiBaseL()
- {
-
- _LIT( KHideApplicationFromFswL,
- "CEikServAppUi::HideApplicationFromFswL() invoked" );
- _LIT( KActivateDisplayIfNeeded,
- "CEikServAppUi::ActivateDisplayIfNeeded() invoked" );
- _LIT( KNewLC, "CEikServAppUiBase::NewLC() invoked" );
- _LIT( KBringAlertGroupWinForwards,
- "CEikServAppUiBase::BringAlertGroupWinForwards() invoked" );
- _LIT( KHandleResourceChangeL,
- "CEikServAppUiBase::HandleResourceChangeL() invoked" );
- _LIT( KHandleThreadExitL,
- "CEikServAppUiBase::HandleThreadExitL() invoked" );
- _LIT( KHandleForegroundEventL,
- "CEikServAppUiBase::HandleForegroundEventL() invoked" );
- _LIT( KSuppressAppSwitching,
- "CEikServAppUiBase::SuppressAppSwitching() invoked" );
-
- CEikServAppUiBase* ui = CEikServAppUiBase::NewLC();
- AssertTrueL( ETrue, KNewLC );
-
- CEikServAppUi* appui =
- static_cast<CEikServAppUi*>(CEikonEnv::Static()->AppUi());
-
- ui = static_cast<CEikServAppUiBase*>(CEikonEnv::Static()->AppUi());
-
- //CEikServAppUiBase::HandleForegroundEventL
- ui->CEikServAppUiBase::HandleForegroundEventL( EFalse );
- AssertTrueL( ETrue, KHandleForegroundEventL );
- //CEikServAppUi::ActivateDisplayIfNeeded()
- appui->CEikServAppUi::ActivateDisplayIfNeeded();
- AssertTrueL( ETrue, KActivateDisplayIfNeeded );
-
- //CEikServAppUi::HideApplicationFromFswL()
- appui->CEikServAppUi::HideApplicationFromFswL( 0, EFalse );
- AssertTrueL( ETrue, KHideApplicationFromFswL );
-
- //CEikServAppUiBase::BringAlertGroupWinForwards()
- appui->CEikServAppUiBase::BringAlertGroupWinForwards( ETrue );
- appui->CEikServAppUiBase::BringAlertGroupWinForwards( EFalse );
- AssertTrueL( ETrue, KBringAlertGroupWinForwards );
-
- //CEikServAppUiBase::HandleThreadExitL()
- RThread thread;
- appui->HandleThreadExitL( thread );
- AssertTrueL( ETrue, KHandleThreadExitL );
- appui->HandleForegroundEventL( ETrue );
- AssertTrueL( ETrue, KHandleForegroundEventL );
-
- //CEikServAppUiBase::SuppressAppSwitching()
- appui->SuppressAppSwitching( ETrue );
- appui->SuppressAppSwitching( EFalse );
-
- AssertTrueL( ETrue, KSuppressAppSwitching );
-
- //CEikServAppUiBase::HandleResourceChangeL()
- CEikAppUi* cui = appui;
- cui->HandleResourceChangeL( 0 );
- AssertTrueL( ETrue, KHandleResourceChangeL );
-
- MEikServAppUiSessionHandler* hand =
- static_cast<CEikServAppUi*>(CEikonEnv::Static()->AppUi());
- hand->CycleTasksL( EForwards );
- hand->NotifyAlarmServerOfTaskChangeL();
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomfindcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,415 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <coemain.h>
-#include <coecntrl.h>
-#include <finditemdialog.h>
-#include <finditemmenu.h>
-#include <eikmenup.h>
-#include <eikrted.h>
-#include <findutil.h>
-#include <gulbordr.h>
-#include <coeaui.h>
-#include <txtfrmat.h>
-
-#include <bctestdomavkonpsln.rsg>
-#include "bctestdomfindcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-//CONSTANT
-
-const TInt KDesLength = 32;
-_LIT( KUrlDes, "http://www.symbian.com" );
-_LIT( KNumberDes, "callback73644444");
-
-// =========================== MEMBER FUNCTIONS =============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase* CBCTestDomFindCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomFindCase* self = new( ELeave ) CBCTestDomFindCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase::CBCTestDomFindCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomFindCase::~CBCTestDomFindCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomFindCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- LeftCBA,
- REP( Down, 2 ),
- LeftCBA,
-
- WAIT(3),
- RightCBA,
- KeyOK,
- WAIT(3),
- KeyOK
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomFindCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline3 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline3:
- TestFindItemDialogL();
- TestFindItemMenuL();
- TestFindUtilL();
- TestItemFinderL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindItemDialogL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindItemDialogL()
-{
- _LIT( KNewL, "CFindItemDialog::NewL invoked" );
- _LIT( KOfferKeyEventL, "CFindItemDialog::OfferKeyEventL invoked" );
- _LIT( KProcessCommandL, "CFindItemDialog::ProcessCommandL invoked" );
- _LIT( KExecuteLD, "CFindItemDialog::ExecuteLD invoked" );
-
- CFindItemDialog* dlg = CFindItemDialog::NewL( KUrlDes,
- CFindItemEngine::EFindItemSearchURLBin );
- CleanupStack::PushL( dlg );
- AssertNotNullL( dlg, KNewL );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
- dlg->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
-
- CCoeEnv::Static()->AppUi()->AddToStackL( dlg );
- dlg->ProcessCommandL( EAknSoftkeyHide );
- AssertTrueL( ETrue, KProcessCommandL );
- CCoeEnv::Static()->AppUi()->RemoveFromStack( dlg );
-
- CleanupStack::Pop( dlg );
- dlg->ExecuteLD();
- AssertTrueL( ETrue, KExecuteLD );
-}
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindItemMenuL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindItemMenuL()
-{
- _LIT( KNewL, "CFindItemMenu::NewL invoked" );
- _LIT( KNewLC, "CFindItemMenu::NewLC invoked" );
- _LIT( KDes, "CFindItemMenu::~CFindItemMenu invoked" );
-
- CFindItemMenu* menu = CFindItemMenu::NewL( 0 );
- CleanupStack::PushL( menu );
-
- AssertNotNullL( menu, KNewL );
- CleanupStack::PopAndDestroy( menu );
- AssertTrueL( ETrue, KDes );
-
- menu = CFindItemMenu::NewLC( R_BCTESTDOMAVKONPSLN_CASE_MENU );
- AssertNotNullL( menu, KNewLC );
-
- CAknForm* frm = new (ELeave) CAknForm;
- CleanupStack::PushL( frm );
- frm->ConstructL();
-
- CEikMenuPane* pane = new ( ELeave ) CEikMenuPane( frm );
- CleanupStack::PushL( pane );
- pane->ConstructL( pane,0 );
-
- _LIT( KDisplayFindItemMenuItemL,
- "CFindItemMenu::DisplayFindItemMenuItemL invoked" );
- menu->DisplayFindItemMenuItemL( *pane, 0 );
- AssertTrueL( ETrue, KDisplayFindItemMenuItemL );
-
- _LIT( KDisplayFindItemCascadeMenuL,
- "CFindItemMenu::DisplayFindItemCascadeMenuL invoked" );
- menu->DisplayFindItemCascadeMenuL( *pane );
- AssertTrueL( ETrue, KDisplayFindItemCascadeMenuL );
-
- _LIT( KCommandIsValidL, "CFindItemMenu::CommandIsValidL invoked" );
- menu->CommandIsValidL( 0 );
- AssertTrueL( ETrue, KCommandIsValidL );
-
- _LIT( KSearchCase, "CFindItemMenu::SearchCase invoked" );
- menu->SearchCase( R_BCTESTDOMAVKONPSLN_CASE_MENU+1 );
- AssertTrueL( ETrue, KSearchCase );
-
- _LIT( KUpdateItemFinderMenuL, "CFindItemMenu::UpdateItemFinderMenuL invoked" );
- menu->UpdateItemFinderMenuL( R_BCTESTDOMAVKONPSLN_CASE_MENU, pane );
- AssertTrueL( ETrue, KUpdateItemFinderMenuL );
-
- _LIT( KHandleItemFinderCommandL,
- "CFindItemMenu::HandleItemFinderCommandL invoked" );
- menu->HandleItemFinderCommandL( 0 );
- AssertTrueL( ETrue, KHandleItemFinderCommandL );
-
- _LIT( KAttachItemFinderMenuL,
- "CFindItemMenu::HandleItemFinderCommandL invoked" );
- menu->AttachItemFinderMenuL( R_BCTESTDOMAVKONPSLN_CASE_MENU );
- AssertTrueL( ETrue, KAttachItemFinderMenuL );
-
- _LIT( KSetCallbackNumber,
- "CFindItemMenu::SetCallbackNumber invoked" );
-
- menu->SetCallbackNumber( KNumberDes );
- AssertTrueL( ETrue, KSetCallbackNumber );
-
- _LIT( KHandleCallL,
- "CFindItemMenu::HandleCallL invoked" );
- menu->HandleCallL( KUrlDes );
- AssertTrueL( ETrue, KHandleCallL );
-
- _LIT( KHandleVoIPCallL,
- "CFindItemMenu::HandleCallL invoked" );
- menu->HandleVoIPCallL( KUrlDes );
- AssertTrueL( ETrue, KHandleVoIPCallL );
-
- _LIT( KSetSenderHighlightStatus,
- "CFindItemMenu::SetSenderHighlightStatus invoked" );
- menu->SetSenderHighlightStatus( ETrue );
- AssertTrueL( ETrue, KSetSenderHighlightStatus );
-
- _LIT( KSetSenderDisplayText,
- "CFindItemMenu::SetSenderDisplayText invoked" );
- menu->SetSenderDisplayText( KNumberDes );
- AssertTrueL( ETrue, KSetSenderDisplayText );
-
- _LIT( KAddItemFindMenuL,
- "CFindItemMenu::AddItemFindMenuL() invoked" );
-
- CItemFinder* finder = CItemFinder::NewL();
- CleanupStack::PushL( finder );
- menu->AddItemFindMenuL( finder, pane, 0, KNumberDes );
- AssertTrueL( ETrue, KAddItemFindMenuL );
-
- _LIT( KSetSenderDescriptorType,
- "CFindItemMenu::SetSenderDescriptorType() invoked" );
-
- menu->SetSenderDescriptorType( CItemFinder::EUrlAddress );
- AssertTrueL( ETrue, KSetSenderDescriptorType );
-
- CleanupStack::PopAndDestroy( finder );
- CleanupStack::PopAndDestroy( pane );
- CleanupStack::PopAndDestroy( frm );
- CleanupStack::PopAndDestroy( menu );
-}
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestFindUtilL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestFindUtilL()
- {
- _LIT( KNewL, "CFindUtil::NewL() invoked" );
- _LIT( KDes, "CFindUtil::~CFindUtil() invoked" );
- CFindUtil* util = CFindUtil::NewL();
- CleanupStack::PushL( util );
- AssertNotNullL( util, KNewL );
-
- CleanupStack::Pop( util );
- delete util;
- AssertTrueL( ETrue, KDes );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomEikCase::TestItemFinderL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomFindCase::TestItemFinderL()
- {
-
- _LIT( KNewL, "CItemFinder::NewL() invoked" );
- _LIT( KNextItemOrScrollL, "CItemFinder::NextItemOrScrollL() invoked" );
- _LIT( KSetFindModeL, "CItemFinder::SetFindModeL() invoked" );
- _LIT( KSetEditor, "CItemFinder::SetEditor() invoked" );
- _LIT( KParseThisText, "CItemFinder::ParseThisText() invoked" );
- _LIT( KCreateDoItText, "CItemFinder::CreateDoItText() invoked" );
- _LIT( KActivateThisTextL, "CItemFinder::ActivateThisTextL() invoked" );
- _LIT( KReformatOnRecognise, "CItemFinder::ReformatOnRecognise() invoked" );
- _LIT( KReformatOnRollover, "CItemFinder::ReformatOnRollover() invoked" );
- _LIT( KGetRecogniseFormat, "CItemFinder::GetRecogniseFormat() invoked" );
- _LIT( KGetRolloverFormat, "CItemFinder::GetRolloverFormat() invoked" );
- _LIT( KConfirmCursorOverTag, "CItemFinder::ConfirmCursorOverTag() invoked" );
- _LIT( KMParser_Reserved_2, "CItemFinder::MParser_Reserved_2() invoked" );
- _LIT( KPositionOfNextItem, "CItemFinder::PositionOfNextItem() invoked" );
- _LIT( KResetCurrentItem, "CItemFinder::ResetCurrentItem() invoked" );
- _LIT( KResolveAndSetItemTypeL, "CItemFinder::ResolveAndSetItemTypeL() invoked" );
- _LIT( KAddObserver, "CItemFinder::AddObserver() invoked" );
- _LIT( KItemWasTappedL, "CItemFinder::ItemWasTappedL() invoked" );
- _LIT( KSetExternalLinks, "CItemFinder::SetExternalLinks() invoked" );
- _LIT( KDes, "CItemFinder::~CItemFinder() invoked" );
- _LIT( KRelease, "CItemFinder::Release() invoked" );
- _LIT( KCurrentSelection, "CItemFinder::CurrentSelection() invoked" );
- _LIT( KCurrentItemExt, "CItemFinder::CurrentItemExt() invoked" );
-
-
- CItemFinder* finder = CItemFinder::NewL();
- CleanupStack::PushL( finder );
- AssertNotNullL( finder, KNewL );
-
- finder->NextItemOrScrollL( CItemFinder::EInit );
- AssertTrueL( ETrue, KNextItemOrScrollL );
-
- finder->SetFindModeL( 0 );
- AssertTrueL( ETrue, KSetFindModeL );
-
- TGulBorder gulBorder;
- CEikRichTextEditor* editor = new ( ELeave ) CEikRichTextEditor ( gulBorder );
- CleanupStack::PushL( editor );
- editor->ConstructL( iContainer, 0, 0, 0 );
-
- finder->SetEditor( &editor );
- AssertTrueL( ETrue, KSetEditor );
-
- TInt tag(0), len(0);
- CRichText* richText = editor->RichText();
- finder->ParseThisText( *richText, ETrue, 1, 1, tag, len ) ;
- AssertTrueL( ETrue, KParseThisText );
-
- finder->CreateDoItText( *richText, 1, 1 );
- AssertTrueL( ETrue, KCreateDoItText );
-
- finder->ActivateThisTextL( *richText, 1, 1 );
- AssertTrueL( ETrue, KActivateThisTextL );
-
- finder->ReformatOnRecognise();
- AssertTrueL( ETrue, KReformatOnRecognise );
-
- finder->ReformatOnRollover();
- AssertTrueL( ETrue, KReformatOnRollover );
-
- TCharFormat format;
- finder->GetRecogniseFormat( format );
- AssertTrueL( ETrue, KGetRecogniseFormat );
-
- finder->GetRolloverFormat( format );
- AssertTrueL( ETrue, KGetRolloverFormat );
-
- finder->ConfirmCursorOverTag( *richText, 1, 1, 1 );
- AssertTrueL( ETrue, KConfirmCursorOverTag );
-
- finder->MParser_Reserved_2();
- AssertTrueL( ETrue, KMParser_Reserved_2 );
-
- finder->PositionOfNextItem( CItemFinder::EInit );
- AssertTrueL( ETrue, KPositionOfNextItem );
-
- finder->ResetCurrentItem();
- AssertTrueL( ETrue, KResetCurrentItem );
-
- finder->ResolveAndSetItemTypeL();
- AssertTrueL( ETrue, KResolveAndSetItemTypeL );
-
- CItemFinderObserverExt* observer = new ( ELeave ) CItemFinderObserverExt;
- CleanupStack::PushL( observer );
-
- finder->AddObserver( *observer );
- AssertTrueL( ETrue, KAddObserver );
-
- TPoint point( 0, 0 );
- finder->ItemWasTappedL( point );
- AssertTrueL( ETrue, KItemWasTappedL );
-
- TBuf<KDesLength> des( KUrlDes );
- CItemFinder::CFindItemExt* findex = new ( ELeave ) CItemFinder::CFindItemExt;
- CleanupStack::PushL( findex );
-
- findex->iItemType = CItemFinder::EUrlAddress;
- findex->iItemDescriptor = des.AllocL();
- CArrayPtrFlat<CItemFinder::CFindItemExt>* links =
- new ( ELeave ) CArrayPtrFlat<CItemFinder::CFindItemExt>( 1 );
- CleanupStack::PushL( links );
- links->AppendL( findex );
-
- finder->SetExternalLinks( links );
- AssertTrueL( ETrue, KSetExternalLinks );
-
- finder->CurrentItemExt();
- AssertTrueL( ETrue, KCurrentItemExt );
-
- finder->CurrentSelection();
- AssertTrueL( ETrue, KCurrentSelection );
-
- finder->Release();
- AssertTrueL( ETrue, KRelease );
-
- CleanupStack::PopAndDestroy( links );
- CleanupStack::PopAndDestroy( findex );
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::PopAndDestroy( editor );
- CleanupStack::PopAndDestroy( finder );
-
- AssertTrueL( ETrue, KDes );
- }
- //end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdomjplangcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,316 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <coecntrl.h>
-#include <jplangutil.h>
-#include <numbergrouping.h>
-#include <genericparamconsumer.h>
-#include <aiwgenericparam.h>
-
-
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdomjplangcase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-//CONSTANTS
-
-const TInt KDesLength = 24;
-_LIT( KText, "Text" );
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase* CBCTestDomJPLangCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomJPLangCase* self = new( ELeave ) CBCTestDomJPLangCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase::CBCTestDomJPLangCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomJPLangCase::~CBCTestDomJPLangCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- LeftCBA,
- REP( Down, 3 ),
- LeftCBA
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline4 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline4:
- TestJPLangUtilL();
- TestNumberGroupL();
- TestGenericParamConsumerL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestLayoutDecorator
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestJPLangUtilL()
- {
- // Test some API here
-
- _LIT( KConvertHalfToFullWidth,
- "JPLangUtil::ConvertHalfToFullWidth() invoked" );
- _LIT( KConvertFullToHalfWidth,
- "JPLangUtil::ConvertFullToHalfWidth() invoked" );
- _LIT( KConvertHalfToFullWidthKatakana,
- "JPLangUtil::ConvertHalfToFullWidthKatakana() invoked" );
- _LIT( KConvertFullHiragnaToFullKatakana,
- "JPLangUtil::ConvertFullHiragnaToFullKatakana() invoked" );
- _LIT( KIsKatakana, "JPLangUtil::IsKatakana() invoked" );
- _LIT( KIsHiragana, "JPLangUtil::IsHiragana() invoked" );
- _LIT( KIsKanji, "JPLangUtil::IsKanji() invoked" );
- _LIT( KIsHalfWidth, "JPLangUtil::IsKanji() invoked" );
- _LIT( KIsFullWidth, "JPLangUtil::IsFullWidth() invoked" );
-
- TBuf<KDesLength> unisrc( KText );
- TBuf<KDesLength> unides;
- JPLangUtil::ConvertHalfToFullWidth( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidth );
-
- JPLangUtil::ConvertFullToHalfWidth( unisrc, unides );
- AssertTrueL( ETrue, KConvertFullToHalfWidth );
-
- JPLangUtil::ConvertHalfToFullWidthKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidthKatakana );
-
- JPLangUtil::ConvertFullToHalfWidthKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertHalfToFullWidthKatakana );
-
- JPLangUtil::ConvertFullHiragnaToFullKatakana( unisrc, unides );
- AssertTrueL( ETrue, KConvertFullHiragnaToFullKatakana );
-
- JPLangUtil::IsKatakana( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsKatakana );
-
- JPLangUtil::IsHiragana( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsHiragana );
-
- JPLangUtil::IsKanji( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsKanji );
-
- JPLangUtil::IsHalfWidth( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsHalfWidth );
-
- JPLangUtil::IsFullWidth( *unisrc.Ptr() );
- AssertTrueL( ETrue, KIsFullWidth );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestNumberGroupL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestNumberGroupL()
- {
-
- _LIT( KNewL, "CPNGNumberGrouping::NewL() invoked" );
- _LIT( KDes, "CPNGNumberGrouping::~CPNGNumberGrouping() invokde" );
- _LIT( KNewLC, "CPNGNumberGrouping::NewLC() invoked" );
- _LIT( KInsert, "CPNGNumberGrouping::Insert() invoked" );
- _LIT( KDelete, "CPNGNumberGrouping::Delete() invoked" );
- _LIT( KAppend, "CPNGNumberGrouping::Append() invoked" );
- _LIT( KSet, "CPNGNumberGrouping::Set() invoked" );
- _LIT( KUnFormattedLength,
- "CPNGNumberGrouping::UnFormattedLength() invoked" );
- _LIT( KMaxDisplayLength,
- "CPNGNumberGrouping::MaxDisplayLength() invoked" );
- _LIT( KIsSpace, "CPNGNumberGrouping::IsSpace() invoked" );
-
- _LIT( KFormattedNumber,
- "CPNGNumberGrouping::FormattedNumber() invoked" );
- _LIT( KFormattedNumberOverLoad,
- "CPNGNumberGrouping::FormattedNumber() overload invoked" );
- _LIT( KReverseFormattedNumber,
- "CPNGNumberGrouping::ReverseFormattedNumber() invoked" );
- _LIT( KReverseFormattedNumberOverLoad,
- "CPNGNumberGrouping::ReverseFormattedNumber() overload invoked" );
- _LIT( KSelection,
- "CPNGNumberGrouping::Selection() invoked" );
- _LIT( KUnFormattedNumber,
- "CPNGNumberGrouping::UnFormattedNumber() invoked" );
- _LIT( KIsCharacterInsertedByNumberGrouping,
- "CPNGNumberGrouping::IsCharacterInsertedByNumberGrouping() invoked" );
- _LIT( KIsChangedByGrouping,
- "CPNGNumberGrouping::IsChangedByGrouping() overload invoked" );
-
- CPNGNumberGrouping* group = CPNGNumberGrouping::NewL();
- CleanupStack::PushL( group );
- AssertNotNullL( group, KNewL );
-
- CleanupStack::Pop( group );
- delete group;
- group = NULL;
- AssertTrueL( ETrue, KDes );
-
- group = CPNGNumberGrouping::NewLC();
- AssertNotNullL( group, KNewLC );
-
- const TInt index = 0;
- TText chr( 'a' );
- TBuf<KDesLength> numstr( KText );
-
- group->Insert( index, chr );
- AssertTrueL( ETrue, KInsert );
-
- group->Delete( index );
- AssertTrueL( ETrue, KDelete );
-
- group->Append( chr );
- AssertTrueL( ETrue, KAppend );
-
- group->Set( numstr );
- AssertTrueL( ETrue, KSet );
-
- group->UnFormattedLength();
- AssertTrueL( ETrue, KUnFormattedLength );
-
- group->MaxDisplayLength();
- AssertTrueL( ETrue, KMaxDisplayLength );
-
- group->IsSpace( index );
- AssertTrueL( ETrue, KIsSpace );
-
- group->FormattedNumber( index, index );
- AssertTrueL( ETrue, KFormattedNumber );
-
- group->FormattedNumber();
- AssertTrueL( ETrue, KFormattedNumberOverLoad );
-
- group->ReverseFormattedNumber( index, index );
- AssertTrueL( ETrue, KReverseFormattedNumber );
-
- group->ReverseFormattedNumber();
- AssertTrueL( ETrue, KReverseFormattedNumberOverLoad );
-
- group->Selection( index, index );
- AssertTrueL( ETrue, KIsSpace );
-
- group->UnFormattedNumber( index, index );
- AssertTrueL( ETrue, KSelection );
-
- group->UnFormattedNumber();
- AssertTrueL( ETrue, KUnFormattedNumber );
-
- group->IsCharacterInsertedByNumberGrouping( index );
- AssertTrueL( ETrue, KIsCharacterInsertedByNumberGrouping );
-
- group->IsChangedByGrouping();
- AssertTrueL( ETrue, KIsChangedByGrouping );
-
- CleanupStack::PopAndDestroy( group );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestGenericParamConsumerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomJPLangCase::TestGenericParamConsumerL()
- {
-
- _LIT( KAiwGenericParamConsumer,
- "CAiwGenericParamConsumer::CAiwGenericParamConsumer() invoked" );
- _LIT( KDes,
- "CAiwGenericParamConsumer::~CAiwGenericParamConsumer() invoked" );
- _LIT( KRestoreL,
- "CAiwGenericParamConsumer::RestoreL() invoked" );
-
- CEikAppUi* appui = static_cast<CEikAppUi*>( CCoeEnv::Static()->AppUi() );
- CAiwGenericParamConsumerExt* consumer =
- new ( ELeave ) CAiwGenericParamConsumerExt( *appui->Application() );
- CleanupStack::PushL( consumer );
- AssertNotNullL( consumer, KAiwGenericParamConsumer );
-
- CAiwGenericParamList* list = CAiwGenericParamList::NewL();
- CleanupStack::PushL( list );
- TRAP_IGNORE( consumer->SetOutputParamsL( list ) );
-
- CEikDocument* doc = CEikonEnv::Static()->EikAppUi()->Document();
- CStreamStore* strm = doc->EditStore();
- CStreamDictionary* dict = CStreamDictionary::NewLC();
- TRAP_IGNORE( consumer->RestoreL( *strm, *dict ) );
- AssertTrueL( ETrue, KRestoreL );
-
- CleanupStack::PopAndDestroy( dict );
- CleanupStack::PopAndDestroy( list );
- CleanupStack::PopAndDestroy( consumer );
- AssertTrueL( ETrue, KDes );
- }
- //end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomavkonpsln/src/bctestdompslncase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,472 +0,0 @@
-/*
-* 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: ?Description
-*
-*/
-
-
-#include <w32std.h>
-#include <e32base.h>
-#include <coecntrl.h>
-#include <barsread.h>
-#include <badesca.h>
-#include <pslnfwiconhelper.h>
-#include <pslnfwpluginhandler.h>
-#include <coneresloader.h>
-#include <aknappui.h>
-#include <eikspane.h>
-#include <aknnavide.h>
-#include <pslnfwappthemehandler.h>
-#include <xnodt.h>
-#include <xnthememanagement.h>
-#include <aknform.h>
-#include <sortutil.h>
-
-#include <bctestdomavkonpsln.rsg>
-
-#include "bctestdompslncase.h"
-#include "bctestdomavkonpslncontainer.h"
-#include "bctestdomavkonpslnext.h"
-#include "bctestdomavkonpsln.hrh"
-
-// CONSTANTS
-
-const TInt KPluginUid = 0x101F84AF;
-
-_LIT( KFilePath, "z:\\resource\\psln.rsc" );
-_LIT( KFileName, "psln.rsc" );
-_LIT( KFileDir, "z:\\resource\\" );
-_LIT8( KMessage, "1");
-
-// =========================== MEMBER FUNCTIONS =============================
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase* CBCTestDomPslnCase::NewL( CBCTestDomAvkonPslnContainer*
- aContainer )
- {
- CBCTestDomPslnCase* self = new( ELeave ) CBCTestDomPslnCase(
- aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase::CBCTestDomPslnCase( CBCTestDomAvkonPslnContainer*
- aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomPslnCase::~CBCTestDomPslnCase()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- LeftCBA,
- REP( Down, 4 ),
- LeftCBA
- };
- AddTestScriptL( scripts, sizeof(scripts)/sizeof(TInt) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::RunL( TInt aCmd )
- {
- if ( aCmd != EBCTestCmdOutline5 )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline5:
- TestPslnFWBaseContainerL();
- TestPslnFWBaseViewL();
- TestFWIconHelperL();
- TestFWPluginHandlerL();
- TestPslnFWAppThemeHandlerL();
- break;
- default:
- break;
- }
- }
-
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestPslnFWBaseContainerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWBaseContainerL()
- {
-
- _LIT( KCPslnFWBaseContainer,
- "CPslnFWBaseContainer::CPslnFWBaseContainer() invoked" );
- _LIT( KDes,
- "CPslnFWBaseContainer::~CPslnFWBaseContainer() invoked" );
- _LIT( KConstructL,
- "CPslnFWBaseContainer::ConstructL() invoked" );
- _LIT( KSetMiddleSoftkeyObserver,
- "CPslnFWBaseContainer::SetMiddleSoftkeyObserver() invoked" );
- _LIT( KHandleResourceChange,
- "CPslnFWBaseContainer::HandleResourceChange() invoked" );
- _LIT( KCountComponentControls,
- "CPslnFWBaseContainer::CountComponentControls() invoked" );
- _LIT( KComponentControl,
- "CPslnFWBaseContainer::ComponentControl() invoked" );
- _LIT( KOfferKeyEventL,
- "CPslnFWBaseContainer::OfferKeyEventL() invoked" );
-
- TRect rect( 0, 0, 0, 0 );
- CPslnFWBaseContainer* container = new ( ELeave ) CPslnFWBaseContainerExt;
- CleanupStack::PushL( container );
- AssertTrueL( ETrue, KCPslnFWBaseContainer );
-
- CMPslnFWMSKObserverExt* observer = new ( ELeave ) CMPslnFWMSKObserverExt;
- CleanupStack::PushL( observer );
-
- container->ConstructL( rect );
- AssertTrueL( ETrue, KConstructL );
- container->SetFocus( EDrawNow );
-
- container->SetMiddleSoftkeyObserver( observer );
- AssertTrueL( ETrue, KSetMiddleSoftkeyObserver );
-
- TKeyEvent keyEvent = { EKeyPause, EStdKeySpace, 0, 0 };
- CCoeControl* ctrl = container;
-
- ctrl->HandleResourceChange( 0 );
- AssertTrueL( ETrue, KHandleResourceChange );
-
- ctrl->CountComponentControls();
- AssertTrueL( ETrue, KCountComponentControls );
-
- ctrl->ComponentControl( 0 );
- AssertTrueL( ETrue, KComponentControl );
-
- ctrl->OfferKeyEventL( keyEvent, EEventKey );
- AssertTrueL( ETrue, KOfferKeyEventL );
-
- AssertTrueL( ETrue, KDes );
-
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::Pop( container );
- delete container;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomJPLangCase::TestPslnFWBaseView()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWBaseViewL()
- {
-
- _LIT( KCPslnFWBaseView, "CPslnFWBaseView::CPslnFWBaseView() invoked" );
- _LIT( KConstructL, "CPslnFWBaseView::ConstructL() invoked" );
- _LIT( KSetCurrentItem, "CPslnFWBaseView::SetCurrentItem() invoked" );
- _LIT( KSetNaviPaneL, "CPslnFWBaseView::SetNaviPaneL() invoked" );
- _LIT( KContainer, "CPslnFWBaseView::Container() invoked" );
- _LIT( KOpenLocalizedResourceFileL,
- "CPslnFWBaseView::OpenLocalizedResourceFileL() invoked" );
- _LIT( KOpenLocalizedResourceFileLOverload,
- "CPslnFWBaseView::OpenLocalizedResourceFileL() Overload invoked" );
- _LIT( KSetNaviPaneDecorator,
- "CPslnFWBaseView::SetNaviPaneDecorator() invoked" );
- _LIT( KDoDeactivate, "CPslnFWBaseView::DoDeactivate() invoked" );
- _LIT( KSetTabIndex, "CPslnFWBaseView::SetTabIndex() invoked" );
- _LIT( KGetTabIndex, "CPslnFWBaseView::GetTabIndex() invoked" );
- _LIT( KCreateNaviPaneContextL,
- "CPslnFWBaseView::CreateNaviPaneContextL() invoked" );
- _LIT( KCreateContainerL, "CPslnFWBaseView::CreateContainerL() invoked" );
- _LIT( KDoActivateL, "CPslnFWBaseView::DoActivateL() invoked" );
- _LIT( KSetNaviPaneLOverload,
- "CPslnFWBaseView::SetNaviPaneL() overload invoked" );
- _LIT( KNewContainerL, "CPslnFWBaseView::NewContainerL() invoked" );
- _LIT( KHandleListBoxEventL,
- "CPslnFWBaseView::HandleListBoxEventL() overload invoked" );
- _LIT( KSetMiddleSoftKeyLabelL,
- "CPslnFWBaseView::SetMiddleSoftKeyLabelL() overload invoked" );
- _LIT( KHandleCommandL, "CPslnFWBaseView::HandleCommandL() invoked" );
- _LIT( KSetTitlePaneL, "CPslnFWBaseView::SetTitlePaneL() invoked" );
- _LIT( KDes, "CPslnFWBaseView::~CPslnFWBaseView() invoked" );
-
-
- CPslnFWBaseViewExt* view = new ( ELeave ) CPslnFWBaseViewExt();
- CleanupStack::PushL( view );
-
- AssertNotNullL( view, KCPslnFWBaseView );
-
- view->ConstructL();
- AssertTrueL( ETrue, KConstructL );
- view->SetCurrentItem( 0 );
- AssertTrueL( ETrue, KSetCurrentItem );
-
- view->SetNaviPaneL();
- AssertTrueL( ETrue, KSetNaviPaneL );
-
- view->Container();
- AssertTrueL( ETrue, KContainer );
-
- RConeResourceLoader loader( *CCoeEnv::Static() );
- TRAPD( res, view->OpenLocalizedResourceFileL( KFilePath, loader ) );
- AssertTrueL( ETrue, KOpenLocalizedResourceFileL );
-
- TRAP( res, view->OpenLocalizedResourceFileL( KFileName, loader, &KFileDir ) );
- AssertTrueL( ETrue, KOpenLocalizedResourceFileLOverload );
-
- CAknAppUi* appui = static_cast<CAknAppUi*>( CCoeEnv::Static()->AppUi() );
- CEikStatusPane* pane = appui->StatusPane ();
- CAknNavigationControlContainer* container =
- static_cast<CAknNavigationControlContainer*>(
- pane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );
-
- CAknForm* frm = new( ELeave ) CAknForm();
- CleanupStack::PushL( frm );
- frm->ConstructL();
- CleanupStack::Pop( frm );
-
- CAknNavigationDecorator* decorate =
- CAknNavigationDecorator::NewL( container, frm );
- CleanupStack::PushL( decorate );
-
- view->SetNaviPaneDecorator( decorate );
- AssertTrueL( ETrue, KSetNaviPaneDecorator );
-
- view->DoDeactivate();
- AssertTrueL( ETrue, KDoDeactivate );
-
- view->SetTabIndex( 0 );
- AssertTrueL( ETrue, KSetTabIndex );
-
- view->GetTabIndex();
- AssertTrueL( ETrue, KGetTabIndex );
-
- view->CreateNaviPaneContextL( 0 );
- AssertTrueL( ETrue, KCreateNaviPaneContextL );
-
- view->CreateContainerL();
- AssertTrueL( ETrue, KCreateContainerL );
-
- view->NewContainerL();
- AssertTrueL( ETrue, KNewContainerL );
-
- TVwsViewId viewid;
- view->DoActivateL( viewid, KNullUid, KMessage );
- AssertTrueL( ETrue, KDoActivateL );
-
- view->SetNaviPaneL( 0 );
- AssertTrueL( ETrue, KSetNaviPaneLOverload );
-
- view->HandleListBoxEventL( NULL,
- MEikListBoxObserver::EEventEnterKeyPressed );
- AssertTrueL( ETrue, KHandleListBoxEventL );
-
- view->SetMiddleSoftKeyLabelL( R_BCTEST_AVKONPSLN_LABEL, 0 );
- AssertTrueL( ETrue, KSetMiddleSoftKeyLabelL );
-
- view->HandleCommandL( 0 );
- AssertTrueL( ETrue, KHandleCommandL );
-
- view->SetTitlePaneL( res );
- AssertTrueL( ETrue, KSetTitlePaneL );
-
- CleanupStack::Pop( decorate );
- CleanupStack::PopAndDestroy( view );
- AssertTrueL( ETrue, KDes );
-
- delete decorate;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestPslnFWBaseView()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestFWIconHelperL()
- {
- _LIT( KNewL, "CPslnFWIconHelper::NewL() invoked ");
- _LIT( KAddIconsToSettingItemsL,
- "CPslnFWIconHelper::AddIconsToSettingItemsL() invoked ");
- _LIT( KGetLocalizedStringLC,
- "CPslnFWIconHelper::GetLocalizedStringLC() invoked ");
- _LIT( KDestruct, "CPslnFWIconHelper::~CPslnFWIconHelper() invoked ");
-
- CPslnFWIconHelper* helper = CPslnFWIconHelper::NewL();
- CleanupStack::PushL( helper );
- AssertNotNullL( helper, KNewL );
-
- CEikColumnListBox* textList = new( ELeave ) CEikColumnListBox();
- CleanupStack::PushL( textList );
-
- textList->ConstructL( iContainer );
-
- helper->AddIconsToSettingItemsL( ETrue, 0, textList );
- AssertTrueL( ETrue, KAddIconsToSettingItemsL );
-
- TRAP_IGNORE( helper->GetLocalizedStringLC( KFilePath, 0, CCoeEnv::Static() ) );
- AssertTrueL( ETrue, KGetLocalizedStringLC );
- CleanupStack::Pop( textList );
- delete textList;
-
- CleanupStack::Pop( helper );
- delete helper;
- AssertTrueL( ETrue, KDestruct );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestFWPluginHandlerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestFWPluginHandlerL()
- {
-
- _LIT( KNewL, "CPslnFWPluginHandler::NewL() invoked" );
- _LIT( KNewLOverload, "CPslnFWPluginHandler::NewL() overload invoked" );
- _LIT( KLoadPluginL, "CPslnFWPluginHandler::LoadPluginL() invoked" );
- _LIT( KLoadPluginLOverLoad,
- "CPslnFWPluginHandler::LoadPluginL() overload invoked" );
- _LIT( KDes, "CPslnFWPluginHandler::~CPslnFWPluginHandler() invoked" );
-
- CArrayPtrFlat<CPslnFWPluginInterface>* array =
- new ( ELeave ) CArrayPtrFlat<CPslnFWPluginInterface>( 1 );
- CleanupStack::PushL( array );
-
- CAknViewAppUi* appui = static_cast<CAknViewAppUi*>
- ( CEikonEnv::Static()->AppUi() );
-
- CPslnFWPluginHandler* handle =
- CPslnFWPluginHandler::NewL( appui, array );
- CleanupStack::PushL( handle );
- AssertNotNullL( handle, KNewL );
-
- CleanupStack::Pop( handle );
- CleanupStack::Pop( array );
-
- delete handle;
- AssertTrueL( ETrue, KDes );
- handle = NULL;
-
- array->Reset();
- delete array;
-
- handle = CPslnFWPluginHandler::NewL( appui );
- CleanupStack::PushL( handle );
- AssertNotNullL( handle, KNewLOverload );
-
- CPslnFWPluginInterface* inf = handle->LoadPluginL( TUid::Uid( KPluginUid ) );
- AssertTrueL( ETrue, KLoadPluginL );
-
- delete inf;
-
- TRAP_IGNORE( handle->LoadPluginsL( array ) );
- AssertTrueL( ETrue, KLoadPluginLOverLoad );
-
- CleanupStack::Pop( handle );
- delete handle;
- handle = NULL;
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomPslnCase::TestPslnFWAppThemeHandlerL()
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomPslnCase::TestPslnFWAppThemeHandlerL()
- {
- //Added "CSortUtil::NewL()".
- CSortUtil* sortUtil = CSortUtil::NewL();
- CleanupStack::PushL( sortUtil );
- _LIT( KCSortUtil, "CSortUtil::NewL" );
- AssertTrueL( ETrue, KCSortUtil );
- CleanupStack::PopAndDestroy( sortUtil );
-
- _LIT( KCPslnFWAppThemeHandler, "CPslnFWAppThemeHandler::NewL() invoked" );
- _LIT( KSetApplicationSkinL,
- "CPslnFWAppThemeHandler::SetApplicationSkinL() invoked" );
- _LIT( KGetApplicationSkinsL,
- "CPslnFWAppThemeHandler::GetApplicationSkinsL() invoked" );
- _LIT( KCancelGetApplicationSkins,
- "CPslnFWAppThemeHandler::CancelGetApplicationSkins() invoked" );
- _LIT( KSetApplicationSkinAndExitL,
- "CPslnFWAppThemeHandler::SetApplicationSkinAndExitL() invoked" );
- _LIT( KDes, "CPslnFWAppThemeHandler::~CPslnFWAppThemeHandler() invoked" );
-
- CXnODT* odt = CXnODT::NewL();
- CleanupStack::PushL( odt );
- CArrayPtrFlat<CXnODT>* array =
- new ( ELeave ) CArrayPtrFlat<CXnODT>( 1 );
- CleanupStack::PushL( array );
-
- array->AppendL( odt, 0 );
- CMPslnFWAppThemeObserverExt* observer = new ( ELeave )
- CMPslnFWAppThemeObserverExt;
- CleanupStack::PushL( observer );
-
- CPslnFWAppThemeHandler* handler =
- CPslnFWAppThemeHandler::NewL( *observer, *array );
- CleanupStack::PushL( handler );
- AssertNotNullL( handler, KCPslnFWAppThemeHandler );
-
- TXnServiceCompletedMessage msg =
- handler->GetApplicationSkinsL( TUid::Uid( KPluginUid ) );
- AssertTrueL( ETrue, KGetApplicationSkinsL );
-
- handler->SetApplicationSkinL( *odt );
- AssertTrueL( ETrue, KSetApplicationSkinL );
-
- handler->CancelGetApplicationSkins();
- AssertTrueL( ETrue, KCancelGetApplicationSkins );
-
- handler->SetApplicationSkinAndExitL( *odt );
- AssertTrueL( ETrue, KSetApplicationSkinAndExitL );
-
- CleanupStack::PopAndDestroy( handler );
- AssertTrueL( ETrue, KDes );
- array->Reset();
- CleanupStack::PopAndDestroy( observer );
- CleanupStack::PopAndDestroy( array );
- CleanupStack::PopAndDestroy( odt );
-
- }
-//end of file
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomcoreui/group/bctestdomcoreui.mmp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomcoreui/group/bctestdomcoreui.mmp Mon May 03 12:45:33 2010 +0300
@@ -61,12 +61,10 @@
LIBRARY apgrfx.lib
LIBRARY bctestutil.lib
LIBRARY efsrv.lib
-LIBRARY menuinterface.lib
-LIBRARY pbkeng.lib
+LIBRARY menuinterface.lib
LIBRARY eikdlg.lib
LIBRARY eikctl.lib
LIBRARY eikcdlg.lib
-LIBRARY voiceuirecognition.lib
START RESOURCE ../group/bctestdomcoreui_reg.rss
DEPENDS bctestdomcoreui.rsg
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomcoreui/src/bctestdomcoreuicase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomcoreui/src/bctestdomcoreuicase.cpp Mon May 03 12:45:33 2010 +0300
@@ -18,8 +18,7 @@
#include <w32std.h>
#include <coecntrl.h>
-#include <vuicvoicerecog.h>
-#include <vuicvoicerecogdialog.h>
+
#include <bctestdomcoreui.rsg>
#include "bctestdomcoreuicase.h"
@@ -181,15 +180,7 @@
//
void CBCTestDomCoreUiCase::TestVoiceRecogL()
{
- CVoiceRecog* voiceRecog = CVoiceRecog::NewL();
- CleanupStack::PushL( voiceRecog );//push
-
- _LIT( msiLogNewL, "VoiceRecog::NewL()" );
- AssertNotNullL( voiceRecog, msiLogNewL );
- _LIT( msiLogNewLC, "VoiceRecog::NewLC()" );
- AssertTrueL( ETrue, msiLogNewLC );
-
- CleanupStack::PopAndDestroy( voiceRecog );
+
}
// ---------------------------------------------------------------------------
@@ -198,21 +189,7 @@
//
void CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL()
{
- CVoiceRecognitionDialog* voiceRec = new( ELeave ) CVoiceRecognitionDialog();
- _LIT( msiLogVRD, "CVoiceRecognitionDialog::CVoiceRecognitionDialog()" );
- AssertTrueL( ETrue, msiLogVRD );
-
- voiceRec->ExecuteLD();
- _LIT( msiLogExecuteLD, "CVoiceRecognitionDialog::ExecuteLD()" );
- AssertTrueL( ETrue, msiLogExecuteLD );
- CVoiceRecognitionDialog* voiceRec2 = new( ELeave ) CVoiceRecognitionDialog();
- voiceRec2->Cancel();
- _LIT( msiLogCancel, "CVoiceRecognitionDialog::Cancel()" );
- AssertTrueL( ETrue, msiLogCancel );
-
- _LIT( msiLogDesc, "CVoiceRecognitionDialog::~CVoiceRecognitionDialog()" );
- AssertTrueL( ETrue, msiLogDesc );
}
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/bctestdomecom/group/a00040a7.rss Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/bctestdomecom/group/a00040a7.rss Mon May 03 12:45:33 2010 +0300
@@ -53,4 +53,5 @@
};
}
};
- }
\ No newline at end of file
+ }
+
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/src/bctestdominputmethodscase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/src/bctestdominputmethodscase.cpp Mon May 03 12:45:33 2010 +0300
@@ -538,7 +538,7 @@
AssertTrueL( ETrue, msiLogSetToneMark );
CleanupStack::PopAndDestroy(3);
- ptiCore->Descecom( ptiCore->DestructorKeyId());
+ ptiCore->Descecom( 1 );
_LIT( msiLogDesc, "CPtiCore::~CPtiCore()" );
AssertTrueL( ETrue, msiLogDesc );
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/src/bctestdompeninputclient.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdominputmethods/src/bctestdompeninputclient.cpp Mon May 03 12:45:33 2010 +0300
@@ -155,10 +155,4 @@
aHelpLine,
aBaseLine );
}
-
-TInt CPtiCore::DestructorKeyId() const
- {
- return iDtorKeyId;
- }
-
// End of File
Binary file uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/data/bctestdomimage.bmp has changed
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/group/bctestdomm3g.mmp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/*
-* 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 bctestdomm3g.
-*
-*/
-
-
-#include <platform_paths.hrh>
-TARGET bctestdomm3g.exe
-TARGETTYPE exe
-UID 0x0 0xA00040A2
-
-VENDORID 0x101FB657
-CAPABILITY NetworkServices LocalServices Location ReadUserData\
- WriteUserData ReadDeviceData WriteDeviceData SwEvent\
- UserEnvironment
-
-TARGETPATH sys/bin
-
-START RESOURCE bctestdomm3g.rss
-HEADER
-TARGETPATH resource/apps
-END // RESOURCE
-
-LANG 01
-
-SOURCEPATH ../src
-SOURCE bctestdomm3gapp.cpp
-SOURCE bctestdomm3gdocument.cpp
-SOURCE bctestdomm3gappui.cpp
-SOURCE bctestdomm3gview.cpp
-SOURCE bctestdomm3gcontainer.cpp
-SOURCE bctestdomm3gcase.cpp
-SOURCE bctestdomm3gnodecase.cpp
-
-USERINCLUDE . ../inc
-USERINCLUDE ../../../bctestutil/inc
-
-APP_LAYER_SYSTEMINCLUDE
-
-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 m3gapi.lib
-LIBRARY m3gcore.lib
-LIBRARY gdi.lib
-LIBRARY fbscli.lib
-
-START RESOURCE ../group/bctestdomm3g_reg.rss
-DEPENDS bctestdomm3g.rsg
-HEADER
-TARGETPATH /private/10003a3f/apps
-END
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/group/bctestdomm3g.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,284 +0,0 @@
-/*
-* 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: resources for the module
-*
-*/
-
-
-NAME M3GD
-
-#include <eikon.rh>
-#include <eikon.rsg>
-#include <avkon.hrh>
-#include <avkon.mbg>
-#include <avkon.rsg>
-#include <avkon.rh>
-#include <avkonicons.hrh>
-#include <appinfo.rh>
-
-#include "bctestdomm3g.hrh"
-#include "bctestdomm3g.loc"
-
-#define APP_BITMAP_DIR "\\resource\\apps"
-#define AVKON_BMP_FILENAME AVKON_ICON_FILE
-#define BCTESTDOMM3G_BMP_FNAME APP_BITMAP_DIR"\\bctestdomm3g.mbm"
-
-// RESOURCE DEFINITIONS
-//-----------------------------------------------------------------------------
-//
-// RSS_SIGNATURE
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE RSS_SIGNATURE
- {
- }
-
-//-----------------------------------------------------------------------------
-//
-// TBUF16
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE TBUF16
- {
- buf = "M3g";
- }
-
-//-----------------------------------------------------------------------------
-//
-// EIK_APP_INFO
-//
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE EIK_APP_INFO
- {
- menubar = r_bctestdomm3g_menubar_main;
- cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
- }
-
-//-----------------------------------------------------------------------------
-// Provide Caption and Icon Info for Scalable UI
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE LOCALISABLE_APP_INFO r_bctestdomm3g_localisable_app_info
- {
- short_caption = qtn_bctestdomm3g_short_caption;
-
- caption_and_icon =
- CAPTION_AND_ICON_INFO
- {
- caption = qtn_bctestdomm3g_long_caption;
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomm3g_view
-// AVKON_VIEW for Cbctestdomm3gView
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE AVKON_VIEW r_bctestdomm3g_view
- {
- menubar = r_bctestdomm3g_menubar_main;
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomm3g_menubar_main
-// MenuBar
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_BAR r_bctestdomm3g_menubar_main
- {
- titles =
- {
- MENU_TITLE
- {
- menu_pane = r_bctestdomm3g_menu;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomm3g_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomm3g_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EBCTestCmdTestObject;
- txt = qtn_bctestdomm3g_object;
- cascade = r_bctestdomm3gobjecttesting_menu;
- },
- MENU_ITEM
- {
- command = EBCTestCmdTestNode;
- txt = qtn_bctestdomm3g_node;
- cascade = r_bctestdomm3gnodetesting_menu;
- },
- MENU_ITEM
- {
- command = EBCTestCmdAutoTest;
- txt = qtn_bctestdomm3g_autotest;
- },
- MENU_ITEM // Menu "Exit"
- {
- command = EAknCmdExit;
- txt = qtn_bctestdomm3g_menu_exit;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomm3gobjecttesting_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomm3gobjecttesting_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EBCTestCmdOutline01;
- txt = qtn_bctestdomm3g_outline01;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline02;
- txt = qtn_bctestdomm3g_outline02;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline03;
- txt = qtn_bctestdomm3g_outline03;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline04;
- txt = qtn_bctestdomm3g_outline04;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline05;
- txt = qtn_bctestdomm3g_outline05;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline06;
- txt = qtn_bctestdomm3g_outline06;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline07;
- txt = qtn_bctestdomm3g_outline07;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline08;
- txt = qtn_bctestdomm3g_outline08;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline09;
- txt = qtn_bctestdomm3g_outline09;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline10;
- txt = qtn_bctestdomm3g_outline10;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline11;
- txt = qtn_bctestdomm3g_outline11;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline12;
- txt = qtn_bctestdomm3g_outline12;
- }
- };
- }
-
-//-----------------------------------------------------------------------------
-//
-// r_bctestdomm3gnodetesting_menu
-// Menu pane
-//
-//-----------------------------------------------------------------------------
-//
-RESOURCE MENU_PANE r_bctestdomm3gnodetesting_menu
- {
- items =
- {
- MENU_ITEM
- {
- command = EBCTestCmdOutline13;
- txt = qtn_bctestdomm3g_outline13;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline14;
- txt = qtn_bctestdomm3g_outline14;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline15;
- txt = qtn_bctestdomm3g_outline15;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline16;
- txt = qtn_bctestdomm3g_outline16;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline17;
- txt = qtn_bctestdomm3g_outline17;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline18;
- txt = qtn_bctestdomm3g_outline18;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline19;
- txt = qtn_bctestdomm3g_outline19;
- },
- MENU_ITEM
- {
- command = EBCTestCmdOutline20;
- txt = qtn_bctestdomm3g_outline20;
- }
- };
- }
-
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/group/bctestdomm3g_reg.rss Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
-* 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: Resource definitions for project bctestdomm3g
-*
-*/
-
-
-#include <appinfo.rh>
-#include <bctestdomm3g.rsg>
-
-#include "bctestdomm3g.loc"
-
-UID2 KUidAppRegistrationResourceFile
-UID3 0xA00040A2 // application UID
-
-RESOURCE APP_REGISTRATION_INFO
- {
- app_file = qtn_apps_name;
- localisable_resource_file = qtn_localization_filename;
- localisable_resource_id = R_BCTESTDOMM3G_LOCALISABLE_APP_INFO;
- hidden = KAppIsHidden;
- embeddability = KAppNotEmbeddable;
- group_name = qtn_group_name;
- }
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-/*
-* 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
-
-../data/bctestdomimage.bmp /epoc32/winscw/c/bctestlog/bctestdomimage.bmp
-
-PRJ_MMPFILES
-
-bctestdomm3g.mmp
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3g.hrh Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-/*
-* 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: Resource headers for project bctestdomm3g
-*
-*/
-
-
-#ifndef BCTESTDOMM3G_HRH
-#define BCTESTDOMM3G_HRH
-
-enum TBCTestM3gIds
- {
- EBCTestCmdEmptyOutline = 0x6000,
-
- EBCTestCmdOutline01,
- EBCTestCmdOutline02,
- EBCTestCmdOutline03,
- EBCTestCmdOutline04,
- EBCTestCmdOutline05,
- EBCTestCmdOutline06,
- EBCTestCmdOutline07,
- EBCTestCmdOutline08,
- EBCTestCmdOutline09,
- EBCTestCmdOutline10,
- EBCTestCmdOutline11,
- EBCTestCmdOutline12,
- EBCTestCmdOutline13,
- EBCTestCmdOutline14,
- EBCTestCmdOutline15,
- EBCTestCmdOutline16,
- EBCTestCmdOutline17,
- EBCTestCmdOutline18,
- EBCTestCmdOutline19,
- EBCTestCmdOutline20,
- EBCTestCmdMaxOutline,
-
- EBCTestCmdTestNode,
- EBCTestCmdTestObject,
- EBCTestCmdAutoTest
-
- };
-
-#endif // BCTESTDOMM3G_HRH
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3g.loc Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/*
-* 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: Localization strings for project bctestdomm3g
-*
-*/
-
-
-// LOCALISATION STRINGS
-// Caption
-#define qtn_bctestdomm3g_short_caption "BCTestDomM3g"
-#define qtn_bctestdomm3g_long_caption "BCTestDomM3g"
-
-// MenuBar
-#define qtn_bctestdomm3g_autotest "Autotest"
-#define qtn_bctestdomm3g_object "Test Objects"
-#define qtn_bctestdomm3g_node "Test Nodes"
-#define qtn_bctestdomm3g_menu_exit "Exit"
-
-// Menu item
-#define qtn_bctestdomm3g_outline01 "Test CM3gLoader"
-#define qtn_bctestdomm3g_outline02 "Test RM3gObject"
-#define qtn_bctestdomm3g_outline03 "Test RM3GBackground"
-#define qtn_bctestdomm3g_outline04 "Test RM3GAppearance"
-#define qtn_bctestdomm3g_outline05 "Test RM3GCompositingMode"
-#define qtn_bctestdomm3g_outline06 "Test RM3GFog"
-#define qtn_bctestdomm3g_outline07 "Test RM3GMaterial"
-#define qtn_bctestdomm3g_outline08 "Test RM3GPolygonMode"
-#define qtn_bctestdomm3g_outline09 "Test RM3GTexture"
-#define qtn_bctestdomm3g_outline10 "Test RM3GKeyframeSequence"
-#define qtn_bctestdomm3g_outline11 "Test RM3GVertexBuffer"
-#define qtn_bctestdomm3g_outline12 "Test RM3GAnimationController"
-#define qtn_bctestdomm3g_outline13 "Test RM3GTransformable"
-#define qtn_bctestdomm3g_outline14 "Test RM3GNode"
-#define qtn_bctestdomm3g_outline15 "Test RM3GCamera"
-#define qtn_bctestdomm3g_outline16 "Test RM3GGroup"
-#define qtn_bctestdomm3g_outline17 "Test RM3GLight"
-#define qtn_bctestdomm3g_outline18 "Test RM3GMesh"
-#define qtn_bctestdomm3g_outline19 "Test RM3GSprite"
-#define qtn_bctestdomm3g_outline20 "Test RM3GWorld"
-
-// softkey
-#define text_softkey_option "Options"
-
-// registraton string
-#define qtn_apps_name "BCTestDomM3g"
-#define qtn_localization_filename "\\resource\\apps\\bctestdomm3g"
-#define qtn_group_name "BCTest"
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gapp.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-/*
-* 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: Define application class.
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GAPP_H
-#define C_CBCTESTDOMM3GAPP_H
-
-#include <aknapp.h>
-
-const TUid KUidBCTestM3g = { 0xA00040A2 }; // UID of the application.
-
-// CLASS DECLARATION
-
-/**
- * CBCTestDomM3gApp application class.
- * Provides factory to create concrete document object.
- */
-class CBCTestDomM3gApp : 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_CBCTESTDOMM3GAPP_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gappui.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-/*
-* 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: Define appui class
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GAPPUI_H
-#define C_CBCTESTDOMM3GAPPUI_H
-
-#include <aknviewappui.h>
-
-class CBCTestDomM3gView;
-class CBCTestUtil;
-
-/**
- * Application UI class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomM3gAppUi : public CAknViewAppUi
- {
-public: // Constructors and destructor
-
- /**
- * ctor
- */
- CBCTestDomM3gAppUi();
-
- /**
- * symbian 2nd ctor
- */
- void ConstructL();
-
- /**
- * dtor
- */
- virtual ~CBCTestDomM3gAppUi();
-
-private:
-
- /**
- * From CEikAppUi
- */
- void HandleCommandL( TInt aCommand );
-
-private: // data
-
- /**
- * pointor to the view.
- * own
- */
- CBCTestDomM3gView* iView;
-
- /**
- * pointor to the BC Test framework utility.
- * own
- */
- CBCTestUtil* iTestUtil;
-
- };
-
-#endif //C_CBCTESTDOMM3GAPPUI_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gcase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,166 +0,0 @@
-/*
-* 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: Define test case
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GCASE_H
-#define C_CBCTESTDOMM3GCASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomM3gContainer;
-class CCoeControl;
-
-/**
-* test case for various list classes
-*/
-class CBCTestDomM3gCase: public CBCTestCase
- {
-public: // constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomM3gCase* NewL( CBCTestDomM3gContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomM3gCase();
-
-// 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 CM3gLoader API(s).
- */
- void TestCM3gLoaderL();
-
- /*
- * Test CM3GRenderingContext API(s).
- */
- void TestCM3GRenderingContextL();
-
- /*
- * Test RM3gObject API(s).
- */
- void TestRM3gObjectL();
-
- /*
- * Test RM3GBackground API(s).
- */
- void TestRM3GBackgroundL();
-
- /*
- * Test RM3GAppearance API(s).
- */
- void TestRM3GAppearanceL();
-
- /*
- * Test RM3GCompositingMode API(s).
- */
- void TestRM3GCompositingModeL();
-
- /*
- * Test RM3GFog API(s).
- */
- void TestRM3GFogL();
-
- /*
- * Test RM3GMaterial API(s).
- */
- void TestRM3GMaterialL();
-
- /*
- * Test RM3GPolygonMode API(s).
- */
- void TestRM3GPolygonModeL();
-
- /*
- * Test RM3GTexture API(s).
- */
- void TestRM3GTextureL();
-
- /*
- * Test RM3GKeyframeSequence API(s).
- */
- void TestRM3GKeyframeSequenceL();
-
- /*
- * Test RM3GVertexBuffer API(s).
- */
- void TestRM3GVertexBufferL();
-
- /*
- * Test RM3GVertexArray API(s).
- */
- void TestRM3GVertexArrayL();
-
- /*
- * Test RM3GTriangleStripArray API(s).
- */
- void TestRM3GTriangleStripArrayL();
-
- /*
- * Test RM3GIndexBuffer API(s).
- */
- void TestRM3GIndexBufferL();
-
- /*
- * Test RM3GAnimationController API(s).
- */
- void TestRM3GAnimationControllerL();
-
- /*
- * Test RM3GImage API(s).
- */
- void TestRM3GImageL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomM3gCase( CBCTestDomM3gContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomM3gContainer* iContainer;
-
- };
-
-#endif //C_CBCTESTDOMM3GCASE_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gcontainer.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/*
-* 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: Define container class
-*
-*/
-
-
-#ifndef C_BCTESTDOMM3GCONTAINER_H
-#define C_BCTESTDOMM3GCONTAINER_H
-
-#include <coecntrl.h>
-
-/**
- * container class
- */
-class CBCTestDomM3gContainer: public CCoeControl
- {
-public: // constructor and destructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomM3gContainer();
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomM3gContainer();
-
- /**
- * 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_BCTESTDOMM3GCONTAINER_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gdocument.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
-* 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: Define document class
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GDOCUMENT_H
-#define C_CBCTESTDOMM3GDOCUMENT_H
-
-#include <eikdoc.h>
-
-class CEikAppUi;
-
-/**
- * CBCTestDomM3gDocument application class.
- */
-class CBCTestDomM3gDocument : 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 CBCTestDomM3gDocument* NewL( CEikApplication& aApp );
-
- /**
- * Destructor.
- */
- virtual ~CBCTestDomM3gDocument();
-
-private: // Constructors
-
- /**
- * Overload constructor.
- * @param aApp Reference to Application class object.
- */
- CBCTestDomM3gDocument( CEikApplication& aApp );
-
-// From CEikDocument
-
- /**
- * From CEikDocument, CreateAppUiL.
- * Creates CBCTestDomM3gAppUi "App UI" object.
- * @return Pointer to created AppUi class object.
- */
- CEikAppUi* CreateAppUiL();
-
- };
-
-#endif // C_CBCTESTDOMM3GDOCUMENT_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gnodecase.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,132 +0,0 @@
-/*
-* 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: Define node test case
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GNODECASE_H
-#define C_CBCTESTDOMM3GNODECASE_H
-
-#include "bctestcase.h"
-
-class CBCTestDomM3gContainer;
-class CCoeControl;
-
-/**
- * test case for m3g node classes
- */
-class CBCTestDomM3gNodeCase : public CBCTestCase
- {
-public: // constructor and destructor
-
- /**
- * Symbian 2nd static constructor
- */
- static CBCTestDomM3gNodeCase* NewL( CBCTestDomM3gContainer* aContainer );
-
- /**
- * Destructor
- */
- virtual ~CBCTestDomM3gNodeCase();
-
-// 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 RM3GTransformable API(s).
- */
- void TestRM3GTransformableL();
-
- /*
- * Test RM3GNode API(s).
- */
- void TestRM3GNodeL();
-
- /*
- * Test RM3GLight API(s).
- */
- void TestRM3GLightL();
-
- /*
- * Test RM3GCamera API(s).
- */
- void TestRM3GCameraL();
-
- /*
- * Test RM3GGroup API(s).
- */
- void TestRM3GGroupL();
-
- /*
- * Test RM3GWorld API(s).
- */
- void TestRM3GWorldL();
-
- /*
- * Test RM3GSprite API(s).
- */
- void TestRM3GSpriteL();
-
- /*
- * Test RM3Mesh API(s).
- */
- void TestRM3MeshL();
-
- /*
- * Test RM3GMorphingMesh API(s).
- */
- void TestRM3GMorphingMeshL();
-
- /*
- * Test RM3GSkinnedMesh API(s).
- */
- void TestRM3GSkinnedMeshL();
-
-private: // constructor
-
- /**
- * C++ default constructor
- */
- CBCTestDomM3gNodeCase( CBCTestDomM3gContainer* aContainer );
-
- /**
- * Symbian 2nd constructor
- */
- void ConstructL();
-
-private: // data
-
- /**
- * Pointer to container.
- * not own
- */
- CBCTestDomM3gContainer* iContainer;
-
- };
-
-#endif //C_CBCTESTDOMM3GNODECASE_H
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/inc/bctestdomm3gview.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-/*
-* 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: Define view class
-*
-*/
-
-
-#ifndef C_CBCTESTDOMM3GVIEW_H
-#define C_CBCTESTDOMM3GVIEW_H
-
-#include <aknview.h>
-
-const TUid KBCTestM3gViewId = { 1 };
-
-class CBCTestDomM3gContainer;
-class CBCTestUtil;
-
-/**
- * Application UI class
- *
- * @lib bctestutil.lib
- */
-class CBCTestDomM3gView : public CAknView
- {
-public: // Constructors and destructor
-
- /**
- * Symbian static 2nd constructor
- */
- static CBCTestDomM3gView* NewL( CBCTestUtil* aUtil );
-
- /**
- * dtor
- */
- virtual ~CBCTestDomM3gView();
-
-// 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
- */
- CBCTestDomM3gView();
-
- /**
- * 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
- */
- CBCTestDomM3gContainer* iContainer;
-
- };
-
-#endif //C_CBCTESTDOMM3GVIEW_H
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/sis/bctestdomm3g.pkg Fri Apr 16 15:13:44 2010 +0300
+++ /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:
-;
-; bctestdomm3g.pkg
-
-; Languages
-&EN
-
-; Header
-#{"bctestdomm3g"},(0xA00040A2),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 5.0
-;This line indicates that this installation is for the Series 60 platform v5.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 v5.0 platforms
-(0x101F7961), 0, 0, 0, {"Series60ProductID"}
-
-; Target
-"\epoc32\release\armv5\urel\bctestdomm3g.exe"-
-"!:\sys\bin\bctestdomm3g.exe"
-
-"\epoc32\data\z\resource\apps\bctestdomm3g.r01"-
-"!:\resource\apps\bctestdomm3g.r01"
-
-"\epoc32\data\z\private\10003A3F\apps\bctestdomm3g_reg.r01"-
-"!:\PRIVATE\10003A3F\import\apps\bctestdomm3g_reg.r01"
-
-"\epoc32\winscw\c\bctestlog\bctestdomimage.bmp"-"c:\bctestlog\bctestdomimage.bmp"
-
-; bctestutil must be installed
-(0x20004742), 1, 10, 0, {"bctestutil.dll"}
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gapp.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/*
-* 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: Implement m3g application class
-*
-*/
-
-
-#include <eikstart.h>
-
-#include "bctestdomm3gapp.h"
-#include "bctestdomm3gdocument.h"
-
-// ================= MEMBER FUNCTIONS =========================================
-
-// ----------------------------------------------------------------------------
-// TUid CBCTestDomM3gApp::AppDllUid()
-// Returns application UID.
-// ----------------------------------------------------------------------------
-//
-TUid CBCTestDomM3gApp::AppDllUid() const
- {
- return KUidBCTestM3g;
- }
-
-// ----------------------------------------------------------------------------
-// CApaDocument* CBCTestDomM3gApp::CreateDocumentL()
-// Creates CBCTestDomM3gDocument object.
-// ----------------------------------------------------------------------------
-//
-CApaDocument* CBCTestDomM3gApp::CreateDocumentL()
- {
- return CBCTestDomM3gDocument::NewL( *this );
- }
-
-// ================= OTHER EXPORTED FUNCTIONS =================================
-//
-// ----------------------------------------------------------------------------
-// CApaApplication* NewApplication()
-// Constructs CBCTestDomM3gApp.
-// Returns: CApaDocument*: created application object
-// ----------------------------------------------------------------------------
-//
-LOCAL_C CApaApplication* NewApplication()
- {
- return new CBCTestDomM3gApp;
- }
-
-GLDEF_C TInt E32Main()
- {
- return EikStart::RunApplication(NewApplication);
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gappui.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,85 +0,0 @@
-/*
-* 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: Implement appui class
-*
-*/
-
-
-#include <avkon.hrh>
-#include <aknsutils.h>
-
-#include "bctestdomm3gappui.h"
-#include "bctestdomm3g.hrh"
-#include "bctestdomm3gview.h"
-#include "bctestutil.h"
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// ctro do nothing
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gAppUi::CBCTestDomM3gAppUi()
- {
- }
-
-// ---------------------------------------------------------------------------
-// symbian 2nd phase ctor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gAppUi::ConstructL()
- {
- BaseConstructL();
- AknsUtils::SetAvkonSkinEnabledL( ETrue );
-
- // init test util
- iTestUtil = CBCTestUtil::NewL();
-
- // init view
- CBCTestDomM3gView* view = CBCTestDomM3gView::NewL( iTestUtil );
- CleanupStack::PushL( view );
- AddViewL( view );
- CleanupStack::Pop( view );
-
- ActivateLocalViewL( view->Id() );
- }
-
-// ----------------------------------------------------------------------------
-// CBCTestDomM3gAppUi::~CBCTestDomM3gAppUi()
-// Destructor.
-// ----------------------------------------------------------------------------
-//
-CBCTestDomM3gAppUi::~CBCTestDomM3gAppUi()
- {
- delete iTestUtil;
- }
-
-// ----------------------------------------------------------------------------
-// handle menu command events
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomM3gAppUi::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EAknSoftkeyBack:
- case EEikCmdExit:
- {
- Exit();
- return;
- }
- default:
- break;
- }
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1454 +0,0 @@
-/*
-* 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: Implement test case class
-*
-*/
-
-
-#include <avkon.rsg>
-#include <bctestdomm3g.rsg>
-#include <eikenv.h>
-#include <eikappui.h>
-#include <cm3gloader.h>
-#include <rm3gobject.h>
-#include <rm3gkeyframesequence.h>
-#include <rm3glight.h>
-#include <rm3gimage.h>
-#include <rm3gbackground.h>
-#include <rm3gappearance.h>
-#include <rm3gcompositingmode.h>
-#include <rm3gfog.h>
-#include <rm3gmaterial.h>
-#include <rm3gpolygonmode.h>
-#include <rm3gtexture.h>
-#include <cm3grenderingcontext.h>
-#include <m3genv.h>
-#include <rm3gvertexbuffer.h>
-#include <rm3gvertexarray.h>
-#include <rm3gtrianglestriparray.h>
-#include <rm3gindexbuffer.h>
-#include <rm3ganimationcontroller.h>
-#include <rm3ganimationtrack.h>
-#include <rm3gworld.h>
-#include <gdi.h>
-#include <rm3gcamera.h>
-
-#include "bctestdomm3gcase.h"
-#include "bctestdomm3gcontainer.h"
-#include "bctestdomm3g.hrh"
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gCase* CBCTestDomM3gCase::NewL(
- CBCTestDomM3gContainer* aContainer )
- {
- CBCTestDomM3gCase* self = new( ELeave ) CBCTestDomM3gCase( aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gCase::CBCTestDomM3gCase(
- CBCTestDomM3gContainer* aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gCase::~CBCTestDomM3gCase()
- {
- M3GEnv::Release(); //Release env object. Only release one time, or panic.
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- //outline1
- DELAY( 1 ),// delay between commands is 1*0.1 seconds = 0.1 seconds
- REP( LeftCBA, 3 ),
-
- //outline2
- REP( LeftCBA, 2 ),
- REP( Down, 1 ),
- LeftCBA,
-
- //outline3
- REP( LeftCBA, 2 ),
- REP( Down, 2 ),
- LeftCBA,
-
- //outline4
- REP( LeftCBA, 2 ),
- REP( Down, 3 ),
- LeftCBA,
-
- //outline5
- REP( LeftCBA, 2 ),
- REP( Down, 4 ),
- LeftCBA,
-
- //outline6
- REP( LeftCBA, 2 ),
- REP( Down, 5 ),
- LeftCBA,
-
- //outline7
- REP( LeftCBA, 2 ),
- REP( Down, 6 ),
- LeftCBA,
-
- //outline8
- REP( LeftCBA, 2 ),
- REP( Down, 7 ),
- LeftCBA,
-
- //outline9
- REP( LeftCBA, 2 ),
- REP( Down, 8 ),
- LeftCBA,
-
- //outline10
- REP( LeftCBA, 2 ),
- REP( Down, 9 ),
- LeftCBA,
-
- //outline11
- REP( LeftCBA, 2 ),
- REP( Down, 10 ),
- LeftCBA,
-
- //outline12
- REP( LeftCBA, 2 ),
- REP( Down, 11 ),
- LeftCBA
-
- };
- AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::RunL( TInt aCmd )
- {
- if ( ( aCmd < EBCTestCmdOutline01 ) || ( aCmd > EBCTestCmdOutline12 ) )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline01:
- TestCM3gLoaderL();
- TestCM3GRenderingContextL();
- break;
- case EBCTestCmdOutline02:
- TestRM3gObjectL();
- break;
- case EBCTestCmdOutline03:
- TestRM3GBackgroundL();
- break;
- case EBCTestCmdOutline04:
- TestRM3GAppearanceL();
- break;
- case EBCTestCmdOutline05:
- TestRM3GCompositingModeL();
- break;
- case EBCTestCmdOutline06:
- TestRM3GFogL();
- break;
- case EBCTestCmdOutline07:
- TestRM3GMaterialL();
- break;
- case EBCTestCmdOutline08:
- TestRM3GPolygonModeL();
- break;
- case EBCTestCmdOutline09:
- TestRM3GTextureL();
- TestRM3GIndexBufferL();
- break;
- case EBCTestCmdOutline10:
- TestRM3GKeyframeSequenceL();
- TestRM3GTriangleStripArrayL();
- break;
- case EBCTestCmdOutline11:
- TestRM3GVertexBufferL();
- TestRM3GVertexArrayL();
- break;
- case EBCTestCmdOutline12:
- TestRM3GAnimationControllerL();
- TestRM3GImageL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestCM3gLoaderL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestCM3gLoaderL()
- {
- CM3GLoader* m3gLoader = CM3GLoader::NewLC();
- _LIT( KCM3gLoaderNewLC, "CM3GLoader::NewLC()" );
- AssertTrueL( ETrue, KCM3gLoaderNewLC );
-
- _LIT( KFileName, "\\BCTestLog\\bctestdomimage.bmp" );
- RM3GImage imageReturn = m3gLoader->LoadImageL( KFileName );
- CleanupClosePushL( imageReturn );
- _LIT( KCM3gLoadLoadImageL, "CM3GLoader::LoadImageL()" );
- AssertTrueL( ETrue, KCM3gLoadLoadImageL );
-
- RArray<RM3GObject> objects;
- CleanupClosePushL( objects );
- m3gLoader->DecodeL( KFileName, objects );
- _LIT( KCM3gLoadDecodeL, "CM3GLoader::DecodeL()" );
- AssertTrueL( ETrue, KCM3gLoadDecodeL );
-
- CleanupStack::PopAndDestroy( 3 );//m3gLoader, imageReturn, objects
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestCM3GRenderingContextL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestCM3GRenderingContextL()
- {
- CM3GRenderingContext* m3gContext = CM3GRenderingContext::NewL();
- CleanupStack::PushL( m3gContext );
- _LIT( KCM3GRenderingContext, "CM3GRenderingContext::NewL()" );
- AssertTrueL( ETrue, KCM3GRenderingContext );
-
- TM3GMatrix m3gNodeMatrix;
- RM3GLight m3gLight;
- CleanupClosePushL( m3gLight );
- m3gLight.OpenL();
-
- RM3GWorld m3gWorld;
- CleanupClosePushL( m3gWorld );
- m3gWorld.OpenL();
-
- m3gContext->RenderNode( m3gWorld, m3gNodeMatrix );
- _LIT( KCM3GRCRenderNode, "CM3GRenderingContext::RenderNode()" );
- AssertTrueL( ETrue, KCM3GRCRenderNode );
-
- m3gContext->RenderWorld( m3gWorld );
- _LIT( KCM3GRCRenderWorld, "CM3GRenderingContext::RenderWorld()" );
- AssertTrueL( ETrue, KCM3GRCRenderWorld );
-
- TInt index = 0;
- m3gContext->SetLight( index, m3gLight, m3gNodeMatrix );
- _LIT( KCM3GRCSetLight, "CM3GRenderingContext::SetLight()" );
- AssertTrueL( ETrue, KCM3GRCSetLight );
-
- RM3GCamera m3gCamera;
- CleanupClosePushL( m3gCamera );
- m3gCamera.OpenL();
-
- m3gContext->SetCamera( m3gCamera, m3gNodeMatrix );
- _LIT( KCM3GRCSetCamera, "CM3GRenderingContext::SetCamera()" );
- AssertTrueL( ETrue, KCM3GRCSetCamera );
-
- TInt mask = 0;
- m3gContext->SetRenderHints( mask );
- _LIT( KCM3GRCSetRenderHints, "CM3GRenderingContext::SetRenderHints()" );
- AssertTrueL( ETrue, KCM3GRCSetRenderHints );
-
- RM3GImage m3gImage;
- CleanupClosePushL( m3gImage );
- TInt imageWidth = 16;
- TInt imageHeight = 16;
- TInt flag = 0;
- m3gImage.OpenL( RM3GImage::EAlpha,
- imageWidth,
- imageHeight,
- flag );
-
- m3gContext->BindImageTarget( m3gImage );
- _LIT( KCM3GRCBindImageTarget, "CM3GRenderingContext::BindImageTarget()" );
- AssertTrueL( ETrue, KCM3GRCBindImageTarget );
-
- CFbsBitmap* bitmap = new ( ELeave ) CFbsBitmap;
- CleanupStack::PushL( bitmap );
- User::LeaveIfError( bitmap->Create( TSize( imageWidth,
- imageHeight ),
- EColor64K ) );
-
- m3gContext->BindBitmapTarget( bitmap );
- _LIT( KCM3GRCBindBitmapTarget,
- "CM3GRenderingContext::BindBitmapTarget()" );
- AssertTrueL( ETrue, KCM3GRCBindBitmapTarget );
-
- RM3GLight m3gLightAdd;
- TM3GMatrix lightMatrix;
- lightMatrix.Unity();
- CleanupClosePushL( m3gLightAdd );
- m3gLightAdd.OpenL();
-
- lightMatrix.Unity();
- lightMatrix.iClassified = 1;
- lightMatrix.iComplete = 1;
-
- m3gContext->AddLight( m3gLightAdd, lightMatrix );
- _LIT( KCM3GRCAddLight,
- "CM3GRenderingContext::AddLight()" );
- AssertTrueL( ETrue, KCM3GRCAddLight );
-
- TUint param = 4029;
- TUint stride = 10;
- TUint userContext = 10;
- m3gContext->BindMemoryTarget( ¶m,
- imageWidth,
- imageHeight,
- CM3GRenderingContext::EL8,
- stride,
- userContext );
- _LIT( KCM3GRCBindMemoryTarget,
- "CM3GRenderingContext::BindMemoryTarget()" );
- AssertTrueL( ETrue, KCM3GRCBindMemoryTarget );
-
- RWindow* window = static_cast<RWindow*> ( iContainer->DrawableWindow() );
- CleanupClosePushL( *window );
- m3gContext->BindWindowTarget( *window );
- _LIT( KCM3GRCBindWindowTarget,
- "CM3GRenderingContext::BindWindowTarget()" );
- AssertTrueL( ETrue, KCM3GRCBindWindowTarget );
- CleanupStack::Pop( window );
-
- RM3GVertexBuffer m3gVertexBuffer;
- CleanupClosePushL( m3gVertexBuffer );
- m3gVertexBuffer.OpenL();
-
- RM3GIndexBuffer m3gIndexBuffer;
- CleanupClosePushL( m3gIndexBuffer );
- TInt stripLengths[] = { 4, 5, 6, 7 };
- TInt stripLengthCount = 4;
- TInt firstIndex = 0;
- m3gIndexBuffer.OpenL( firstIndex, stripLengths, stripLengthCount );
-
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gAppearance );
- m3gAppearance.OpenL();
- TM3GMatrix m3gMatrix;
- TReal32 alphaFactor = 1.0;
- TInt scope = 2;
- m3gContext->Render( m3gVertexBuffer,
- m3gIndexBuffer,
- m3gAppearance,
- m3gMatrix,
- alphaFactor,
- scope );
- _LIT( KCM3GRCRender, "CM3GRenderingContext::Render()" );
- AssertTrueL( ETrue, KCM3GRCRender );
-
- //m3gVertexBuffer, m3gIndexBuffer, m3gAppearance;
- CleanupStack::PopAndDestroy( 3 );
-
- RM3GBackground m3gBackgroud;
- CleanupClosePushL( m3gBackgroud );
- m3gBackgroud.OpenL();
- m3gContext->Clear( m3gBackgroud );
- _LIT( KCM3GRCClear, "CM3GRenderingContext::Clear()" );
- AssertTrueL( ETrue, KCM3GRCClear );
-
- m3gContext->ReleaseTarget();
- _LIT( KCM3GRCReleaseTarget, "CM3GRenderingContext::ReleaseTarget()" );
- AssertTrueL( ETrue, KCM3GRCReleaseTarget );
-
- m3gContext->ResetLights();
- _LIT( KCM3GRCResetLights, "CM3GRenderingContext::ResetLights()" );
- AssertTrueL( ETrue, KCM3GRCResetLights );
-
- TReal32 near = 1.0;
- TReal32 far = 10.0;
- m3gContext->SetDepthRange( near, far );
- _LIT( KCM3GRCSetDepthRange, "CM3GRenderingContext::SetDepthRange()" );
- AssertTrueL( ETrue, KCM3GRCSetDepthRange );
-
- TInt x = 0;
- TInt y = 0;
- TInt width = 10;
- TInt height = 10;
- m3gContext->SetClipRect( x, y, width, height );
- _LIT( KCM3GRCSetClipRect, "CM3GRenderingContext::SetClipRect()" );
- AssertTrueL( ETrue, KCM3GRCSetClipRect );
-
- m3gContext->SetViewport( x, y ,width, height );
- _LIT( KCM3GRCSetViewport, "CM3GRenderingContext::SetViewport()" );
- AssertTrueL( ETrue, KCM3GRCSetViewport );
-
- //m3gContext, m3gBackgroud, m3gWorld;
- //m3gLight, m3gCamera, m3gImage, bitmap
- //m3gLightAdd
- CleanupStack::PopAndDestroy( 8 );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3gObjectL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3gObjectL()
- {
- RM3GObject rM3gObject;
- CleanupClosePushL( rM3gObject );
- _LIT( KRM3GObject, "RM3GObject::RM3GObject()" );
- AssertTrueL( ETrue, KRM3GObject );
-
- CleanupStack::PopAndDestroy();// rM3gObject
-
- //RM3GLight derived from RM3GObject
- RM3GLight m3gLight;
- CleanupClosePushL( m3gLight );
- m3gLight.OpenL();
-
- m3gLight.Class();
- _LIT( KRM3GObjectClass, "RM3GObject::Class()" );
- AssertTrueL( ETrue, KRM3GObjectClass );
-
- RArray<RM3GObject> objects;
- objects.Append( m3gLight );
- CleanupClosePushL( objects );
- m3gLight.DuplicateL( objects );
- _LIT( KRM3GObjectDuplicateL, "RM3GObject::DuplicateL()" );
- AssertTrueL( ETrue, KRM3GObjectDuplicateL );
-
- m3gLight.GetReferencesL( objects );
- _LIT( KRM3GObjectGetReferencesL, "RM3GObject::GetReferencesL()" );
- AssertTrueL( ETrue, KRM3GObjectGetReferencesL );
-
- TInt currentId = m3gLight.UserId();
- _LIT( KRM3GObjectUserId, "RM3GObject::UserId()" );
- AssertTrueL( ETrue, KRM3GObjectUserId );
-
- m3gLight.SetUserId( currentId );
- _LIT( KRM3GObjectSetUserId, "RM3GObject::SetUserId()" );
- AssertTrueL( ETrue, KRM3GObjectSetUserId );
-
- RM3GObject returnObject = m3gLight.Find( currentId );
- CleanupClosePushL( returnObject );
- _LIT( KRM3GObjectFind, "RM3GObject::Find()" );
- AssertTrueL( ETrue, KRM3GObjectFind );
-
- RM3GAnimationTrack m3gAnimationT;
- CleanupClosePushL( m3gAnimationT );
- RM3GKeyframeSequence m3gKeyframeSequence;
- CleanupClosePushL( m3gKeyframeSequence );
- const TInt keyframeCount = 1;
- const TInt componentCount = 1;
- m3gKeyframeSequence.OpenL( keyframeCount,
- componentCount,
- RM3GKeyframeSequence::ELinear );
- m3gAnimationT.OpenL( m3gKeyframeSequence, RM3GAnimationTrack::EDensity );
- m3gLight.AddAnimationTrack( m3gAnimationT );
- _LIT( KRM3GObjectAddAnimationTrack,
- "RM3GObject::AddAnimationTrack()" );
- AssertTrueL( ETrue, KRM3GObjectAddAnimationTrack );
-
- TInt animateTime = 20;
- m3gLight.Animate( animateTime );
- _LIT( KRM3GObjectAnimate, "RM3GObject::Animate()" );
- AssertTrueL( ETrue, KRM3GObjectAnimate );
-
- m3gLight.AnimationTrack( 1 );
- _LIT( KRM3GObjectAnimationTrack,
- "RM3GObject::AnimationTrack()" );
- AssertTrueL( ETrue, KRM3GObjectAnimationTrack );
-
- m3gLight.AnimationTrackCount();
- _LIT( KRM3GObjectAnimationTrackCount,
- "RM3GObject::AnimationTrackCount()" );
- AssertTrueL( ETrue, KRM3GObjectAnimationTrackCount );
-
- m3gLight.RemoveAnimationTrack( m3gAnimationT );
- _LIT( KRM3GObjectRemoveAnimationTrack,
- "RM3GObject::RemoveAnimationTrack()" );
- AssertTrueL( ETrue, KRM3GObjectRemoveAnimationTrack );
-
- //m3gLight, objects, returnObject, m3gAnimationT, m3gKeyframeSequence
- CleanupStack::PopAndDestroy( 5 );
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GBackgroundL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GBackgroundL()
- {
- TBool isTure = ETrue;
- RM3GBackground m3gBackGround;
- CleanupClosePushL( m3gBackGround );
- _LIT( KRM3GBg, "RM3GBackground::RM3GBackground()" );
- AssertTrueL( ETrue, KRM3GBg );
-
- m3gBackGround.OpenL();
- _LIT( KRM3GBgOpenL, "RM3GBackground::OpenL()" );
- AssertTrueL( ETrue, KRM3GBgOpenL );
-
- TInt bColor = m3gBackGround.Color();
- _LIT( KRM3GBgColor, "RM3GBackground::Color()" );
- AssertTrueL( ETrue, KRM3GBgColor );
-
- TInt cropHeight = m3gBackGround.CropHeight();
- _LIT( KRM3GBgCropHeight, "RM3GBackground::CropHeight()" );
- AssertTrueL( ETrue, KRM3GBgCropHeight );
-
- TInt cropWidth = m3gBackGround.CropWidth();
- _LIT( KRM3GBgCropWidth, "RM3GBackground::CropWidth()" );
- AssertTrueL( ETrue, KRM3GBgCropWidth );
-
- TInt cropX = m3gBackGround.CropX();
- _LIT( KRM3GBgCropX, "RM3GBackground::CropX()" );
- AssertTrueL( ETrue, KRM3GBgCropX );
-
- TInt cropY = m3gBackGround.CropY();
- _LIT( KRM3GBgCropY, "RM3GBackground::CropY()" );
- AssertTrueL( ETrue, KRM3GBgCropY );
-
- RM3GImage m3gImage = m3gBackGround.Image();
- CleanupClosePushL( m3gImage );
- _LIT( KRM3GBgImage, "RM3GBackground::Image()" );
- AssertTrueL( ETrue, KRM3GBgImage );
-
- RM3GBackground::TImageMode imageModeX = m3gBackGround.ImageModeX();
- _LIT( KRM3GBgImageModeX, "RM3GBackground::ImageModeX()" );
- AssertTrueL( ETrue, KRM3GBgImageModeX );
-
- RM3GBackground::TImageMode imageModeY = m3gBackGround.ImageModeY();
- _LIT( KRM3GBgImageModeY, "RM3GBackground::ImageModeY()" );
- AssertTrueL( ETrue, KRM3GBgImageModeY );
-
- m3gBackGround.IsColorClearEnabled();
- _LIT( KRM3GBgIsColorClearEnabled,
- "RM3GBackground::IsColorClearEnabled()" );
- AssertTrueL( ETrue, KRM3GBgIsColorClearEnabled );
-
- m3gBackGround.IsDepthClearEnabled();
- _LIT( KRM3GBgIsDepthClearEnabled,
- "RM3GBackground::IsDepthClearEnabled()" );
- AssertTrueL( ETrue, KRM3GBgIsDepthClearEnabled );
-
- m3gBackGround.SetColor( bColor );
- _LIT( KRM3GBgSetColor, "RM3GBackground::SetColor()" );
- AssertTrueL( ETrue, KRM3GBgSetColor );
-
- m3gBackGround.SetColorClearEnable( isTure );
- _LIT( KRM3GBgSetColorClearEnable,
- "RM3GBackground::SetColorClearEnable()" );
- AssertTrueL( ETrue, KRM3GBgSetColorClearEnable );
-
- m3gBackGround.SetCrop(cropX, cropY, cropWidth, cropHeight);
- _LIT( KRM3GBgSetCrop, "RM3GBackground::SetCrop()" );
- AssertTrueL( ETrue, KRM3GBgSetCrop );
-
- m3gBackGround.SetDepthClearEnable( isTure );
- _LIT( KRM3GBgSetDepthClearEnable, "RM3GBackground::SetDepthClearEnable()" );
- AssertTrueL( ETrue, KRM3GBgSetDepthClearEnable );
-
- m3gBackGround.SetImage( m3gImage );
- _LIT( KRM3GBgSetImage, "RM3GBackground::SetImage()" );
- AssertTrueL( ETrue, KRM3GBgSetImage );
-
- m3gBackGround.SetImageMode( imageModeX, imageModeY );
- _LIT( KRM3GBgSetImageMode, "RM3GBackground::SetImageMode()" );
- AssertTrueL( ETrue, KRM3GBgSetImageMode );
-
- m3gBackGround.Cast( m3gBackGround );
- _LIT( KRM3GBgCast, "RM3GBackground::Cast()" );
- AssertTrueL( ETrue, KRM3GBgCast );
-
- CleanupStack::PopAndDestroy( 2 );//m3gBackGround, m3gImage
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GAppearanceL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GAppearanceL()
- {
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gAppearance );
- _LIT( KRM3GAppearance, "RM3GAppearance::RM3GAppearance()" );
- AssertTrueL( ETrue, KRM3GAppearance );
-
- m3gAppearance.OpenL();
- _LIT( KRM3GApOpenL, "RM3GAppearance::OpenL()" );
- AssertTrueL( ETrue, KRM3GApOpenL );
-
- RM3GCompositingMode m3gCompositingMode = m3gAppearance.CompositingMode();
- _LIT( KRM3GApCompositingMode, "RM3GAppearance::CompositingMode()" );
- AssertTrueL( ETrue, KRM3GApCompositingMode );
-
- m3gAppearance.SetCompositingMode( m3gCompositingMode );
- _LIT( KRM3GApSetCompositingMode, "RM3GAppearance::SetCompositingMode()" );
- AssertTrueL( ETrue, KRM3GApSetCompositingMode );
-
- RM3GFog m3gFog = m3gAppearance.Fog();
- _LIT( KRM3GApFog, "RM3GAppearance::Fog()" );
- AssertTrueL( ETrue, KRM3GApFog );
-
- m3gAppearance.SetFog( m3gFog );
- _LIT( KRM3GApSetFog, "RM3GAppearance::SetFog()" );
- AssertTrueL( ETrue, KRM3GApSetFog );
-
- TInt layer = m3gAppearance.Layer();
- _LIT( KRM3GApLayer, "RM3GAppearance::Layer()" );
- AssertTrueL( ETrue, KRM3GApLayer );
-
- m3gAppearance.SetLayer( layer );
- _LIT( KRM3GApSetLayer, "RM3GAppearance::SetLayer()" );
- AssertTrueL( ETrue, KRM3GApSetLayer );
-
- RM3GMaterial m3gMaterial = m3gAppearance.Material();
- _LIT( KRM3GApMaterial, "RM3GAppearance::Material()" );
- AssertTrueL( ETrue, KRM3GApMaterial );
-
- m3gAppearance.SetMaterial( m3gMaterial );
- _LIT( KRM3GApSetMaterial, "RM3GAppearance::SetMaterial()" );
- AssertTrueL( ETrue, KRM3GApSetMaterial );
-
- RM3GPolygonMode m3gPolygonMode = m3gAppearance.PolygonMode();
- _LIT( KRM3GApPolygonMode, "RM3GAppearance::PolygonMode()" );
- AssertTrueL( ETrue, KRM3GApPolygonMode );
-
- m3gAppearance.SetPolygonMode( m3gPolygonMode );
- _LIT( KRM3GApSetPolygonMode, "RM3GAppearance::SetPolygonMode()" );
- AssertTrueL( ETrue, KRM3GApSetPolygonMode );
-
- TInt textNum = 1;
- RM3GTexture m3gTexture = m3gAppearance.Texture( textNum );
- _LIT( KRM3GApTexture, "RM3GAppearance::Texture()" );
- AssertTrueL( ETrue, KRM3GApTexture );
-
- m3gAppearance.SetTexture( textNum, m3gTexture );
- _LIT( KRM3GApSetTexture, "RM3GAppearance::SetTexture()" );
- AssertTrueL( ETrue, KRM3GApSetTexture );
-
- m3gAppearance.Cast( m3gAppearance );
- _LIT( KRM3GApCast, "RM3GAppearance::Cast()" );
- AssertTrueL( ETrue, KRM3GApCast );
-
- CleanupStack::PopAndDestroy(); //m3gAppearance
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GCompositingModeL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GCompositingModeL()
- {
- RM3GCompositingMode m3gCompositingMode;
- CleanupClosePushL( m3gCompositingMode );
- _LIT( KRM3GCompositingMode,
- "RM3GCompositingMode::RM3GCompositingMode()" );
- AssertTrueL( ETrue, KRM3GCompositingMode );
-
- m3gCompositingMode.OpenL();
- _LIT( KRM3GCMOpenL, "RM3GCompositingMode::OpenL()" );
- AssertTrueL( ETrue, KRM3GCMOpenL );
-
- TReal thresShold = m3gCompositingMode.AlphaThreshold();
- _LIT( KRM3GCMAlphaThreshold, "RM3GCompositingMode::AlphaThreshold()" );
- AssertTrueL( ETrue, KRM3GCMAlphaThreshold );
-
- RM3GCompositingMode::TBlending blend = m3gCompositingMode.Blending();
- _LIT( KRM3GCMBlending, "RM3GCompositingMode::Blending()" );
- AssertTrueL( ETrue, KRM3GCMBlending );
-
- TReal offsetFactor = m3gCompositingMode.DepthOffsetFactor();
- _LIT( KRM3GCMDepthOffsetFactor,
- "RM3GCompositingMode::DepthOffsetFactor()" );
- AssertTrueL( ETrue, KRM3GCMDepthOffsetFactor );
-
- TReal offsetUnits = m3gCompositingMode.DepthOffsetUnits();
- _LIT( KRM3GCMDepthOffsetUnits,
- "RM3GCompositingMode::DepthOffsetUnits()" );
- AssertTrueL( ETrue, KRM3GCMDepthOffsetUnits );
-
- TBool alphaWriteEnabled = m3gCompositingMode.IsAlphaWriteEnabled();
- _LIT( KRM3GCMIsAlphaWriteEnabled,
- "RM3GCompositingMode::IsAlphaWriteEnabled()" );
- AssertTrueL( ETrue, KRM3GCMIsAlphaWriteEnabled );
-
- TBool colorWriteEnabled = m3gCompositingMode.IsColorWriteEnabled();
- _LIT( KRM3GCMIsColorWriteEnabled,
- "RM3GCompositingMode::IsColorWriteEnabled()" );
- AssertTrueL( ETrue, KRM3GCMIsColorWriteEnabled );
-
- TBool depthTestEnabled = m3gCompositingMode.IsDepthTestEnabled();
- _LIT( KRM3GCMIsDepthTestEnabled,
- "RM3GCompositingMode::IsDepthTestEnabled()" );
- AssertTrueL( ETrue, KRM3GCMIsDepthTestEnabled );
-
- TBool depthWriteEnabled = m3gCompositingMode.IsDepthWriteEnabled();
- _LIT( KRM3GCMIsDepthWriteEnabled,
- "RM3GCompositingMode::IsDepthWriteEnabled()" );
- AssertTrueL( ETrue, KRM3GCMIsDepthWriteEnabled );
-
- m3gCompositingMode.SetAlphaThreshold( thresShold );
- _LIT( KRM3GCMSetAlphaThreshold,
- "RM3GCompositingMode::SetAlphaThreshold()" );
- AssertTrueL( ETrue, KRM3GCMSetAlphaThreshold );
-
- m3gCompositingMode.SetAlphaWriteEnable( alphaWriteEnabled );
- _LIT( KRM3GCMSetAlphaWriteEnable,
- "RM3GCompositingMode::SetAlphaWriteEnable()" );
- AssertTrueL( ETrue, KRM3GCMSetAlphaWriteEnable );
-
- m3gCompositingMode.SetBlending( blend );
- _LIT( KRM3GCMSetBlending, "RM3GCompositingMode::SetBlending()" );
- AssertTrueL( ETrue, KRM3GCMSetBlending );
-
- m3gCompositingMode.SetColorWriteEnable( colorWriteEnabled );
- _LIT( KRM3GCMSetColorWriteEnable,
- "RM3GCompositingMode::SetColorWriteEnable()" );
- AssertTrueL( ETrue, KRM3GCMSetColorWriteEnable );
-
- m3gCompositingMode.SetDepthOffset( offsetFactor, offsetUnits );
- _LIT( KRM3GCMSetDepthOffset, "RM3GCompositingMode::SetDepthOffset()" );
- AssertTrueL( ETrue, KRM3GCMSetDepthOffset );
-
- m3gCompositingMode.SetDepthTestEnable( depthTestEnabled );
- _LIT( KRM3GCMSetDepthTestEnable,
- "RM3GCompositingMode::SetDepthTestEnable()" );
- AssertTrueL( ETrue, KRM3GCMSetDepthTestEnable );
-
- m3gCompositingMode.SetDepthWriteEnable( depthWriteEnabled );
- _LIT( KRM3GCMSetDepthWriteEnable,
- "RM3GCompositingMode::SetDepthWriteEnable()" );
- AssertTrueL( ETrue, KRM3GCMSetDepthWriteEnable );
-
- m3gCompositingMode.Cast( m3gCompositingMode );
- _LIT( KRM3GCMCast, "RM3GCompositingMode::Cast()" );
- AssertTrueL( ETrue, KRM3GCMCast );
-
- CleanupStack::PopAndDestroy(); //m3gCompositingMode
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GFogL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GFogL()
- {
- RM3GFog m3gFog;
- CleanupClosePushL( m3gFog );
- _LIT( KRM3GFog, "RM3GFog::RM3GFog()" );
- AssertTrueL( ETrue, KRM3GFog );
-
- m3gFog.OpenL();
- _LIT( KRM3GFogOpenL, "RM3GFog::OpenL()" );
- AssertTrueL( ETrue, KRM3GFogOpenL );
-
- TInt fogColog = m3gFog.Color();
- _LIT( KRM3GFogColor, "RM3GFog::Color()" );
- AssertTrueL( ETrue, KRM3GFogColor );
-
- TReal density = m3gFog.Density();
- _LIT( KRM3GFogDensity, "RM3GFog::Density()" );
- AssertTrueL( ETrue, KRM3GFogDensity );
-
- TReal farDistance = m3gFog.FarDistance();
- _LIT( KRM3GFogFarDistance, "RM3GFog::FarDistance()" );
- AssertTrueL( ETrue, KRM3GFogFarDistance );
-
- RM3GFog::TMode mode = m3gFog.Mode();
- _LIT( KRM3GFogMode, "RM3GFog::Mode()" );
- AssertTrueL( ETrue, KRM3GFogMode );
-
- TReal nearDistance = m3gFog.NearDistance();
- _LIT( KRM3GFogNearDistance, "RM3GFog::NearDistance()" );
- AssertTrueL( ETrue, KRM3GFogNearDistance );
-
- m3gFog.SetColor( fogColog );
- _LIT( KRM3GFogSetColor, "RM3GFog::SetColor()" );
- AssertTrueL( ETrue, KRM3GFogSetColor );
-
- m3gFog.SetDensity( density );
- _LIT( KRM3GFogSetDensity, "RM3GFog::SetDensity()" );
- AssertTrueL( ETrue, KRM3GFogSetDensity );
-
- m3gFog.SetLinear( nearDistance, farDistance );
- _LIT( KRM3GFogSetLinear, "RM3GFog::SetLinear()" );
- AssertTrueL( ETrue, KRM3GFogSetLinear );
-
- m3gFog.SetMode( mode );
- _LIT( KRM3GFogSetMode, "RM3GFog::SetMode()" );
- AssertTrueL( ETrue, KRM3GFogSetMode );
-
- m3gFog.Cast( m3gFog );
- _LIT( KRM3GFogCast, "RM3GFog::Cast()" );
- AssertTrueL( ETrue, KRM3GFogCast );
-
- CleanupStack::PopAndDestroy(); //m3gFog
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GMaterialL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GMaterialL()
- {
- RM3GMaterial m3gMaterial;
- CleanupClosePushL( m3gMaterial );
- _LIT( KRM3GMaterial, "RM3GMaterial::RM3GMaterial()" );
- AssertTrueL( ETrue, KRM3GMaterial );
- m3gMaterial.OpenL();
- _LIT( KRM3GMaterialOpenL, "RM3GMaterial::OpenL()" );
- AssertTrueL( ETrue, KRM3GMaterialOpenL );
-
- TInt colorNum = m3gMaterial.Color( RM3GMaterial::ESpecular );
- _LIT( KRM3GMaterialColor, "RM3GMaterial::Color()" );
- AssertTrueL( ETrue, KRM3GMaterialColor );
-
- m3gMaterial.SetColor( RM3GMaterial::ESpecular, colorNum );
- _LIT( KRM3GMaterialSetColor, "RM3GMaterial::SetColor()" );
- AssertTrueL( ETrue, KRM3GMaterialSetColor );
-
- TReal shininess = m3gMaterial.Shininess();
- _LIT( KRM3GMaterialShininess, "RM3GMaterial::Shininess()" );
- AssertTrueL( ETrue, KRM3GMaterialShininess );
-
- TBool isVertex = m3gMaterial.IsVertexColorTrackingEnabled();
- _LIT( KRM3GMaterialIsVertexColorTrackingEnabled,
- "RM3GMaterial::IsVertexColorTrackingEnabled()" );
- AssertTrueL( ETrue, KRM3GMaterialIsVertexColorTrackingEnabled );
-
- m3gMaterial.SetShininess( shininess );
- _LIT( KRM3GMaterialSetShininess, "RM3GMaterial::SetShininess()" );
- AssertTrueL( ETrue, KRM3GMaterialSetShininess );
-
- m3gMaterial.SetVertexColorTrackingEnable( isVertex );
- _LIT( KRM3GMaterialSetVertexColorTrackingEnable,
- "RM3GMaterial::SetVertexColorTrackingEnable()" );
- AssertTrueL( ETrue, KRM3GMaterialSetVertexColorTrackingEnable );
-
- m3gMaterial.Cast( m3gMaterial );
- _LIT( KRM3GMaterialCast, "RM3GMaterial::Cast()" );
- AssertTrueL( ETrue, KRM3GMaterialCast );
-
- CleanupStack::PopAndDestroy(); //m3gMaterial
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GPolygonModeL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GPolygonModeL()
- {
- RM3GPolygonMode m3gPolygonMode;
- CleanupClosePushL( m3gPolygonMode );
- _LIT( KRM3GPolygonMode, "RM3GPolygonMode::RM3GPolygonMode()" );
- AssertTrueL( ETrue, KRM3GPolygonMode );
-
- m3gPolygonMode.OpenL();
- _LIT( KRM3GPolygonModeOpenL, "RM3GPolygonMode::OpenL()" );
- AssertTrueL( ETrue, KRM3GPolygonModeOpenL );
-
- RM3GPolygonMode::TCulling culling = m3gPolygonMode.Culling();
- _LIT( KRM3GPolygonModeCulling, "RM3GPolygonMode::Culling()" );
- AssertTrueL( ETrue, KRM3GPolygonModeCulling );
-
- RM3GPolygonMode::TShading shading = m3gPolygonMode.Shading();
- _LIT( KRM3GPolygonModeShading, "RM3GPolygonMode::Shading()" );
- AssertTrueL( ETrue, KRM3GPolygonModeShading );
-
- RM3GPolygonMode::TWinding winding = m3gPolygonMode.Winding();
- _LIT( KRM3GPolygonModeWinding, "RM3GPolygonMode::Winding()" );
- AssertTrueL( ETrue, KRM3GPolygonModeWinding );
-
- TBool isTSLEnabled = m3gPolygonMode.IsTwoSidedLightingEnabled();
- _LIT( KRM3GPolygonModeIsTwoSidedLightingEnabled,
- "RM3GPolygonMode::IsTwoSidedLightingEnabled()" );
- AssertTrueL( ETrue, KRM3GPolygonModeIsTwoSidedLightingEnabled );
-
- m3gPolygonMode.SetCulling( culling );
- _LIT( KRM3GPolygonModeSetCulling, "RM3GPolygonMode::SetCulling()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetCulling );
-
- m3gPolygonMode.SetLocalCameraLightingEnable( isTSLEnabled );
- _LIT( KRM3GPolygonModeSetLocalCameraLightingEnable,
- "RM3GPolygonMode::SetLocalCameraLightingEnable()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetLocalCameraLightingEnable );
-
- m3gPolygonMode.SetPerspectiveCorrectionEnable( isTSLEnabled );
- _LIT( KRM3GPolygonModeSetPerspectiveCorrectionEnable,
- "RM3GPolygonMode::SetPerspectiveCorrectionEnable()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetPerspectiveCorrectionEnable );
-
- m3gPolygonMode.SetShading( shading );
- _LIT( KRM3GPolygonModeSetShading, "RM3GPolygonMode::SetShading()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetShading );
-
- m3gPolygonMode.SetTwoSidedLightingEnable( isTSLEnabled );
- _LIT( KRM3GPolygonModeSetTwoSidedLightingEnable,
- "RM3GPolygonMode::SetTwoSidedLightingEnable()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetTwoSidedLightingEnable );
-
- m3gPolygonMode.SetWinding( winding );
- _LIT( KRM3GPolygonModeSetWinding, "RM3GPolygonMode::SetWinding()" );
- AssertTrueL( ETrue, KRM3GPolygonModeSetWinding );
-
- m3gPolygonMode.Cast( m3gPolygonMode );
- _LIT( KRM3GPolygonModeCast, "RM3GPolygonMode::Cast()" );
- AssertTrueL( ETrue, KRM3GPolygonModeCast );
-
- CleanupStack::PopAndDestroy(); //m3gPolygonMode
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GTextureL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GTextureL()
- {
- RM3GTexture m3gTexture;
- CleanupClosePushL( m3gTexture );
- _LIT( KRM3GTexture, "RM3GTexture::RM3GTexture()" );
- AssertTrueL( ETrue, KRM3GTexture );
-
- //Construct RM3GImage object;
- RM3GImage m3gImage;
- CleanupClosePushL( m3gImage );
- TUint imageWidth = 16;
- TUint imageHeight = 16;
- TInt flag = 0;
- m3gImage.OpenL( RM3GImage::ERGB,
- imageWidth,
- imageHeight,
- flag );
-
- m3gTexture.OpenL( m3gImage );
- _LIT( KRM3GTextureOpenL, "RM3GTexture::OpenL()" );
- AssertTrueL( ETrue, KRM3GTextureOpenL );
-
- TInt bColor = m3gTexture.BlendColor();
- _LIT( KRM3GTextureBlendColor, "RM3GTexture::BlendColor()" );
- AssertTrueL( ETrue, KRM3GTextureBlendColor );
-
- RM3GTexture::TBlending blending = m3gTexture.Blending();
- _LIT( KRM3GTextureBlending, "RM3GTexture::Blending()" );
- AssertTrueL( ETrue, KRM3GTextureBlending );
-
- RM3GImage m3gImageCopy = m3gTexture.Image();
- CleanupClosePushL( m3gImageCopy );
- _LIT( KRM3GTextureImage, "RM3GTexture::Image()" );
- AssertTrueL( ETrue, KRM3GTextureImage );
-
- RM3GTexture::TWrapping wrappingS = m3gTexture.WrappingS();
- _LIT( KRM3GTextureWrappingS, "RM3GTexture::WrappingS()" );
- AssertTrueL( ETrue, KRM3GTextureWrappingS );
-
- RM3GTexture::TWrapping wrappingT = m3gTexture.WrappingT();
- _LIT( KRM3GTextureWrappingT, "RM3GTexture::WrappingT()" );
- AssertTrueL( ETrue, KRM3GTextureWrappingT );
-
- m3gTexture.SetBlendColor( bColor );
- _LIT( KRM3GTextureSetBlendColor, "RM3GTexture::SetBlendColor()" );
- AssertTrueL( ETrue, KRM3GTextureSetBlendColor);
-
- m3gTexture.SetBlending( blending );
- _LIT( KRM3GTextureSetBlending, "RM3GTexture::SetBlending()" );
- AssertTrueL( ETrue, KRM3GTextureSetBlending );
-
- m3gTexture.SetFiltering( RM3GTexture::EBaseLevel, RM3GTexture::ELinear );
- _LIT( KRM3GTextureSetFiltering, "RM3GTexture::SetFiltering()" );
- AssertTrueL( ETrue, KRM3GTextureSetFiltering );
-
- m3gTexture.SetImage( m3gImage );
- _LIT( KRM3GTextureSetImage, "RM3GTexture::SetImage()" );
- AssertTrueL( ETrue, KRM3GTextureSetImage);
-
- m3gTexture.SetWrapping( wrappingS, wrappingT );
- _LIT( KRM3GTextureSetWrapping, "RM3GTexture::SetWrapping()" );
- AssertTrueL( ETrue, KRM3GTextureSetWrapping );
-
- m3gTexture.Cast( m3gTexture );
- _LIT( KRM3GTextureCast, "RM3GTexture::Cast()" );
- AssertTrueL( ETrue, KRM3GTextureCast );
-
- CleanupStack::PopAndDestroy( 3 ); //m3gTexture, m3gImage, m3gImageCopy
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GKeyframeSequenceL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GKeyframeSequenceL()
- {
- RM3GKeyframeSequence keyFrameSeq;
- CleanupClosePushL( keyFrameSeq );
- _LIT( KRM3GKfSequence, "RM3GKeyframeSequence::RM3GKeyframeSequence()" );
- AssertTrueL( ETrue, KRM3GKfSequence );
-
- const TInt keyframeCount = 1;
- const TInt componentCount = 1;
- keyFrameSeq.OpenL( keyframeCount,
- componentCount,
- RM3GKeyframeSequence::ELinear );
- _LIT( KRM3GKfSequenceOpenL, "RM3GKeyframeSequence::OpenL()" );
- AssertTrueL( ETrue, KRM3GKfSequenceOpenL );
-
- TInt duration = keyFrameSeq.Duration();
- _LIT( KRM3GKfSequenceDuration, "RM3GKeyframeSequence::Duration()" );
- AssertTrueL( ETrue, KRM3GKfSequenceDuration );
-
- RM3GKeyframeSequence::TRepeatMode rpMode = keyFrameSeq.RepeatMode();
- _LIT( KRM3GKfSequenceRepeatMode, "RM3GKeyframeSequence::RepeatMode()" );
- AssertTrueL( ETrue, KRM3GKfSequenceRepeatMode );
-
- keyFrameSeq.SetDuration( duration );
- _LIT( KRM3GKfSequenceSetDuration, "RM3GKeyframeSequence::SetDuration()" );
- AssertTrueL( ETrue, KRM3GKfSequenceSetDuration );
-
- RArray<TReal> values;
- CleanupClosePushL( values );
- const TInt index = 0;
- const TInt time = 0;
- keyFrameSeq.SetKeyframe( index, time, values );
- _LIT( KRM3GKfSequenceSetKeyframe, "RM3GKeyframeSequence::SetKeyframe()" );
- AssertTrueL( ETrue, KRM3GKfSequenceSetKeyframe );
-
- keyFrameSeq.SetRepeatMode( rpMode );
- _LIT( KRM3GKfSequenceSetRepeatMode,
- "RM3GKeyframeSequence::SetRepeatMode()" );
- AssertTrueL( ETrue, KRM3GKfSequenceSetRepeatMode );
-
- const TInt firstNum = 0;
- const TInt SecondNum = 10;
- keyFrameSeq.SetValidRange( firstNum, SecondNum);
- _LIT( KRM3GKfSequenceSetValidRange,
- "RM3GKeyframeSequence::SetValidRange()" );
- AssertTrueL( ETrue, KRM3GKfSequenceSetValidRange );
-
- keyFrameSeq.Cast( keyFrameSeq );
- _LIT( KRM3GKfSequenceCast, "RM3GKeyframeSequence::Cast()" );
- AssertTrueL( ETrue, KRM3GKfSequenceCast );
-
- CleanupStack::PopAndDestroy( 2 );// keyFrameSeq, values
-
- //Test TM3GMatrix::Unity()
- TM3GMatrix m3gMatrix;
- m3gMatrix.Unity();
- _LIT( KTM3GMatrix, "TM3GMatrix::Unity()" );
- AssertTrueL( ETrue, KTM3GMatrix );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GVertexBufferL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GVertexBufferL()
- {
- RM3GVertexBuffer m3gVertexBuffer;
- CleanupClosePushL( m3gVertexBuffer );
- _LIT( KRM3GVertexBuffer, "RM3GVertexBuffer::RM3GVertexBuffer()" );
- AssertTrueL( ETrue, KRM3GVertexBuffer );
-
- m3gVertexBuffer.OpenL();
- _LIT( KRM3GVBOpenL, "RM3GVertexBuffer::OpenL()" );
- AssertTrueL( ETrue, KRM3GVBOpenL );
-
- RM3GVertexArray m3gArray = m3gVertexBuffer.Colors();
- CleanupClosePushL( m3gArray );
- _LIT( KRM3GVBColors, "RM3GVertexBuffer::Colors()" );
- AssertTrueL( ETrue, KRM3GVBColors );
-
- TUint defaultColor = m3gVertexBuffer.DefaultColor();
- _LIT( KRM3GVBDefaultColor, "RM3GVertexBuffer::DefaultColor()" );
- AssertTrueL( ETrue, KRM3GVBDefaultColor );
-
- RM3GVertexArray normalArray = m3gVertexBuffer.Normals();
- CleanupClosePushL( normalArray );
- _LIT( KRM3GVBNormals, "RM3GVertexBuffer::Normals()" );
- AssertTrueL( ETrue, KRM3GVBNormals );
-
- RArray<TReal32> scaleBias;
- CleanupClosePushL( scaleBias );
- RM3GVertexArray positionArray = m3gVertexBuffer.Positions( scaleBias );
- CleanupClosePushL( positionArray );
- _LIT( KRM3GVBPositions, "RM3GVertexBuffer::Positions()" );
- AssertTrueL( ETrue, KRM3GVBPositions );
-
- TInt index = 0;
- RM3GVertexArray textCoords =
- m3gVertexBuffer.TexCoords( index, scaleBias );
- CleanupClosePushL( textCoords );
- _LIT( KRM3GVBTexCoords, "RM3GVertexBuffer::TexCoords()" );
- AssertTrueL( ETrue, KRM3GVBTexCoords );
-
- m3gVertexBuffer.VertexCount();
- _LIT( KRM3GVBVertexCount, "RM3GVertexBuffer::VertexCount()" );
- AssertTrueL( ETrue, KRM3GVBVertexCount );
-
- m3gVertexBuffer.SetColors( m3gArray );
- _LIT( KRM3GVBSetColors, "RM3GVertexBuffer::SetColors()" );
- AssertTrueL( ETrue, KRM3GVBSetColors );
-
- m3gVertexBuffer.SetDefaultColor( defaultColor );
- _LIT( KRM3GVBSetDefaultColor, "RM3GVertexBuffer::SetDefaultColor()" );
- AssertTrueL( ETrue, KRM3GVBSetDefaultColor );
-
- m3gVertexBuffer.SetNormals( normalArray );
- _LIT( KRM3GVBSetNormals, "RM3GVertexBuffer::SetNormals()" );
- AssertTrueL( ETrue, KRM3GVBSetNormals );
-
- TM3GVector3 m3gVector3;
- TReal scale = 1.0;
- m3gVertexBuffer.SetPositions( positionArray, scale, m3gVector3 );
- _LIT( KRM3GVBSetPositions, "RM3GVertexBuffer::SetPositions()" );
- AssertTrueL( ETrue, KRM3GVBSetPositions );
-
- TInt textUint = 1;
- m3gVertexBuffer.SetTexCoords( textUint, textCoords, scale, m3gVector3 );
- _LIT( KRM3GVBSetTexCoordsV3, "RM3GVertexBuffer::SetTexCoords()" );
- AssertTrueL( ETrue, KRM3GVBSetTexCoordsV3 );
-
- TM3GVector2 m3gVector2;
- m3gVertexBuffer.SetTexCoords( textUint, textCoords, scale, m3gVector2 );
- _LIT( KRM3GVBSetTexCoordsV2, "RM3GVertexBuffer::SetTexCoords()" );
- AssertTrueL( ETrue, KRM3GVBSetTexCoordsV2 );
-
- m3gVertexBuffer.Cast( m3gVertexBuffer );
- _LIT( KRM3GVBCast, "RM3GVertexBuffer::Cast()" );
- AssertTrueL( ETrue, KRM3GVBCast );
-
- // m3gVertexBuffer, m3gArray, normalArray,
- // scaleBias, positionArray, textCoords
- CleanupStack::PopAndDestroy( 6, &m3gVertexBuffer );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GVertexArrayL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GVertexArrayL()
- {
- //Test APIS of class RM3GVertexArray as follow.
- RM3GVertexArray m3gVertextArray;
- CleanupClosePushL( m3gVertextArray );
- _LIT( KRM3GVertexArray, "RM3GVertexArray::RM3GVertexArray()" );
- AssertTrueL( ETrue, KRM3GVertexArray );
-
- TUint vertexCount = 12;
- TUint componentCount = 3;
- m3gVertextArray.OpenL( vertexCount, componentCount, EM3GShort );
- _LIT( KRM3GVertexArrayOpenL, "RM3GVertexArray::OpenL()" );
- AssertTrueL( ETrue, KRM3GVertexArrayOpenL );
-
- TUint firstVertex = 1;
- TUint aSourceBufferLength = 3;
- TInt8 vertics8 = 2;
- TInt16 vertics16 = 2;
- m3gVertextArray.Set( firstVertex,
- vertexCount,
- aSourceBufferLength,
- &vertics8 );
- _LIT( KRM3GVertexArraySet8, "RM3GVertexArray::Set()" );
- AssertTrueL( ETrue, KRM3GVertexArraySet8 );
-
- m3gVertextArray.Set( firstVertex,
- vertexCount,
- aSourceBufferLength,
- &vertics16 );
- _LIT( KRM3GVertexArraySet16, "RM3GVertexArray::Set()" );
- AssertTrueL( ETrue, KRM3GVertexArraySet16 );
-
- m3gVertextArray.Cast( m3gVertextArray );
- _LIT( KRM3GVertexArrayCast, "RM3GVertexArray::Cast()" );
- AssertTrueL( ETrue, KRM3GVertexArrayCast );
-
- CleanupStack::PopAndDestroy(); //m3gVertextArray
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GTriangleStripArrayL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GTriangleStripArrayL()
- {
- //Test APIS of class RM3GTriangleStripArray as follow.
- RM3GTriangleStripArray m3gStripArray;
- CleanupClosePushL( m3gStripArray );
- _LIT( KRM3GTSA, "RM3GTriangleStripArray::RM3GTriangleStripArray()" );
- AssertTrueL( ETrue, KRM3GTSA );
-
- TInt indices[] = { 4, 1, 0, 3 };
- TInt indexCount = 4;
- TInt stripLengths[] = { 3, 3 };
- TInt stripLengthCount = 2;
- TInt firstIndex = 1;
- m3gStripArray.OpenL( firstIndex,
- stripLengths,
- stripLengthCount );
- _LIT( KRM3GTSAOpenLOver, "RM3GTriangleStripArray::OpenL()" );
- AssertTrueL( ETrue, KRM3GTSAOpenLOver );
-
-
- RM3GTriangleStripArray m3gStripArray2;
- CleanupClosePushL( m3gStripArray2 );
- TInt err;
- TRAP( err, m3gStripArray2.OpenL( indices,
- indexCount,
- stripLengths,
- stripLengthCount ) );
- _LIT( KRM3GTSAOpenL, "RM3GTriangleStripArray::OpenL()" );
- AssertTrueL( ETrue, KRM3GTSAOpenL );
-
- CleanupStack::PopAndDestroy( 2 ); //m3gStripArray, m3gStripArray2
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GIndexBufferL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GIndexBufferL()
- {
- //Test APIS of class RM3GIndexBuffer as follow.
- RM3GIndexBuffer m3gIndexBuffer;
- CleanupClosePushL( m3gIndexBuffer );
- _LIT( KRM3GIB, "RM3GIndexBuffer::RM3GIndexBuffer()" );
- AssertTrueL( ETrue, KRM3GIB );
-
- TInt indices[] = { 4, 1, 0, 3 };
- TInt indexCount = 4;
- TInt stripLengths[] = { 3, 3 };
- TInt stripLengthCount = 2;
- TInt firstIndex = 1;
- m3gIndexBuffer.OpenL( firstIndex, stripLengths, stripLengthCount );
- _LIT( KRM3GIndexBufferOpenL, "RM3GIndexBuffer::OpenL()" );
- AssertTrueL( ETrue, KRM3GIndexBufferOpenL );
-
- RM3GIndexBuffer m3gIndexBuffer2;
- CleanupClosePushL( m3gIndexBuffer2 );
- TInt err;
- TRAP( err, m3gIndexBuffer2.OpenL( indices,
- indexCount,
- stripLengths,
- stripLengthCount ) );
- _LIT( KRM3GIBOpenL, "RM3GIndexBuffer::OpenL()" );
- AssertTrueL( ETrue, KRM3GIBOpenL );
-
-
- CleanupStack::PopAndDestroy( 2 ); //m3gIndexBuffer, m3gIndexBuffer2
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GAnimationControllerL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GAnimationControllerL()
- {
- RM3GAnimationController m3gAC;
- CleanupClosePushL( m3gAC );
- _LIT( KRM3GAC, "RM3GAnimationController::RM3GAnimationController()" );
- AssertTrueL( ETrue, KRM3GAC );
-
- m3gAC.OpenL();
- _LIT( KRM3GACOpenL, "RM3GAnimationController::OpenL()" );
- AssertTrueL( ETrue, KRM3GACOpenL );
-
- TInt start = m3gAC.ActiveIntervalStart();
- _LIT( KRM3GACActiveIntervalStart,
- "RM3GAnimationController::ActiveIntervalStart()" );
- AssertTrueL( ETrue, KRM3GACActiveIntervalStart );
-
- TInt end = m3gAC.ActiveIntervalEnd();
- _LIT( KRM3GACActiveIntervalEnd,
- "RM3GAnimationController::ActiveIntervalEnd()" );
- AssertTrueL( ETrue, KRM3GACActiveIntervalEnd );
-
- TInt minT = 1;
- TInt maxT = 10;
- m3gAC.SetActiveInterval( minT, maxT );
- _LIT( KRM3GACSetActiveInterval,
- "RM3GAnimationController::SetActiveInterval()" );
- AssertTrueL( ETrue, KRM3GACSetActiveInterval );
-
- TReal speed = m3gAC.Speed();
- _LIT( KRM3GACSpeed, "RM3GAnimationController::Speed()" );
- AssertTrueL( ETrue, KRM3GACSpeed );
-
- TInt worldTime = 10;
- m3gAC.SetSpeed( speed, worldTime );
- _LIT( KRM3GACSetSpeed, "RM3GAnimationController::SetSpeed()" );
- AssertTrueL( ETrue, KRM3GACSetSpeed );
-
- m3gAC.Position( worldTime );
- _LIT( KRM3GACPosition, "RM3GAnimationController::Position()" );
- AssertTrueL( ETrue, KRM3GACPosition );
-
- TReal32 sTime = 5.00;
- m3gAC.SetPosition( sTime, worldTime );
- _LIT( KRM3GACSetPosition, "RM3GAnimationController::SetPosition()" );
- AssertTrueL( ETrue, KRM3GACSetPosition );
-
- TReal weight = m3gAC.Weight();
- _LIT( KRM3GACWeight, "RM3GAnimationController::Weight()" );
- AssertTrueL( ETrue, KRM3GACWeight );
-
- m3gAC.SetWeight( weight );
- _LIT( KRM3GACSetWeight, "RM3GAnimationController::SetWeight()" );
- AssertTrueL( ETrue, KRM3GACSetWeight );
-
- m3gAC.Cast( m3gAC );
- _LIT( KRM3GACCast, "RM3GAnimationController::Cast()" );
- AssertTrueL( ETrue, KRM3GACCast );
-
- CleanupStack::PopAndDestroy(); //m3gAC
-
- //Test APIS of class RM3GAnimationTrack as follow.
- RM3GAnimationTrack m3gAnimationT;
- CleanupClosePushL( m3gAnimationT );
- _LIT( KRM3GAT, "RM3GAnimationTrack::RM3GAnimationTrack()" );
- AssertTrueL( ETrue, KRM3GAT );
-
- RM3GKeyframeSequence m3gKeyframeSequence;
- CleanupClosePushL( m3gKeyframeSequence );
- const TInt keyframeCount = 1;
- const TInt componentCount = 1;
- m3gKeyframeSequence.OpenL( keyframeCount,
- componentCount,
- RM3GKeyframeSequence::ELinear );
- m3gAnimationT.OpenL( m3gKeyframeSequence, RM3GAnimationTrack::EDensity );
- _LIT( KRM3GATOpenL, "RM3GAnimationTrack::OpenL()" );
- AssertTrueL( ETrue, KRM3GATOpenL );
-
- RM3GAnimationController copyAController = m3gAnimationT.Controller();
- CleanupClosePushL( copyAController );
- _LIT( KRM3GATController, "RM3GAnimationTrack::Controller()" );
- AssertTrueL( ETrue, KRM3GATController );
-
- m3gAnimationT.SetController( copyAController );
- _LIT( KRM3GATSetController, "RM3GAnimationTrack::SetController()" );
- AssertTrueL( ETrue, KRM3GATSetController );
-
- m3gAnimationT.KeyframeSequence();
- _LIT( KRM3GATKeyframeSequence, "RM3GAnimationTrack::KeyframeSequence()" );
- AssertTrueL( ETrue, KRM3GATKeyframeSequence );
-
- m3gAnimationT.TargetProperty();
- _LIT( KRM3GATTargetProperty, "RM3GAnimationTrack::TargetProperty()" );
- AssertTrueL( ETrue, KRM3GATTargetProperty );
-
- m3gAnimationT.Cast( m3gAnimationT );
- _LIT( KRM3GATCast, "RM3GAnimationTrack::Cast()" );
- AssertTrueL( ETrue, KRM3GATCast );
-
- //m3gAnimationT, copyAController, m3gKeyframeSequence.
- CleanupStack::PopAndDestroy( 3 );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gCase::TestRM3GImageL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gCase::TestRM3GImageL()
- {
- RM3GImage m3gImage;
- CleanupClosePushL( m3gImage );
- _LIT( KRM3GImage, "RM3GImage::RM3GImage()" );
- AssertTrueL( ETrue, KRM3GImage );
-
- TInt imageWidth = 20;
- TInt imageHeight = 20;
- TInt flag = 8;
- m3gImage.OpenL( RM3GImage::ELuminance,
- imageWidth,
- imageHeight,
- flag );
- _LIT( KRM3GImageOpenL, "RM3GImage::OpenL()" );
- AssertTrueL( ETrue, KRM3GImageOpenL );
-
- TUint param = 4029;
- m3gImage.SetImage( ¶m );
- _LIT( KRM3GImageSetImage, "RM3GImage::SetImage()" );
- AssertTrueL( ETrue, KRM3GImageSetImage );
-
-
- const TUint32 color16array[16] = {
- 0x00000000,0x00555555,0x00000080,0x00008080,
- 0x00008000,0x000000ff,0x0000ffff,0x0000ff00,
- 0x00ff00ff,0x00ff0000,0x00ffff00,0x00800080,
- 0x00800000,0x00808000,0x00aaaaaa,0x00ffffff};
-
- TInt paletteLength = 16;
- m3gImage.SetImagePalette( paletteLength, color16array );
- _LIT( KRM3GImageSetImagePalette, "RM3GImage::SetImagePalette()" );
- AssertTrueL( ETrue, KRM3GImageSetImagePalette );
-
- TInt line = 1;
- TBool trueAlpha = EFalse;
- m3gImage.SetImageScanLine( line, trueAlpha, ¶m );
- _LIT( KRM3GImageSetImageScanLine, "RM3GImage::SetImageScanLine()" );
- AssertTrueL( ETrue, KRM3GImageSetImageScanLine );
-
- TInt x = 0;
- TInt y = 0;
- m3gImage.SetSubImage( x, y, imageWidth,
- imageHeight, paletteLength, ¶m );
- _LIT( KRM3GImageSetSubImage, "RM3GImage::SetSubImage()" );
- AssertTrueL( ETrue, KRM3GImageSetSubImage );
-
- m3gImage.Format();
- _LIT( KRM3GImageFormat, "RM3GImage::Format()" );
- AssertTrueL( ETrue, KRM3GImageFormat );
-
- m3gImage.Height();
- _LIT( KRM3GImageHeight, "RM3GImage::Height()" );
- AssertTrueL( ETrue, KRM3GImageHeight );
-
- m3gImage.Width();
- _LIT( KRM3GImageWidth, "RM3GImage::Width()" );
- AssertTrueL( ETrue, KRM3GImageWidth );
-
- m3gImage.IsMutable();
- _LIT( KRM3GImageIsMutable, "RM3GImage::IsMutable()" );
- AssertTrueL( ETrue, KRM3GImageIsMutable );
-
- m3gImage.Cast( m3gImage );
- _LIT( KRM3GImageCast, "RM3GImage::Cast()" );
- AssertTrueL( ETrue, KRM3GImageCast);
-
- CleanupStack::PopAndDestroy();//m3gImage
- }
-
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gcontainer.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,123 +0,0 @@
-/*
-* 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: Implement container class
-*
-*/
-
-
-#include "bctestdomm3gcontainer.h"
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gContainer::CBCTestDomM3gContainer()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gContainer::~CBCTestDomM3gContainer()
- {
- ResetControl();
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gContainer::ConstructL( const TRect& aRect )
- {
- CreateWindowL();
- SetRect( aRect );
- ActivateL();
- }
-
-// ----------------------------------------------------------------------------
-// CBCTestDomM3gContainer::Draw
-// Fills the window's rectangle.
-// ----------------------------------------------------------------------------
-//
-void CBCTestDomM3gContainer::Draw( const TRect& aRect ) const
- {
- CWindowGc& gc = SystemGc();
- gc.SetPenStyle( CGraphicsContext::ENullPen );
- gc.SetBrushColor( KRgbGray );
- gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
- gc.DrawRect( aRect );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gContainer::CountComponentControls
-// ---------------------------------------------------------------------------
-//
-TInt CBCTestDomM3gContainer::CountComponentControls() const
- {
- if ( iControl )
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gContainer::ComponentControl
-// ---------------------------------------------------------------------------
-//
-CCoeControl* CBCTestDomM3gContainer::ComponentControl( TInt ) const
- {
- return iControl;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gContainer::SetControlL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gContainer::SetControlL( CCoeControl* aControl )
- {
- iControl = aControl;
- if ( iControl )
- {
- // You can change the position and size
- iControl->SetExtent( Rect().iTl, Rect().Size() );
- iControl->ActivateL();
- DrawNow();
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gContainer::ResetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gContainer::ResetControl()
- {
- delete iControl;
- iControl = NULL;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestPopupsContainer::GetCoeEnv
-// ---------------------------------------------------------------------------
-//
-CCoeEnv* CBCTestDomM3gContainer::GetCoeEnv()
- {
- return iCoeEnv;
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gdocument.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-/*
-* 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: Implement document class
-*
-*/
-
-
-#include "bctestdomm3gdocument.h"
-#include "bctestdomm3gappui.h"
-
-// ================= MEMBER FUNCTIONS =========================================
-
-// ----------------------------------------------------------------------------
-// CBCTestDomM3gDocument* CBCTestDomM3gDocument::NewL( CEikApplication& )
-// Symbian OS two-phased constructor.
-// ----------------------------------------------------------------------------
-//
-CBCTestDomM3gDocument* CBCTestDomM3gDocument::NewL(
- CEikApplication& aApp )
- {
- CBCTestDomM3gDocument* self = new( ELeave )
- CBCTestDomM3gDocument( aApp );
- return self;
- }
-
-// ----------------------------------------------------------------------------
-// CBCTestDomM3gDocument::~CBCTestDomM3gDocument()
-// Destructor.
-// ----------------------------------------------------------------------------
-//
-CBCTestDomM3gDocument::~CBCTestDomM3gDocument()
- {
- }
-
-// ----------------------------------------------------------------------------
-// CBCTestDomM3gDocument::CBCTestDomM3gDocument( CEikApplication& )
-// Overload constructor.
-// ----------------------------------------------------------------------------
-//
-CBCTestDomM3gDocument::CBCTestDomM3gDocument( CEikApplication& aApp )
- : CEikDocument( aApp )
- {
- }
-
-// ----------------------------------------------------------------------------
-// CEikAppUi* CBCTestDomM3gDocument::CreateAppUiL()
-// Constructs CBCTestVolumeAppUi.
-// ----------------------------------------------------------------------------
-//
-CEikAppUi* CBCTestDomM3gDocument::CreateAppUiL()
- {
- return new( ELeave ) CBCTestDomM3gAppUi;
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gnodecase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,889 +0,0 @@
-/*
-* 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: Implement node test case class
-*
-*/
-
-
-#include <avkon.rsg>
-#include <bctestdomm3g.rsg>
-#include <eikenv.h>
-#include <eikappui.h>
-#include <cm3gloader.h>
-#include <rm3gobject.h>
-#include <rm3glight.h>
-#include <rm3gcamera.h>
-#include <rm3gworld.h>
-#include <rm3gbackground.h>
-#include <rm3gsprite.h>
-#include <rm3gappearance.h>
-#include <rm3gimage.h>
-#include <rm3gnode.h>
-#include <rm3gtransformable.h>
-#include <rm3gmesh.h>
-#include <rm3gindexbuffer.h>
-#include <rm3gvertexbuffer.h>
-#include <rm3gmorphingmesh.h>
-#include <rm3gskinnedmesh.h>
-
-#include "bctestdomm3gnodecase.h"
-#include "bctestdomm3gcontainer.h"
-#include "bctestdomm3g.hrh"
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gNodeCase* CBCTestDomM3gNodeCase::NewL(
- CBCTestDomM3gContainer* aContainer )
- {
- CBCTestDomM3gNodeCase* self =
- new( ELeave ) CBCTestDomM3gNodeCase( aContainer );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gNodeCase::CBCTestDomM3gNodeCase(
- CBCTestDomM3gContainer* aContainer )
- : iContainer( aContainer )
- {
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gNodeCase::~CBCTestDomM3gNodeCase()
- {
- //M3GEnv::Release(); //Release env object. Only release one time,or panic.
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::ConstructL()
- {
- BuildScriptL();
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::BuildScriptL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::BuildScriptL()
- {
- const TInt scripts[] =
- {
- //outline13
- LeftCBA,
- Down,
- REP( LeftCBA, 2 ),
-
- //outline14
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 1 ),
- LeftCBA,
-
- //outline15
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 2 ),
- LeftCBA,
-
- //outline16
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 3 ),
- LeftCBA,
-
- //outline17
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 4 ),
- LeftCBA,
-
- //outline18
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 5 ),
- LeftCBA,
-
- //outline19
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 6 ),
- LeftCBA,
-
- //outline20
- LeftCBA,
- Down,
- LeftCBA,
- REP( Down, 7 ),
- LeftCBA,
-
- };
- AddTestScriptL( scripts, sizeof( scripts ) / sizeof( TInt ) );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::RunL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::RunL( TInt aCmd )
- {
- if ( ( aCmd < EBCTestCmdOutline13 ) || ( aCmd > EBCTestCmdOutline20 ) )
- {
- return;
- }
- switch ( aCmd )
- {
- case EBCTestCmdOutline13:
- TestRM3GTransformableL();
- break;
- case EBCTestCmdOutline14:
- TestRM3GNodeL();
- break;
- case EBCTestCmdOutline15:
- TestRM3GCameraL();
- break;
- case EBCTestCmdOutline16:
- TestRM3GGroupL();
- break;
- case EBCTestCmdOutline17:
- TestRM3GLightL();
- break;
- case EBCTestCmdOutline18:
- TestRM3MeshL();
- TestRM3GMorphingMeshL();
- TestRM3GSkinnedMeshL();
- break;
- case EBCTestCmdOutline19:
- TestRM3GSpriteL();
- break;
- case EBCTestCmdOutline20:
- TestRM3GWorldL();
- break;
- default:
- break;
- }
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GTransformableL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GTransformableL()
- {
- //Note:RM3GLight is a sub class of RM3GNode,
- //RM3GNode is a sub class of RM3GTransformable.
- RM3GLight m3gLight;
- CleanupClosePushL( m3gLight );
- m3gLight.OpenL();
-
- TM3GMatrix transform;
- m3gLight.GetCompositeTransform( transform );
- _LIT( KRM3GTransformable, "RM3GTransformable::RM3GTransformable()" );
- AssertTrueL( ETrue, KRM3GTransformable );
-
- TM3GVector4 angleAxis;
- m3gLight.GetOrientation( angleAxis );
- _LIT( KRM3GTformableGetOrientation,
- "RM3GTransformable::GetOrientation()" );
- AssertTrueL( ETrue, KRM3GTformableGetOrientation );
-
- TM3GVector3 translation;
- m3gLight.GetScale( translation );
- _LIT( KRM3GTformableGetScale, "RM3GTransformable::GetScale()" );
- AssertTrueL( ETrue, KRM3GTformableGetScale );
-
- m3gLight.GetTransform( transform );
- _LIT( KRM3GTformableGetTransform,
- "RM3GTransformable::GetTransform()" );
- AssertTrueL( ETrue, KRM3GTformableGetTransform );
-
- m3gLight.GetTranslation( translation );
- _LIT( KRM3GTformableGetTranslation,
- "RM3GTransformable::GetTranslation()" );
- AssertTrueL( ETrue, KRM3GTformableGetTranslation );
-
- TReal32 angle = 1.0;
- TReal32 x = 1.0;
- TReal32 y = 1.0;
- TReal32 z = 1.0;
- m3gLight.PostRotate( angle, x, y, z );
- _LIT( KRM3GTformablePostRotate, "RM3GTransformable::PostRotate()" );
- AssertTrueL( ETrue, KRM3GTformablePostRotate );
-
- m3gLight.PreRotate( angle, x, y, z );
- _LIT( KRM3GTformablePreRotate, "RM3GTransformable::PreRotate()" );
- AssertTrueL( ETrue, KRM3GTformablePreRotate );
-
- m3gLight.Scale( x, y, z );
- _LIT( KRM3GTformableScale, "RM3GTransformable::Scale()" );
- AssertTrueL( ETrue, KRM3GTformableScale );
-
- m3gLight.SetOrientation( angle, x, y, z );
- _LIT( KRM3GTformableSetOrientation,
- "RM3GTransformable::SetOrientation()" );
- AssertTrueL( ETrue, KRM3GTformableSetOrientation );
-
- m3gLight.SetScale( x, y, z );
- _LIT( KRM3GTformableSetScale, "RM3GTransformable::SetScale()" );
- AssertTrueL( ETrue, KRM3GTformableSetScale );
-
- m3gLight.SetTransform( transform );
- _LIT( KRM3GTformableSetTransform, "RM3GTransformable::SetTransform()" );
- AssertTrueL( ETrue, KRM3GTformableSetTransform );
-
- m3gLight.SetTranslation( x, y, z );
- _LIT( KRM3GTformableSetTranslation,
- "RM3GTransformable::SetTranslation()" );
- AssertTrueL( ETrue, KRM3GTformableSetTranslation );
-
- m3gLight.Translate( x, y, z );
- _LIT( KRM3GTformableTranslate, "RM3GTransformable::Translate()" );
- AssertTrueL( ETrue, KRM3GTformableTranslate );
-
- CleanupStack::PopAndDestroy();// m3gLight
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GNodeL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GNodeL()
- {
- //Note:RM3GLight is a sub class of RM3GNode,
- RM3GLight m3gLight;
- CleanupClosePushL( m3gLight );
- m3gLight.OpenL();
-
- m3gLight.Align( m3gLight );
- _LIT( KRM3GNodeAlign, "RM3GNode::Align()" );
- AssertTrueL( ETrue, KRM3GNodeAlign );
-
- TReal factor = m3gLight.AlphaFactor();
- _LIT( KRM3GNodeAlphaFactor, "RM3GNode::AlphaFactor()" );
- AssertTrueL( ETrue, KRM3GNodeAlphaFactor );
-
- RM3GNode m3gNode = m3gLight.Parent();
- _LIT( KRM3GNodeParent, "RM3GNode::Parent()" );
- AssertTrueL( ETrue, KRM3GNodeParent );
- CleanupClosePushL( m3gNode );
-
- TInt scope = m3gLight.Scope();
- _LIT( KRM3GNodeScope, "RM3GNode::Scope()" );
- AssertTrueL( ETrue, KRM3GNodeScope );
-
- TM3GMatrix transform;
- RM3GLight m3gLightPara;
- CleanupClosePushL( m3gLightPara );
- m3gLightPara.OpenL();
- TBool transformFlag = m3gLight.GetTransformTo( m3gLightPara, transform );
- _LIT( KRM3GNodeGetTransformTo, "RM3GNode::GetTransformTo()" );
- AssertTrueL( ETrue, KRM3GNodeGetTransformTo );
-
- TBool pickingFlag = m3gLight.IsPickingEnabled();
- _LIT( KRM3GNodeIsPickingEnabled, "RM3GNode::IsPickingEnabled()" );
- AssertTrueL( ETrue, KRM3GNodeIsPickingEnabled );
-
- TBool renderingFlag = m3gLight.IsRenderingEnabled();
- _LIT( KRM3GNodeIsRenderingEnabled, "RM3GNode::IsRenderingEnabled()" );
- AssertTrueL( ETrue, KRM3GNodeIsRenderingEnabled );
-
- RM3GLight m3gLightZRef;
- CleanupClosePushL( m3gLightZRef );
- m3gLightZRef.OpenL();
- RM3GLight m3gLightYRef;
- CleanupClosePushL( m3gLightYRef );
- m3gLightYRef.OpenL();
- m3gLight.SetAlignment( m3gLightZRef,
- RM3GNode::EZAxis,
- m3gLightYRef,
- RM3GNode::EYAxis );
- _LIT( KRM3GNodeSetAlignment, "RM3GNode::SetAlignment()" );
- AssertTrueL( ETrue, KRM3GNodeSetAlignment );
-
- m3gLight.SetAlphaFactor( factor );
- _LIT( KRM3GNodeSetAlphaFactor, "RM3GNode::SetAlphaFactor()" );
- AssertTrueL( ETrue, KRM3GNodeSetAlphaFactor );
-
- m3gLight.SetPickingEnable( pickingFlag );
- _LIT( KRM3GNodeSetPickingEnable, "RM3GNode::SetPickingEnable()" );
- AssertTrueL( ETrue, KRM3GNodeSetPickingEnable );
-
- m3gLight.SetRenderingEnable( renderingFlag );
- _LIT( KRM3GNodeSetRenderingEnable, "RM3GNode::SetRenderingEnable()" );
- AssertTrueL( ETrue, KRM3GNodeSetRenderingEnable );
-
- m3gLight.SetScope( scope );
- _LIT( KRM3GNodeSetScope, "RM3GNode::SetScope()" );
- AssertTrueL( ETrue, KRM3GNodeSetScope );
-
- // m3gLight, m3gNode, m3gLightPara, m3gLightZRef, m3gLightYRef
- CleanupStack::PopAndDestroy( 5 );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GLightL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GLightL()
- {
- RM3GLight m3gLight;
- RM3GLight m3gCastLight;
- CleanupClosePushL( m3gLight );
- CleanupClosePushL( m3gCastLight );
- _LIT( KRM3GLight, "RM3GLight::RM3GLight()" );
- AssertTrueL( ETrue, KRM3GLight );
-
- m3gLight.OpenL();
- m3gCastLight.OpenL();
- _LIT( KRM3GLightOpenL, "RM3GLight::OpenL()" );
- AssertTrueL( ETrue, KRM3GLightOpenL );
-
- TInt lightColor = m3gLight.Color();
- _LIT( KRM3GLightColor, "RM3GLight::Color()" );
- AssertTrueL( ETrue, KRM3GLightColor );
-
- TReal cAttenuation = m3gLight.ConstantAttenuation();
- _LIT( KRM3GLightConstantAttenuation,
- "RM3GLight::ConstantAttenuation()" );
- AssertTrueL( ETrue, KRM3GLightConstantAttenuation );
-
- TReal intensity = m3gLight.Intensity();
- _LIT( KRM3GLightIntensity, "RM3GLight::Intensity()" );
- AssertTrueL( ETrue, KRM3GLightIntensity );
-
- TReal lAttenuation = m3gLight.LinearAttenuation();
- _LIT( KRM3GLightLinearAttenuation,
- "RM3GLight::LinearAttenuation()" );
- AssertTrueL( ETrue, KRM3GLightLinearAttenuation );
-
- RM3GLight::TLightSource lightMode = m3gLight.Mode();
- _LIT( KRM3GLightMode, "RM3GLight::Mode()" );
- AssertTrueL( ETrue, KRM3GLightMode );
-
- TReal qAttenuation = m3gLight.QuadraticAttenuation();
- _LIT( KRM3GLightQuadraticAttenuation,
- "RM3GLight::QuadraticAttenuation()" );
- AssertTrueL( ETrue, KRM3GLightQuadraticAttenuation );
-
- TReal angle = m3gLight.SpotAngle();
- _LIT( KRM3GLightSpotAngle, "RM3GLight::SpotAngle()" );
- AssertTrueL( ETrue, KRM3GLightSpotAngle );
-
- TReal exponent = m3gLight.SpotExponent();
- _LIT( KRM3GLightSpotExponent, "RM3GLight::SpotExponent()" );
- AssertTrueL( ETrue, KRM3GLightSpotExponent );
-
- m3gLight.SetAttenuation( cAttenuation, lAttenuation, qAttenuation );
- _LIT( KRM3GLightSetAttenuation, "RM3GLight::SetAttenuation()" );
- AssertTrueL( ETrue, KRM3GLightSetAttenuation );
-
- m3gLight.SetColor( lightColor );
- _LIT( KRM3GLightSetColor, "RM3GLight::SetColor()" );
- AssertTrueL( ETrue, KRM3GLightSetColor );
-
- m3gLight.SetIntensity( intensity );
- _LIT( KRM3GLightSetIntensity, "RM3GLight::SetIntensity()" );
- AssertTrueL( ETrue, KRM3GLightSetIntensity );
-
- m3gLight.SetMode( lightMode );
- _LIT( KRM3GLightSetMode, "RM3GLight::SetMode()" );
- AssertTrueL( ETrue, KRM3GLightSetMode );
-
- m3gLight.SetSpotAngle( angle );
- _LIT( KRM3GLightSetSpotAngle, "RM3GLight::SetSpotAngle()" );
- AssertTrueL( ETrue, KRM3GLightSetSpotAngle );
-
- m3gLight.SetSpotExponent( exponent );
- _LIT( KRM3GLightSetSpotExponent, "RM3GLight::SetSpotExponent()" );
- AssertTrueL( ETrue, KRM3GLightSetSpotExponent );
-
- m3gLight.Cast( m3gCastLight );
- _LIT( KRM3GLightCast, "RM3GLight::Cast()" );
- AssertTrueL( ETrue, KRM3GLightCast );
-
- CleanupStack::PopAndDestroy( 2 );// m3gLight, m3gCastLight
-
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GCameraL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GCameraL()
- {
- RM3GCamera m3gCamera;
- CleanupClosePushL( m3gCamera );
- _LIT( KRM3GCamera, "RM3GCamera::RM3GCamera()" );
- AssertTrueL( ETrue, KRM3GCamera );
-
- m3gCamera.OpenL();
- _LIT( KRM3GCameraOpenL, "RM3GCamera::OpenL()" );
- AssertTrueL( ETrue, KRM3GCameraOpenL );
-
- TM3GProjectionParams projectionParams;
- m3gCamera.Projection( projectionParams );
- _LIT( KRM3GCameraProjection, "RM3GCamera::Projection()" );
- AssertTrueL( ETrue, KRM3GCameraProjection );
-
- TM3GMatrix m3gMatrix;
- m3gCamera.Projection( m3gMatrix );
- _LIT( KRM3GCameraProjectionM, "RM3GCamera::Projection()" );
- AssertTrueL( ETrue, KRM3GCameraProjectionM );
-
- m3gCamera.SetGeneric( m3gMatrix );
- _LIT( KRM3GCameraSetGeneric, "RM3GCamera::SetGeneric()" );
- AssertTrueL( ETrue, KRM3GCameraSetGeneric );
-
- TReal32 fovy = 1.0;
- TReal32 aspectRatio = 1.0;
- TReal32 near = 1.0;
- TReal32 far = 2.0;
- m3gCamera.SetParallel( fovy, aspectRatio, near, far );
- _LIT( KRM3GCameraSetParallel, "RM3GCamera::SetParallel()" );
- AssertTrueL( ETrue, KRM3GCameraSetParallel );
-
- m3gCamera.SetPerspective( fovy, aspectRatio, near, far );
- _LIT( KRM3GCameraSetPerspective, "RM3GCamera::SetPerspective()" );
- AssertTrueL( ETrue, KRM3GCameraSetPerspective );
-
- m3gCamera.Cast( m3gCamera );
- _LIT( KRM3GCameraCast, "RM3GCamera::Cast()" );
- AssertTrueL( ETrue, KRM3GCameraCast );
-
- CleanupStack::PopAndDestroy();// m3gCamera
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GGroupL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GGroupL()
- {
- RM3GGroup m3gGroup;
- CleanupClosePushL( m3gGroup );
- _LIT( KRM3GGroup, "RM3GGroup::RM3GGroup()" );
- AssertTrueL( ETrue, KRM3GGroup );
-
- m3gGroup.OpenL();
- _LIT( KRM3GGroupOpenL, "RM3GGroup::OpenL()" );
- AssertTrueL( ETrue, KRM3GGroupOpenL );
-
- RM3GWorld m3gWorld;
- CleanupClosePushL( m3gWorld );
- m3gWorld.OpenL();
- m3gGroup.AddChild( m3gWorld );
- _LIT( KRM3GGroupAddChild, "RM3GGroup::AddChild()" );
- AssertTrueL( ETrue, KRM3GGroupAddChild );
-
- TInt index = 0;
- RM3GNode childNode = m3gGroup.Child( index );
- CleanupClosePushL( childNode );
- _LIT( KRM3GGroupChild, "RM3GGroup::Child()" );
- AssertTrueL( ETrue, KRM3GGroupChild );
-
- m3gGroup.ChildCount();
- _LIT( KRM3GGroupChildCount, "RM3GGroup::ChildCount()" );
- AssertTrueL( ETrue, KRM3GGroupChildCount );
-
- TInt scope = 10;
- TReal32 x = 0;
- TReal32 y = 0;
- RM3GCamera m3gCamera;
- CleanupClosePushL( m3gCamera );
- m3gCamera.OpenL();
- TM3GRayIntersection ri;
- m3gGroup.Pick( scope, x, y, m3gCamera, ri );
- _LIT( KRM3GGroupPick, "RM3GGroup::Pick()" );
- AssertTrueL( ETrue, KRM3GGroupPick );
-
- TM3GRay m3gRay;
- TM3GRayIntersection rayIntersection;
- m3gGroup.Pick( scope, m3gRay, rayIntersection );
- _LIT( KRM3GGroupPickCopy, "RM3GGroup::Pick()" );
- AssertTrueL( ETrue, KRM3GGroupPickCopy );
-
- m3gGroup.RemoveChild( childNode );
- _LIT( KRM3GGroupRemoveChild, "RM3GGroup::RemoveChild()" );
- AssertTrueL( ETrue, KRM3GGroupRemoveChild );
-
- m3gGroup.Cast( m3gGroup );
- _LIT( KRM3GGroupCast, "RM3GGroup::Cast()" );
- AssertTrueL( ETrue, KRM3GGroupCast );
-
- // m3gGroup, childNode, m3gCamera, m3gWorld
- CleanupStack::PopAndDestroy( 4 );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GWorldL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GWorldL()
- {
- RM3GWorld m3gWorld;
- CleanupClosePushL( m3gWorld );
- _LIT( KRM3GWorld, "RM3GWorld::RM3GWorld()" );
- AssertTrueL( ETrue, KRM3GWorld );
-
- m3gWorld.OpenL();
- _LIT( KRM3GWorldOpenL, "RM3GWorld::OpenL()" );
- AssertTrueL( ETrue, KRM3GWorldOpenL );
-
- RM3GCamera camera = m3gWorld.ActiveCamera();
- _LIT( KRM3GWorldActiveCamera, "RM3GWorld::ActiveCamera()" );
- AssertTrueL( ETrue, KRM3GWorldActiveCamera );
- CleanupClosePushL( camera );
-
- RM3GBackground backGround = m3gWorld.Background();
- _LIT( KRM3GWorldBackground, "RM3GWorld::Background()" );
- AssertTrueL( ETrue, KRM3GWorldBackground );
- CleanupClosePushL( backGround );
-
- m3gWorld.SetActiveCamera( camera );
- _LIT( KRM3GWorldSetActiveCamera, "RM3GWorld::SetActiveCamera()" );
- AssertTrueL( ETrue, KRM3GWorldSetActiveCamera );
-
- m3gWorld.SetBackground( backGround );
- _LIT( KRM3GWorldSetBackground, "RM3GWorld::SetBackground()" );
- AssertTrueL( ETrue, KRM3GWorldSetBackground );
-
- m3gWorld.Cast( m3gWorld );
- _LIT( KRM3GWorldCast, "RM3GWorld::Cast()" );
- AssertTrueL( ETrue, KRM3GWorldCast );
-
- CleanupStack::PopAndDestroy( 3 );// m3gWorld, backGround, camera
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GSpriteL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GSpriteL()
- {
- RM3GSprite m3gSprite;
- CleanupClosePushL( m3gSprite );
- _LIT( KRM3GSprite, "RM3GSprite::RM3GSprite()" );
- AssertTrueL( ETrue, KRM3GSprite );
-
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gAppearance );
- m3gAppearance.OpenL();
-
- RM3GImage m3gImage;
- CleanupClosePushL( m3gImage );
- TInt imageWidth = 20;
- TInt imageHeight = 20;
- TInt flag = 1;
- m3gImage.OpenL( RM3GImage::ELuminance,
- imageWidth,
- imageHeight,
- flag );
- TBool scaled = ETrue;
- m3gSprite.OpenL( m3gAppearance, m3gImage, scaled );
- _LIT( KRM3GSpriteOpenL, "RM3GSprite::OpenL()" );
- AssertTrueL( ETrue, KRM3GSpriteOpenL );
-
- RM3GAppearance m3gAppearanceReturn = m3gSprite.Appearance();
- CleanupClosePushL( m3gAppearanceReturn );
- _LIT( KRM3GSpriteAppearance, "RM3GSprite::Appearance()" );
- AssertTrueL( ETrue, KRM3GSpriteAppearance );
-
- TInt cHeight = m3gSprite.CropHeight();
- _LIT( KRM3GSpriteCropHeight, "RM3GSprite::CropHeight()" );
- AssertTrueL( ETrue, KRM3GSpriteCropHeight );
-
- TInt cWidth = m3gSprite.CropWidth();
- _LIT( KRM3GSpriteCropWidth, "RM3GSprite::CropWidth()" );
- AssertTrueL( ETrue, KRM3GSpriteCropWidth );
-
- TInt cX = m3gSprite.CropX();
- _LIT( KRM3GSpriteCropX, "RM3GSprite::CropX()" );
- AssertTrueL( ETrue, KRM3GSpriteCropX );
-
- TInt cY = m3gSprite.CropY();
- _LIT( KRM3GSpriteCropY, "RM3GSprite::CropY()" );
- AssertTrueL( ETrue, KRM3GSpriteCropY );
-
- RM3GImage m3gImageReturn = m3gSprite.Image();
- CleanupClosePushL( m3gImageReturn );
- _LIT( KRM3GSpriteImage, "RM3GSprite::Image()" );
- AssertTrueL( ETrue, KRM3GSpriteImage );
-
- scaled = m3gSprite.IsScaled();
- _LIT( KRM3GSpriteIsScaled, "RM3GSprite::IsScaled()" );
- AssertTrueL( ETrue, KRM3GSpriteIsScaled );
-
- m3gSprite.SetAppearance( m3gAppearanceReturn );
- _LIT( KRM3GSpriteSetAppearance, "RM3GSprite::SetAppearance()" );
- AssertTrueL( ETrue, KRM3GSpriteSetAppearance );
-
- m3gSprite.SetCrop(cHeight, cWidth, cX, cY );
- _LIT( KRM3GSpriteSetCrop, "RM3GSprite::SetCrop()" );
- AssertTrueL( ETrue, KRM3GSpriteSetCrop );
-
- m3gSprite.SetImage( m3gImageReturn );
- _LIT( KRM3GSpriteSetImage, "RM3GSprite::SetImage()" );
- AssertTrueL( ETrue, KRM3GSpriteSetImage );
-
- m3gSprite.Cast( m3gSprite );
- _LIT( KRM3GSpriteCast, "RM3GSprite::Cast()" );
- AssertTrueL( ETrue, KRM3GSpriteCast );
-
- // m3gSprite, m3gAppearance, m3gImage, m3gAppearanceReturn, m3gImageReturn
- CleanupStack::PopAndDestroy( 5 );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3MeshL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3MeshL()
- {
- RM3GMesh m3gMesh;
- CleanupClosePushL( m3gMesh );
- _LIT( KRM3Mesh, "RM3Mesh::RM3Mesh()" );
- AssertTrueL( ETrue, KRM3Mesh );
-
- RM3GIndexBuffer m3gIndexBuffer;
- CleanupClosePushL( m3gIndexBuffer );
-
- TInt stripLengths[] = { 4, 5, 6, 7 };
- TInt stripLengthCount = 4;
- TInt firstIndex = 0;
- m3gIndexBuffer.OpenL( firstIndex, stripLengths, stripLengthCount );
- _LIT( KRM3GIndexBufferOpenL, "RM3GIndexBuffer::OpenL()" );
- AssertTrueL( ETrue, KRM3GIndexBufferOpenL );
-
- RM3GVertexBuffer m3gVertexBuffer;
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gVertexBuffer );
- CleanupClosePushL( m3gAppearance );
-
- m3gVertexBuffer.OpenL();
- m3gAppearance.OpenL();
-
- m3gMesh.OpenL( m3gVertexBuffer, m3gIndexBuffer, m3gAppearance );
- _LIT( KRM3MeshOpenL, "RM3Mesh::OpenL()" );
- AssertTrueL( ETrue, KRM3MeshOpenL );
-
- RArray<RM3GIndexBuffer> indexBuffers;
- RArray<RM3GAppearance> appearances;
- CleanupClosePushL( indexBuffers );
- CleanupClosePushL( appearances );
- RM3GMesh m3gMeshCopy;
- CleanupClosePushL( m3gMeshCopy );
- m3gMeshCopy.OpenL( m3gVertexBuffer, indexBuffers, appearances );
- _LIT( KRM3MeshOpenLOver, "RM3Mesh::OpenL()" );
- AssertTrueL( ETrue, KRM3MeshOpenLOver );
-
- TInt index = 0;
- RM3GAppearance appearanceReturn = m3gMesh.Appearance( index );
- _LIT( KRM3MeshAppearance, "RM3Mesh::Appearance()" );
- AssertTrueL( ETrue, KRM3MeshAppearance );
- CleanupClosePushL( appearanceReturn );
-
- RM3GIndexBuffer indexBufferReturn = m3gMesh.IndexBuffer( index );
- CleanupClosePushL( indexBufferReturn );
- _LIT( KRM3MeshIndexBuffer, "RM3Mesh::IndexBuffer()" );
- AssertTrueL( ETrue, KRM3MeshIndexBuffer );
-
- TInt submeshCount = m3gMesh.SubmeshCount();
- _LIT( KRM3MeshSubmeshCount, "RM3Mesh::SubmeshCount()" );
- AssertTrueL( ETrue, KRM3MeshSubmeshCount );
-
- RM3GVertexBuffer vertexBufferRetrun = m3gMesh.VertexBuffer();
- CleanupClosePushL( vertexBufferRetrun );
- _LIT( KRM3MeshVertexBuffer, "RM3Mesh::VertexBuffer()" );
- AssertTrueL( ETrue, KRM3MeshVertexBuffer );
-
- m3gMesh.SetAppearance( index, appearanceReturn );
- _LIT( KRM3MeshSetAppearance, "RM3Mesh::SetAppearance()" );
- AssertTrueL( ETrue, KRM3MeshSetAppearance );
-
- m3gMesh.Cast( m3gMesh );
- _LIT( KRM3MeshCast, "RM3Mesh::Cast()" );
- AssertTrueL( ETrue, KRM3MeshCast );
-
- //m3gMesh, m3gIndexBuffer, m3gVertexBuffer,
- //m3gAppearance, indexBuffers, appearances, m3gMeshCopy,
- //appearanceReturn, indexBufferReturn, vertexBufferRetrun
- CleanupStack::PopAndDestroy( 10 );
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GMorphingMeshL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GMorphingMeshL()
- {
- #ifdef __WINSCW__
- RM3GMorphingMesh m3gMorphingMesh;
- CleanupClosePushL( m3gMorphingMesh );
- _LIT( KRM3GMMesh, "RM3GMorphingMesh::RM3GMorphingMesh()" );
- AssertTrueL( ETrue, KRM3GMMesh );
-
- RM3GIndexBuffer m3gIndexBuffer;
- CleanupClosePushL( m3gIndexBuffer );
- TInt stripLengths[] = { 4, 5, 6, 7 };
- TInt stripLengthCount = 4;
- TInt firstIndex = 0;
- m3gIndexBuffer.OpenL( firstIndex, stripLengths, stripLengthCount );
-
- RM3GVertexBuffer m3gVertexBuffer;
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gVertexBuffer );
- CleanupClosePushL( m3gAppearance );
-
- m3gVertexBuffer.OpenL();
- m3gAppearance.OpenL();
-
- RArray<RM3GVertexBuffer> targets;
- CleanupClosePushL( targets );
- targets.Append( m3gVertexBuffer );
-
- m3gMorphingMesh.OpenL( m3gVertexBuffer,
- targets,
- m3gIndexBuffer,
- m3gAppearance );
- _LIT( KRM3GMMeshOpenL, "RM3GMorphingMesh::OpenL()" );
- AssertTrueL( ETrue, KRM3GMMeshOpenL );
-
- m3gMorphingMesh.Cast( m3gMorphingMesh );
- _LIT( KRM3GMMeshCast, "RM3GMorphingMesh::Cast()" );
- AssertTrueL( ETrue, KRM3GMMeshCast );
-
- RM3GMorphingMesh m3gMorphingMeshCopy;
- CleanupClosePushL( m3gMorphingMeshCopy );
-
- RArray<RM3GIndexBuffer> submeshes;
- RArray<RM3GAppearance> appearances;
- CleanupClosePushL( submeshes );
- CleanupClosePushL( appearances );
- submeshes.AppendL( m3gIndexBuffer );
- appearances.AppendL( m3gAppearance );
-
-
- m3gMorphingMeshCopy.OpenL( m3gVertexBuffer,
- targets,
- submeshes,
- appearances );
- _LIT( KRM3GMMeshOpenLOver, "RM3GMorphingMesh::OpenL()" );
- AssertTrueL( ETrue, KRM3GMMeshOpenLOver );
-
- // m3gMorphingMesh, m3gIndexBuffer, m3gVertexBuffer,
- // m3gAppearance, targets, m3gMorphingMeshCopy,
- // submeshes, appearances
- CleanupStack::PopAndDestroy( 8 );
- #endif
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gNodeCase::TestRM3GSkinnedMeshL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gNodeCase::TestRM3GSkinnedMeshL()
- {
- RM3GSkinnedMesh m3gSkinnedMesh;
- CleanupClosePushL( m3gSkinnedMesh );
- _LIT( KRM3GSMesh, "RM3GSkinnedMesh::RM3GSkinnedMesh()" );
- AssertTrueL( ETrue, KRM3GSMesh );
-
- RM3GGroup m3gGroup;
- CleanupClosePushL( m3gGroup );
- m3gGroup.OpenL();
-
- RM3GIndexBuffer m3gIndexBuffer;
- CleanupClosePushL( m3gIndexBuffer );
- TInt stripLengths[] = { 4, 5, 6, 7 };
- TInt stripLengthCount = 4;
- TInt firstIndex = 0;
- m3gIndexBuffer.OpenL( firstIndex, stripLengths, stripLengthCount );
-
- RM3GVertexBuffer m3gVertexBuffer;
- RM3GAppearance m3gAppearance;
- CleanupClosePushL( m3gVertexBuffer );
- CleanupClosePushL( m3gAppearance );
-
- m3gVertexBuffer.OpenL();
- m3gAppearance.OpenL();
-
- m3gSkinnedMesh.OpenL( m3gVertexBuffer,
- m3gIndexBuffer,
- m3gAppearance,
- m3gGroup);
- _LIT( KRM3GSMeshOpenL, "RM3GSkinnedMesh::OpenL()" );
- AssertTrueL( ETrue, KRM3GSMeshOpenL );
-
- RM3GSkinnedMesh m3gSkinnedMeshCopy;
- CleanupClosePushL( m3gSkinnedMeshCopy );
-
- RArray<RM3GIndexBuffer> submeshes;
- RArray<RM3GAppearance> appearances;
- CleanupClosePushL( submeshes );
- CleanupClosePushL( appearances );
- submeshes.AppendL( m3gIndexBuffer );
- appearances.AppendL( m3gAppearance );
-
- TInt err;
- TRAP( err, m3gSkinnedMeshCopy.OpenL( m3gVertexBuffer,
- submeshes,
- appearances,
- m3gGroup ) );
- _LIT( KRM3GSMeshOpenLOver, "RM3GSkinnedMesh::OpenL()" );
- AssertTrueL( ETrue, KRM3GSMeshOpenLOver );
-
- m3gSkinnedMesh.Cast( m3gSkinnedMesh );
- _LIT( KRM3GSMeshCast, "RM3GSkinnedMesh::Cast()" );
- AssertTrueL( ETrue, KRM3GSMeshCast );
-
- TInt weight = 10;
- TInt firstVertex = 0;
- TInt vertexCount = 2;
- m3gSkinnedMesh.AddTransform( m3gSkinnedMesh,
- weight,
- firstVertex,
- vertexCount );
- _LIT( KRM3GSMeshAddTransform, "RM3GSkinnedMesh::AddTransform()" );
- AssertTrueL( ETrue, KRM3GSMeshAddTransform );
-
- RM3GGroup groupReturn = m3gSkinnedMesh.Skeleton();
- CleanupClosePushL( groupReturn );
- _LIT( KRM3GSMeshSkeleton, "RM3GSkinnedMesh::Skeleton()" );
- AssertTrueL( ETrue, KRM3GSMeshSkeleton );
-
- // m3gSkinnedMesh, m3gGroup, m3gIndexBuffer,
- // m3gVertexBuffer, m3gAppearance, m3gSkinnedMeshCopy,
- // submeshes, appearances, groupReturn
- CleanupStack::PopAndDestroy( 9 );
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomm3g/src/bctestdomm3gview.cpp Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-/*
-* 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: Implement view class
-*
-*/
-
-
-#include <aknviewappui.h>
-
-#include "bctestdomm3g.hrh"
-#include <bctestdomm3g.rsg>
-#include "bctestdomm3gview.h"
-#include "bctestdomm3gcontainer.h"
-#include "bctestutil.h"
-#include "bctestdomm3gcase.h"
-#include "bctestdomm3gnodecase.h"
-
-_LIT( KObjectTestCaseComment, "CBCTestDomM3gObjectTestCase" );
-_LIT( KNodeTestCaseComment, "CBCTestDomM3gNodeTestCase" );
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd static Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gView* CBCTestDomM3gView::NewL(CBCTestUtil* aUtil)
- {
- CBCTestDomM3gView* self = new( ELeave ) CBCTestDomM3gView();
- CleanupStack::PushL( self );
- self->ConstructL(aUtil);
- CleanupStack::Pop( self );
- return self;
- }
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gView::CBCTestDomM3gView()
- {
- }
-
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gView::ConstructL( CBCTestUtil* aUtil )
- {
- BaseConstructL( R_BCTESTDOMM3G_VIEW );
-
- iContainer = new( ELeave ) CBCTestDomM3gContainer();
- iContainer->SetMopParent( this );
- iContainer->ConstructL( ClientRect() );
- AppUi()->AddToStackL( *this, iContainer );
- iContainer->MakeVisible( ETrue );
-
- iTestUtil = aUtil;
- iTestUtil->AddTestCaseL( CBCTestDomM3gCase::NewL( iContainer ),
- KObjectTestCaseComment );
-
- iTestUtil->AddTestCaseL( CBCTestDomM3gNodeCase::NewL( iContainer ),
- KNodeTestCaseComment );
- }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestDomM3gView::~CBCTestDomM3gView()
- {
- if ( iContainer )
- {
- AppUi()->RemoveFromStack( iContainer );
- }
- delete iContainer;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gView::Id
-// ---------------------------------------------------------------------------
-//
-TUid CBCTestDomM3gView::Id() const
- {
- return KBCTestM3gViewId;
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gView::DoActivateL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& )
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gView::DoDeactivate
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gView::DoDeactivate()
- {
- }
-
-// ---------------------------------------------------------------------------
-// CBCTestDomM3gView::HandleCommandL
-// ---------------------------------------------------------------------------
-//
-void CBCTestDomM3gView::HandleCommandL( TInt aCommand )
- {
- switch ( aCommand )
- {
- case EBCTestCmdAutoTest:
- iTestUtil->RunL();
- break;
- default:
- if ( aCommand > EBCTestCmdEmptyOutline &&
- aCommand < EBCTestCmdMaxOutline )
- {
- iTestUtil->RunL( aCommand );
- }
- break;
- }
- }
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdommix50/src/bctestdommix50case.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdommix50/src/bctestdommix50case.cpp Mon May 03 12:45:33 2010 +0300
@@ -42,9 +42,6 @@
const TInt KTimeOutSec = 40;
const TInt KBuffSmallSize = 32;
-const TInt KXRightPos = 100;
-const TInt KYDownPos = 100;
-
const TInt KDefaultVolumeLevel = 5;
_LIT( KTitle, "Title" );
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/group/ABLD.BAT Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-@ECHO OFF
-
-REM Bldmake-generated batch file - ABLD.BAT
-REM ** DO NOT EDIT **
-
-perl -S ABLD.PL "\bc\bctestdomnotifier\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
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/group/bctestdomnotifier.mmp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/group/bctestdomnotifier.mmp Mon May 03 12:45:33 2010 +0300
@@ -82,7 +82,6 @@
LIBRARY aknlayout2adaptation.lib
LIBRARY aknLayout2hierarchy.lib
LIBRARY aknlayout2scalable.lib
-LIBRARY pslnengine.lib
START RESOURCE ../group/bctestdomnotifier_reg.rss
DEPENDS bctestdomnotifier.rsg
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/inc/PslnModel.h Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,737 +0,0 @@
-/*
-* Copyright (c) 2004-2006 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Model class for Psln application.
-*
-*/
-
-
-#ifndef C_PSLNMODEL_H
-#define C_PSLNMODEL_H
-
-#include <downloadedcontenthandler.h>
-#include <AknServerApp.h>
-#include <aknssrvclient.h>
-#include <Babitflags.h>
-
-// Screen saver plugin capabilities
-enum TScPluginCaps
- {
- // Plugin has no special capabilities
- EScpCapsNone = 0x00,
- // Plugin implements the configure function
- EScpCapsConfigure = 0x01,
- // Plugin wants to be notified when selected as the active screensaver
- EScpCapsSelectionNotification = 0x02,
- // Plugin wants to be notified when preview command is selected
- EScpCapsPreviewNotification = 0x04
- };
-
-// Determines the type of skin list.
-enum TPslnSkinNameType
- {
- // list name
- EPslnSkinNameTypeList = 0,
- // title name
- EPslnSkinNameTypeTitle
- };
-
-// What kind of scren saver activation it is.
-enum TPslnScreenSaverActivation
- {
- // Preview is activated.
- EPslnScreenSaverPreviewActivation = 0,
- // Preview is deactivated, and "real" screen saver is activated,
- EPslnScreenSaverPreviewDeactivation,
- // Real screen saver is activated straight away.
- EPslnScreenSaverActivation
- };
-
-// Defines actions for a transtion effects
-enum TPslnTransitionEffectAction
- {
- // Used only for enum range validation
- EPslnTransitionEffectDummyFirst = -1,
-
- // -- begin of real values --
-
- // Start theme preview transtion effect
- EPslnTransitionEffectStartPreview,
- // Start theme activation transtion effect
- EPslnTransitionEffectStartThemeActivation,
- // Stop the current transition effect
- EPslnTransitionEffectStop,
-
- // -- end of real values --
-
- // Used only for enum range validation
- EPslnTransitionEffectDummyLast
- };
-
-class MAknsSkinChangeObserver;
-class MPslnScreenSaverECOMObserver;
-class CEikonEnv;
-class CPslnSkinStore;
-class CRepository;
-class CPslnSkinEntry;
-class CPslnSkinNameEntry;
-class TAknsPkgID;
-class CPslnWallpaperUtilsLoader;
-class CPslnEcomListener;
-class CPslnBrowserLaunchLoader;
-
-// Maximum number of characters in Screen saver txt.
-const TInt KPslnMaxLengthOfScreenSaverText = 15;
-
-// CLASS DEFINITIONS
-
-// Inner class for skin name entry.
-class TPslnSkinNameEntry
- {
- public:
- // Package ID.
- TAknsPkgID iPid;
- // Skin list name.
- HBufC* iListName;
- // Skin title name.
- HBufC* iTitleName;
- };
-
-// Auxiliary class for screen saver info.
-class CPslnScreenSaverInfo : public CBase
- {
- public:
-
- // Symbian OS two-phased constructor.
- static CPslnScreenSaverInfo* NewL()
- {
- CPslnScreenSaverInfo* self = new (ELeave) CPslnScreenSaverInfo;
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop( self );
- return self;
- };
-
- // Destructor.
- ~CPslnScreenSaverInfo()
- {
- delete iScreenSaverTxt;
- iScreenSaverTxt = NULL;
- delete iFileName;
- iFileName = NULL;
- }
- private:
-
- // Symbian OS second phase constructor.
- void ConstructL()
- {
- iScreenSaverTxt = HBufC::NewL( KPslnMaxLengthOfScreenSaverText );
- iFileName = HBufC::NewL( KMaxFileName );
- };
-
- // C++ default constructor.
- CPslnScreenSaverInfo()
- {
- iScreenSaverType = 1; // magic, default value
- };
-
- public:
- // Filename for screensaver, if applicable.
- HBufC* iFileName;
- // Text, if any, shown in the screensaver.
- HBufC* iScreenSaverTxt;
- // Type of screen saver.
- TInt iScreenSaverType;
- };
-
-/**
-* CPslnModel is the model class of Psln app.
-* It provides functions to get and set setting values.
-*/
-NONSHARABLE_CLASS( CPslnModel ):
- public CBase,
- public MDownloadedContentHandler,
- public MAknServerAppExitObserver
- {
- public:
-
- /**
- * Two-phased constructor.
- * @param aObserver observer for skin changes.
- * @return new instance of CPslnModel.
- */
- IMPORT_C static CPslnModel* NewL( MAknsSkinChangeObserver* aObserver );
-
- /**
- * Deprecated.
- * @return NULL.
- */
- IMPORT_C static CPslnModel* NewL();
-
- /**
- * Destructor
- */
- IMPORT_C ~CPslnModel();
-
- /**
- * Deprecated.
- */
- IMPORT_C TBool ActivateSkinL( const TDesC8& aPreviewType,
- const TInt aActiveSkinIndex );
-
- /**
- * Activates screen saver as set by user.
- * @param aItemIndex screensaver to activate.
- * @param aActivationType screensaver activation type
- * (activation/deactivation/preview).
- * @return error code, or KErrNone on success.
- */
- IMPORT_C TInt ActivateScreenSaver(
- const TInt aItemIndex,
- TPslnScreenSaverActivation aActivationType );
-
- /**
- * Disables skin notify changes.
- *
- * Creates and pushes internal class CPslnActivationGuard to the
- * stack. When CPslnActivationGuard is constructed, SkinSrvSession's
- * DisableSkinChangeNotify is called, and thus skin notify changes are
- * disabled. When CPslnActivationGuard is popped from stack,
- * SkinSrvSession's EnableSkinChangeNotify is called automatically and thus,
- * skin notify changes are again active.
- */
- IMPORT_C void GuardActivationLC();
-
- /**
- * Starts skin download.
- */
- IMPORT_C void DownloadSkinL();
-
- /**
- * Sets Idle Wallpaper.
- * @param aImagePath Path and filename of new wallpaper.
- * @return error code, or KErrNone on success.
- */
- IMPORT_C TInt SetBackgroundImagePath( const TDesC& aImagePath );
-
- /**
- * Invokes screensaver plugins PluginFunction for e.g. configuring
- * the screensaver.
- * @param aIndex screensaver index to use.
- * @param aFunction screensaver function to call.
- */
- IMPORT_C void InvokeSSPluginFunctionL(
- TInt aIndex,
- TScPluginCaps aFunction );
-
- /**
- * Updates skins from server, UI skins list, and screensaver array.
- */
- IMPORT_C void PerformCompleteUpdateL();
-
- /**
- * Creates screen saver array.
- */
- IMPORT_C void LoadScreensaverArrayL();
-
- /**
- * Gets the visible skin by its UI index.
- * Ownership is not transferred.
- * @param aIndex skin index.
- * @return pointer to skin entry.
- */
- IMPORT_C CPslnSkinEntry* VisibleSkin( const TInt aIndex );
-
- /**
- * Gets the name of the skin.
- * @param aIndex skin index to use.
- * @param aSkinName localized skin name.
- * @param aType which skin name to fetch (list/title name).
- */
- IMPORT_C void GetSkinNameByIndex( const TInt aIndex, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /**
- * Checks whether the current (or given) skin is active.
- * @param aSkinIndex skin index to use.
- * @return ETrue is given skin index is currently active skin.
- */
- IMPORT_C TBool IsActiveSkinSelected (
- TInt aSkinIndex = KErrNotFound ) const;
-
- /**
- * Deprecated since 5.0.
- */
- IMPORT_C TAknSkinSrvSkinPackageLocation LocationOfSkin( const TInt aIndex );
-
- /**
- * Returns skin index of active skin.
- * @return skin index of active skin.
- */
- IMPORT_C TInt ActiveSkinIndex() const;
-
- /**
- * Returns skin index of currently highlighted skin.
- * @return skin index of highlighted skin.
- */
- IMPORT_C TInt CurrentSelectedSkinIndex() const;
-
- /**
- * Returns number of found skins.
- * @return number of found skins.
- */
- IMPORT_C TInt NumberOfSkins() const;
-
- /**
- * Returns screensaver name array.
- * @return screensaver name array.
- */
- IMPORT_C const MDesC16Array& ScreensaverNames() const;
-
- /**
- * Checks if selected screensaver has the requested capability
- * @param aIndex index of screensaver in screensaver array.
- * @param aCapability requested capability.
- * @return ETrue if screensaver has the capability, EFalse otherwise.
- */
- IMPORT_C TBool ScreensaverHasCapability(
- const TInt aIndex,
- const TScPluginCaps aCapability ) const;
-
- /**
- * Returns protection type of skin.
- * @param aIndex skin index to use.
- * @return protection type of skin.
- */
- IMPORT_C TAknsSkinSrvSkinProtectionType ProtectionOfSkin(
- const TInt aIndex );
-
- /**
- * Checks if the skin can be activated.
- * @param aItemIndex skin index to use.
- * @return ETrue, if skin can be activated.
- */
- IMPORT_C TBool IsValidForActivation( const TInt aItemIndex );
-
- /**
- * Checks if the skin can be previewed.
- * @param aItemIndex skin index to use.
- * @return ETrue, if skin can be previewed.
- */
- IMPORT_C TBool IsValidForPreview( const TInt aItemIndex );
-
- /**
- * Sets the given skin index as currently highlighted one.
- * @param aCurrentSkinIndex skin index.
- */
- IMPORT_C void SetCurrentSelectedSkinIndex(
- const TInt aCurrentSkinIndex );
-
- /**
- * Deprecated.
- */
- IMPORT_C TInt SetCurrentPropertyType( const TInt aProperty,
- const TInt aCurItemIndex );
-
- /**
- * Gets currently active index of given property.
- * @param aProperty property type - either wallpaper or screensaver.
- * @return index of currently active property, or error code.
- */
- IMPORT_C TInt CurrentPropertyIndex( const TInt aProperty );
-
- /**
- * Enables (or disables) notifications from ECOM framework.
- * When ECOM state is changed, PslnModel will check that it's
- * screensaver list is up to date. Changes in the list are
- * indicated to observer class.
- * @param aActive if ETrue, notifications are subscribed, otherwise
- * subscription is terminated.
- * @param aObserver observer for notifications.
- */
- IMPORT_C void EnableScreenSaverNotifications(
- const TBool& aActive,
- MPslnScreenSaverECOMObserver& aObserver );
-
- /**
- * Deprecated.
- */
- IMPORT_C TBool ActivateSkinL(
- const TDesC8& aPreviewType,
- const TInt aActiveSkinIndex,
- const TBool& aActivateFromPreview );
-
- /**
- * Activates the entire skin.
- * @since 3.2
- * @param aActiveSkinIndex skin index of active skin.
- * @return ETrue, if skin activation is successful.
- */
- IMPORT_C TBool ActivateSkinL( const TInt aActiveSkinIndex );
-
- /**
- * Gets currently active index of given property.
- * This is leaving version of CurrentPropertyIndex (see above).
- * @param aProperty property type - either wallpaper or screensaver.
- * @return index of currently active property, or error code.
- */
- IMPORT_C TInt CurrentPropertyIndexL( const TInt aProperty );
-
- /**
- * Sets transition effects enabled/disabled as given in the parameter.
- * @param aEffectValue used as bitmask. Value of zero enables all effects,
- * and value of KMaxTInt disables all effects.
- * All other values are considered as invalid.
- * @return KErrArgument if aEffectValue is not zero or KMaxTInt.
- * Otherwise return value is what is given out by CRepository::Set().
- *
- * @since 3.2
- */
- IMPORT_C TInt SetTransitionEffectsL( const TInt aEffectValue );
-
- /**
- * Gets current transition effect value.
- * @return in error cases returns KErrNotFound,
- * otherwise returns current repository value.
- *
- * @since 3.2
- */
- IMPORT_C TInt GetTransitionEffectStateL();
-
- /**
- * Checks if the screensaver is installed on memory card.
- * @param aScreensaverIndex screensaver index
- * @return ETrue, if screensaver is installed to the memory card.
- *
- * @since 3.2
- */
- IMPORT_C TBool IsScreenSaverOnMemoryCard( const TInt aIndex ) const;
-
- /**
- * Sets a given property (wallpaper or screensaver) as active.
- * @param aProperty property type - either wallpaper or screensaver.
- * @param aCurItemIndex item index that is currently active.
- * @return KErrNone always.
- *
- * @since 3.2
- */
- IMPORT_C void SetCurrentPropertyTypeL( const TInt aProperty,
- const TInt aCurItemIndex );
-
- /**
- * Checks if a skin with given index is on memory card,
- * @param aIndex skin index from application.
- * @return ETrue if skin is on memory card, EFalse otherwise.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsThemeOnMemoryCard( const TInt& aIndex );
-
- /**
- * Checks if a skin with given index is on mass drive,
- * @param aIndex skin index from application.
- * @return ETrue if skin is on memory card, EFalse otherwise.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsThemeOnMassDrive( const TInt& aIndex );
-
- /**
- * Checks if the screensaver is installed on mass drive.
- * @param aScreensaverIndex screensaver index
- * @return ETrue, if screensaver is installed to the mass drive.
- *
- * @since 5.0
- */
- IMPORT_C TBool IsScreenSaverOnMassDrive( const TInt& aIndex ) const;
-
- /**
- * Returns skin server session.
- * @return skin server session.
- *
- * @since 3.2
- */
- IMPORT_C RAknsSrvSession SkinSrvSession() const;
-
- /**
- * Starts or stops transition effects.
- *
- * @param aAction specifies actions for transition effects.
- * The value can be one of the values defined in TPslnTransitionEffectAction.
- * @since 3.2
- */
- IMPORT_C void TransEffect(TInt aAction) const;
-
- private:
-
- /**
- * Gets the separately localized name of the skin, if any.
- * @param aPID package ID to use.
- * @param aSkinName localized skin name.
- * @param aType which skin name to fetch (list/title name).
- * @return ETrue, if localized skin name was found.
- */
- TBool GetSeparatelyLocalizedSkinName(
- const TAknsPkgID aPID, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /**
- * From MDownloadedContentHandler.
- *
- * Handle downloaded content that has been saved to a file,
- * and return ETrue if it was handled successfully.
- * @param aFileName File name with path.
- * @param aParamList Generic parameter list.
- * @param aContinue Output parameter: It must be ETrue if the caller wants
- * Browser not to terminate after the content is handled.
- * @return ETrue if the implementer has processed the content. If it is
- * EFalse, BrowserLauncher opens that content in an
- * appropriate viewer application.
- */
- TBool HandleContentL(
- const TDesC& aFilename,
- const CAiwGenericParamList& aParamList,
- TBool& aContinue );
-
- /**
- * From MDownloadedContentHandler.
- * Reserved for future use.
- * @param aAnyParam reserved for future use.
- * @return reserved for future use.
- */
- virtual TAny* DownloadedContentHandlerReserved1( TAny* aAnyParam );
-
- /**
- * Default C++ contructor
- */
- CPslnModel();
-
- /**
- * Symbian default constructor
- */
- void ConstructL( MAknsSkinChangeObserver* aObserver );
-
- /**
- * Loads the separately localized skin names resource.
- */
- void LoadSkinNamesResourceL();
-
- /**
- * Finds screensavers from the given path and appends them to the
- * screensaver list.
- * @return ETrue if screensavers were found, EFalse otherwise.
- */
- TBool FindAndAppendScreensaversL();
-
- /**
- * Updates the skin information from the server and
- * the list of visible skins.
- */
- void UpdateFromServerL();
-
- /**
- * Updates the list of visible skins.
- */
- void UpdateVisibleSkinListL();
-
- /**
- * Activates skin that is currently selected.
- */
- void SetActiveSkinL();
-
- /**
- * Launches query dialog for screensaver name.
- * @return EFalse, if user cancelled the query.
- */
- TBool QueryAndSetScreensaverTextL();
-
- /**
- * From MAknServerAppExitObserver.
- */
- void HandleServerAppExit( TInt aReason );
-
- /* Gets full name of skin. */
- const TDesC& GetSkinFullName( const TInt aItemIndex );
-
- /* Gets the name of the skin. */
- void GetSkinNameByPID( const TAknsPkgID aPID, TDes& aSkinName,
- const TPslnSkinNameType aType ) const;
-
- /* Activates default skin. */
- void ActivateDefaultSkinL();
-
- /* Gets default text for text screensaver. */
- void GetDefaultTextToScreensaverL( TDes& aDisplayText );
-
- /* Gets wallpaper item index. */
- TInt GetWallPaperItemIndex();
-
- /* Gets wallpaper item index. */
- TInt GetScreenSaverItemIndexL();
-
- /* Loads AknsWallpaperUtils to memory. */
- void LoadWallpaperUtilsL();
-
- /* Strips file path information from screensaver UID. */
- TPtrC GetRealScreenSaverUid( const TInt aIndex );
-
- /* Leaving version of ActivateScreenSaver. */
- void ActivateScreenSaverL(
- const TInt aItemIndex,
- TPslnScreenSaverActivation aActivationType );
-
- /* Loads browser launcher dll to memory. */
- void LoadBrowserLaunchL();
-
- private: // Data
-
- /*
- * Skin store.
- * Own.
- */
- CPslnSkinStore* iSkinStore;
-
- /*
- * Array of visible skins.
- * Own.
- */
- RPointerArray<CPslnSkinNameEntry>* iVisibleSkinArr;
-
- /*
- * Skin server session.
- */
- RAknsSrvSession iSkinSrvSession;
-
- /*
- * CenRep object for skin keys.
- * Own.
- */
- CRepository* iSkinsRepository;
-
- /*
- * CenRep object for screen saver keys.
- * Own.
- */
- CRepository* iScreenSaverRepository;
-
- /*
- * CenRep object for themes application keys.
- * Own.
- */
- CRepository* iThemesAppRepository;
-
- /*
- * Pointer to eikon environment. Stored to avoid repeated fetches.
- * Not own.
- */
- CEikonEnv* iEikEnv;
-
- /*
- * Currently highlighted skin index.
- */
- TInt iCurrentSkinIndex;
-
- /*
- * Active skin index.
- */
- TInt iActiveSkinIndex;
-
- /*
- * Array of skin names.
- */
- RArray<TPslnSkinNameEntry> iSkinNames;
-
- /*
- * Array of screensaver filenames.
- * Own.
- */
- CDesC16ArrayFlat* iScreensaverFilenameArr;
-
- /*
- * Array of screensaver names.
- * Own.
- */
- CDesC16ArrayFlat* iScreensaverNameArr;
-
- /*
- * Array of screensaver capabilities.
- */
- RArray<TInt> iScreensaverCapsArr;
-
- /*
- * Active screensaver information.
- * Own.
- */
- CPslnScreenSaverInfo* iScreenSaverInfo;
-
- /*
- * A handle to a dynamically loadable DLL.
- */
- RLibrary iWallpaperDll;
-
- /*
- * Loads Wallpaper Utils DLL dynamically to memory.
- * Allows use of the DLL through this pointer, but only for
- * methods implemented within the wrapper.
- * Own.
- */
- CPslnWallpaperUtilsLoader* iWallpaperSetter;
-
- /**
- * Listens to ECOM for screensaver plugin changes.
- * Own.
- */
- CPslnEcomListener* iScreenSaverListener;
-
- /*
- * A handle to a dynamically loadable DLL.
- */
- RLibrary iBrowserLaunchDll;
-
- /*
- * Loads Wallpaper Utils DLL dynamically to memory.
- * Allows use of the DLL through this pointer, but only for
- * methods implemented within the wrapper.
- * Own.
- */
- CPslnBrowserLaunchLoader* iBrowserLauncher;
-
- /*
- * Internal state of the class.
- */
- enum TPslnModelState
- {
- // initial state
- EPslnModelStateInitial = 0x00000000,
- // wallpaper dll has been loaded
- EPslnModelStateWallpaperDllLoaded = 0x00000001,
- // has the default enable CR key for transition effects been read
- EPslnModelStateTransitionEnableCRKeyRead = 0x00000002,
- // is skin being previewed
- EPslnModelStateSkinPreviewed = 0x00000004,
- // browser launch dll has been loaded
- EPslnModelStateBrowserLaunchDllLoaded = 0x00000008,
- // localized skin names have been loaded
- EPslnModelStateSkinNamesLoaded = 0x00000010
- };
- TBitFlags iInternalState;
-
- /**
- * Default mask for enable transition effects.
- */
- TInt iEffectsDefaultEnableMask;
- };
-
-#endif // C_PSLNMODEL_H
-
-// End of File
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/src/bctestdomnotifiercase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdomnotifier/src/bctestdomnotifiercase.cpp Mon May 03 12:45:33 2010 +0300
@@ -66,13 +66,14 @@
#include <eikmenup.h>
#include <bctestdomnotifier.rsg>
-#include "PslnModel.h"
#include "bctestdomnotifiercase.h"
#include "bctestdomnotifiercontainer.h"
#include "bctestdomnotifier.hrh"
#include "bctestdomnotifierview.h"
#include "bctestdomnotifierapp.h"
+_LIT( KCAknNotifierAppServerAppUi, "App server error" );
+
// ======== MEMBER FUNCTIONS ========
// ---------------------------------------------------------------------------
// Symbian 2nd static Constructor
@@ -209,31 +210,7 @@
rfile.Create( fs, KFilePath, EFileWrite | EFileShareAny );
CleanupClosePushL( rfile );
- CAiwGenericParamList* aiwparalist = CAiwGenericParamList::NewL();
- CPslnModel* psmodel= CPslnModel::NewL();
- MAknServerAppExitObserver* serappexit =
- static_cast<MAknServerAppExitObserver*> ( psmodel );
- CAknOpenFileService* fileserv = NULL;
- TRAPD( err, fileserv = CAknOpenFileService::NewL(
- KFilePath, serappexit, aiwparalist ) );
- _LIT( KCAknOpenFileServiceNewL, "CAknOpenFileService::NewL()" );
- AssertTrueL( ETrue, KCAknOpenFileServiceNewL );
- delete fileserv;
- fileserv = NULL;
-
- TUid KUid = { 0xA0004001 };
- TInt err1;
- TRAP( err1, fileserv = CAknOpenFileService::NewL(
- KUid, rfile, serappexit, aiwparalist ) );
- _LIT( KCAknOpenFileServiceNewLOver, "CAknOpenFileService::NewL()" );
- AssertTrueL( ETrue, KCAknOpenFileServiceNewLOver );
-
- CleanupStack::PopAndDestroy(); // rfile
- delete fileserv;
- delete psmodel;
- delete aiwparalist;
- _LIT( KCAknNotifierAppServerAppUi,"CAknNotifierAppServerAppUi" );
// AknNotiferAppServerApplication.h
CBCNotifierAppServer *notifierapp = new ( ELeave )
@@ -303,7 +280,6 @@
_LIT( KSetImplementationFinderL, "SetImplementationFinderL");
_LIT( KUnbalanceReferenceCountForNotif, "UnbalanceReferenceCountForNotif");
_LIT( KCreateServiceL, "CreateServiceL");
- _LIT( KLoadNotifiersL, "LoadNotifiersL");
_LIT( KCAknNotifierAppServerDestroy, "SCAknNotifierAppServerDestroy" );
_LIT( KUpdateNotifierAndGetResponseL, "UpdateNotifierAndGetResponseL" );
////////////////////////////////////////////////////////////////////////////////////////////////
@@ -320,6 +296,7 @@
//AssertTrueL( ETrue,KLoadNotifiersL );
TBuf8<32> bf;
+ TInt err;
TRAP( err,notiserver->StartNotifierL(
KUidBCDomainTestNotifier, bf, bf ) );
AssertTrueL( ETrue,KStartNotifierL );
@@ -720,7 +697,6 @@
_LIT( KTfxApiInternal, "TfxApiInternal" );
_LIT( KTfxApi, "TfxApi" );
_LIT( KRemoveTfxGc, "RemoveTfxGc" );
- _LIT( KCreateTfxGc, "CreateTfxGc" );
_LIT( KInvalidateAll, "InvalidateAll" );
CAknListLoader::TfxApiInternal( &gc );
@@ -895,7 +871,6 @@
//delete ary;
// AknPhoneNumberEditor.h
- _LIT( KCAknPhoneNumberEditor, "CAknPhoneNumberEditor" );
_LIT( KConstructFromResourceL, "ConstructFromResourceL" );
_LIT( KFormat, "Format" );
_LIT( KWouldTextFitInFormat, "WouldTextFitInFormat" );
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdompopup/group/ABLD.BAT Fri Apr 16 15:13:44 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-@ECHO OFF
-
-REM Bldmake-generated batch file - ABLD.BAT
-REM ** DO NOT EDIT **
-
-perl -S ABLD.PL "\bc\bctestdompopup\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
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdompopup/src/bctestdompopupcase.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdompopup/src/bctestdompopupcase.cpp Mon May 03 12:45:33 2010 +0300
@@ -37,7 +37,6 @@
#include <AknSettingCache.h>
#include <aknsgcc.h>
#include <aknshortcuts.h>
-#include <ResolutionUtil.h>
#include <s32mem.h>
@@ -353,7 +352,7 @@
AssertTrueL( ETrue, KCalculateScreenMode );
CAknSgcClient::CalculateScreenMode( EFalse, EFalse ,EFalse,
- CResolutionUtil::EQVGA );
+ 1 );
AssertTrueL( ETrue, KCalculateScreenMode );
CAknSgcClient::SetKeyBlockMode( EEnableKeyBlock );
@@ -490,7 +489,7 @@
mapdlg->HandleDialogPageEventL( MEikDialogPageObserver::EUnknownType );
AssertTrueL( ETrue, KHandleDialogPageEventL );
- mapdlg->HandleResourceChange( KEikDefaultCursorWidth );
+ mapdlg->HandleResourceChange( 1 );
AssertTrueL( ETrue, KHandleResourceChange );
mapdlg->DisableRecentCharsRow();
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdompopup/src/bctestdompopupimp.cpp Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/bctestdompopup/src/bctestdompopupimp.cpp Mon May 03 12:45:33 2010 +0300
@@ -47,7 +47,7 @@
//
TInt CAknCharMap::CharacterCase()
{
- return iCharCase;
+ return iSpecialCharCase;
}
// -----------------------------------------------------------------------------
--- a/uifw/AvKon/tsrc/bc/bctestdom5.0/group/bld.inf Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestdom5.0/group/bld.inf Mon May 03 12:45:33 2010 +0300
@@ -17,17 +17,13 @@
PRJ_EXPORTS
-../../BCTestLauncher/group/config_dom50.xml /epoc32/winscw/c/BCTestLog/config.xml
-
-../bctestdomm3g/data/bctestdomimage.bmp /epoc32/winscw/c/bctestlog/bctestdomimage.bmp
+../../bctestlauncher/group/config_dom50.xml /epoc32/winscw/c/BCTestLog/config.xml
PRJ_MMPFILES
../../bctestutil/group/bctestutil.mmp
../../bctestlauncher/group/bctestlauncher.mmp
-../bctestdomavkonpsln/group/bctestdomavkonpsln.mmp
-
../bctestdomaiwakn/group/bctestdomaiwakn.mmp
../bctestdomcdl/group/bctestdomcdl.mmp
@@ -40,8 +36,6 @@
../bctestdomfntlay/group/bctestdomfntlay.mmp
-../bctestdomm3g/group/bctestdomm3g.mmp
-
../bctestdomnotifier/group/bctestdomnotifier.mmp
../bctestdompopup/group/bctestdompopup.mmp
--- a/uifw/AvKon/tsrc/bc/bctestlauncher/group/config_dom32.xml Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestlauncher/group/config_dom32.xml Mon May 03 12:45:33 2010 +0300
@@ -22,20 +22,6 @@
<VER><![CDATA[32]]></VER>
</ITEM>
<ITEM>
-<NAME><![CDATA[bctestdomavkonpsln]]></NAME>
-<APPUID><![CDATA[0xA00040A1]]></APPUID>
-<VIEWUID><![CDATA[1]]></VIEWUID>
-<TIMEOUT><![CDATA[50]]></TIMEOUT>
-<VER><![CDATA[32]]></VER>
-</ITEM>
-<ITEM>
-<NAME><![CDATA[bctestdomm3g]]></NAME>
-<APPUID><![CDATA[0xA00040A2]]></APPUID>
-<VIEWUID><![CDATA[1]]></VIEWUID>
-<TIMEOUT><![CDATA[5]]></TIMEOUT>
-<VER><![CDATA[32]]></VER>
-</ITEM>
-<ITEM>
<NAME><![CDATA[bctestdominputmethods]]></NAME>
<APPUID><![CDATA[0xA00040A4]]></APPUID>
<VIEWUID><![CDATA[1]]></VIEWUID>
--- a/uifw/AvKon/tsrc/bc/bctestlauncher/group/config_dom50.xml Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/bctestlauncher/group/config_dom50.xml Mon May 03 12:45:33 2010 +0300
@@ -22,20 +22,6 @@
<VER><![CDATA[50]]></VER>
</ITEM>
<ITEM>
-<NAME><![CDATA[bctestdomavkonpsln]]></NAME>
-<APPUID><![CDATA[0xA00040A1]]></APPUID>
-<VIEWUID><![CDATA[1]]></VIEWUID>
-<TIMEOUT><![CDATA[50]]></TIMEOUT>
-<VER><![CDATA[50]]></VER>
-</ITEM>
-<ITEM>
-<NAME><![CDATA[bctestdomm3g]]></NAME>
-<APPUID><![CDATA[0xA00040A2]]></APPUID>
-<VIEWUID><![CDATA[1]]></VIEWUID>
-<TIMEOUT><![CDATA[5]]></TIMEOUT>
-<VER><![CDATA[50]]></VER>
-</ITEM>
-<ITEM>
<NAME><![CDATA[bctestdominputmethods]]></NAME>
<APPUID><![CDATA[0xA00040A4]]></APPUID>
<VIEWUID><![CDATA[1]]></VIEWUID>
--- a/uifw/AvKon/tsrc/bc/sis/bctestdom32.pkg Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/sis/bctestdom32.pkg Mon May 03 12:45:33 2010 +0300
@@ -39,7 +39,6 @@
@"../bctestutil/sis/bctestutil.sisx", (0x20004742)
@"../bctestlauncher/sis/bctestlauncher.sisx", (0x20004743)
@"../bctestdom3.2/bctestdomaiwakn/sis/bctestdomaiwakn.sisx", (0xA000409E)
-@"../bctestdom3.2/bctestdomavkonpsln/sis/bctestdomavkonpsln.sisx", (0xA00040A1)
@"../bctestdom3.2/bctestdomcdl/sis/bctestdomcdl.sisx", (0xA00040A5)
@"../bctestdom3.2/bctestdomcoreui/sis/bctestdomcoreui.sisx", (0xA000409F)
@"../bctestdom3.2/bctestdomfntlay/sis/bctestdomfntlay.sisx", (0xA00040A3)
--- a/uifw/AvKon/tsrc/bc/sis/bctestdom50.pkg Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/sis/bctestdom50.pkg Mon May 03 12:45:33 2010 +0300
@@ -39,12 +39,10 @@
@"../bctestutil/sis/bctestutil.sisx", (0x20004742)
@"../bctestlauncher/sis/bctestlauncher.sisx", (0x20004743)
@"../bctestdom5.0/bctestdomaiwakn/sis/bctestdomaiwakn.sisx", (0xA000409E)
-@"../bctestdom5.0/bctestdomavkonpsln/sis/bctestdomavkonpsln.sisx", (0xA00040A1)
@"../bctestdom5.0/bctestdomcdl/sis/bctestdomcdl.sisx", (0xA00040A5)
@"../bctestdom5.0/bctestdomcoreui/sis/bctestdomcoreui.sisx", (0xA000409F)
@"../bctestdom5.0/bctestdomfntlay/sis/bctestdomfntlay.sisx", (0xA00040A3)
@"../bctestdom5.0/bctestdominputmethods/sis/bctestdominputmethods.sisx", (0xA00040A4)
-@"../bctestdom5.0/bctestdomm3g/sis/bctestdomm3g.sisx", (0xA00040A2)
@"../bctestdom5.0/bctestdommix50/sis/bctestdommix50.sisx", (0xA00040AC)
@"../bctestdom5.0/bctestdomnotifier/sis/bctestdomnotifier.sisx", (0xA00040A0)
@"../bctestdom5.0/bctestdompopup/sis/bctestdompopup.sisx", (0xA00040A6)
\ No newline at end of file
--- a/uifw/AvKon/tsrc/bc/sis/generate_dom32_sis.cmd Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/sis/generate_dom32_sis.cmd Mon May 03 12:45:33 2010 +0300
@@ -36,11 +36,6 @@
makesis bctestdomaiwakn.pkg
signsis bctestdomaiwakn.sis bctestdomaiwakn.sisx /s60/rd.cer /s60/rd-key.pem
-cd ../../bctestdomavkonpsln/sis
-attrib *.sis* -r
-makesis bctestdomavkonpsln.pkg
-signsis bctestdomavkonpsln.sis bctestdomavkonpsln.sisx /s60/rd.cer /s60/rd-key.pem
-
cd ../../bctestdomcdl/sis
attrib *.sis* -r
makesis bctestdomcdl.pkg
--- a/uifw/AvKon/tsrc/bc/sis/generate_dom50_sis.cmd Fri Apr 16 15:13:44 2010 +0300
+++ b/uifw/AvKon/tsrc/bc/sis/generate_dom50_sis.cmd Mon May 03 12:45:33 2010 +0300
@@ -36,11 +36,6 @@
makesis bctestdomaiwakn.pkg
signsis bctestdomaiwakn.sis bctestdomaiwakn.sisx /s60/rd.cer /s60/rd-key.pem
-cd ../../bctestdomavkonpsln/sis
-attrib *.sis* -r
-makesis bctestdomavkonpsln.pkg
-signsis bctestdomavkonpsln.sis bctestdomavkonpsln.sisx /s60/rd.cer /s60/rd-key.pem
-
cd ../../bctestdomcdl/sis
attrib *.sis* -r
makesis bctestdomcdl.pkg
@@ -61,11 +56,6 @@
makesis bctestdominputmethods.pkg
signsis bctestdominputmethods.sis bctestdominputmethods.sisx /s60/rd.cer /s60/rd-key.pem
-cd ../../bctestdomm3g/sis
-attrib *.sis* -r
-makesis bctestdomm3g.pkg
-signsis bctestdomm3g.sis bctestdomm3g.sisx /s60/rd.cer /s60/rd-key.pem
-
cd ../../bctestdommix50/sis
attrib *.sis* -r
makesis bctestdommix50.pkg