# HG changeset patch
# User hgs
# Date 1286421945 -10800
# Node ID b01c07dfcf84930b4605fe8cf08ec5c529a96239
# Parent 1505405bc6458528f03fea3c200aa48a68b8682d
201039
diff -r 1505405bc645 -r b01c07dfcf84 appfw/viewserver/group/bld.inf
--- a/appfw/viewserver/group/bld.inf Wed Sep 29 15:24:56 2010 +0300
+++ b/appfw/viewserver/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-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"
@@ -21,7 +21,7 @@
*/
// include test code
-#include "../test/group/BLD.INF"
+#include "../test/group/bld.inf"
PRJ_EXPORTS
../inc/VWSDEF.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(vwsdef.h)
diff -r 1505405bc645 -r b01c07dfcf84 appsupport_pub/network_status_api/tsrc/bc/networkstatus/group/NetworkStatusTest.mmp
--- a/appsupport_pub/network_status_api/tsrc/bc/networkstatus/group/NetworkStatusTest.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/appsupport_pub/network_status_api/tsrc/bc/networkstatus/group/NetworkStatusTest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-10 Nokia Corporation and/or 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,7 +39,7 @@
MW_LAYER_SYSTEMINCLUDE
LIBRARY euser.lib
-LIBRARY stiftestinterface.lib
+LIBRARY StifTestInterface.lib
LIBRARY centralrepository.lib
LANG SC
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/Rfs/Plugins/rfscustcmd/tsrc/rfscustcmdtest/group/rfscustcmdtest.mmp
--- a/coreapplicationuis/Rfs/Plugins/rfscustcmd/tsrc/rfscustcmdtest/group/rfscustcmdtest.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/Rfs/Plugins/rfscustcmd/tsrc/rfscustcmdtest/group/rfscustcmdtest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-10 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -35,6 +35,6 @@
MW_LAYER_SYSTEMINCLUDE
LIBRARY euser.lib
-LIBRARY stiftestinterface.lib
+LIBRARY StifTestInterface.lib
LIBRARY rfscustcmd.lib
LIBRARY efsrv.lib
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_01.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_01.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,95 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_02.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_02.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_03.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_03.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_04.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_04.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_05.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_05.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_06.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_06.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_07.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_07.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_08.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_08.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_09.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_09.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,103 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_10.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_charging_10.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,115 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_01.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_01.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,116 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_02.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_02.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,132 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_03.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_03.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_04.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_04.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_05.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_05.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_06.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_06.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_07.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_07.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_08.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_08.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,132 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_09.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_09.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,134 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Data/qtg_anim_battery_full_10.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Data/qtg_anim_battery_full_10.svg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,116 @@
+
+
+
+]>
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Group/SysAp.mmp
--- a/coreapplicationuis/SysAp/Group/SysAp.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Group/SysAp.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -31,10 +31,40 @@
EPOCSTACKSIZE 0x5000
EPOCHEAPSIZE 0x800 0x400000 // min 2kB, max 4MB - some shutdown animations may use quite a lot of heap
+EPOCALLOWDLLDATA
+
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION
MACRO SYSAP_USE_STARTUP_UI_PHASE
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION
+// Qt Macros
+MACRO UNICODE
+MACRO QT_KEYPAD_NAVIGATION
+MACRO QT_SOFTKEYS_ENABLED
+MACRO QT_USE_MATH_H_FLOATS
+MACRO HB_HAVE_QT_MOBILITY
+MACRO HB_EFFECTS_OPENVG
+MACRO HB_FILTER_EFFECTS
+MACRO HB_HAVE_PROTECTED_CHUNK
+MACRO HB_TOUCHFEEDBACK_TYPE_IS_LONGPRESS
+MACRO HB_WSERV_HAS_RENDER_ORIENTATION
+MACRO HB_GESTURE_FW
+MACRO HB_EFFECTS
+MACRO HB_TEXT_MEASUREMENT_UTILITY
+MACRO HB_HAVE_QT_MOBILITY
+MACRO HB_EFFECTS_OPENVG
+MACRO HB_FILTER_EFFECTS
+MACRO HB_HAVE_PROTECTED_CHUNK
+MACRO HB_TOUCHFEEDBACK_TYPE_IS_LONGPRESS
+MACRO HB_WSERV_HAS_RENDER_ORIENTATION
+MACRO HB_GESTURE_FW
+MACRO HB_EFFECTS
+MACRO HB_TEXT_MEASUREMENT_UTILITY
+MACRO QT_PLUGIN
+MACRO QT_SVG_LIB
+MACRO QT_GUI_LIB
+MACRO QT_NETWORK_LIB
+MACRO QT_CORE_LIB
SOURCEPATH ../Src
SOURCE SysApApp.cpp
@@ -53,6 +83,7 @@
SOURCE SysApShutdownImage.cpp
SOURCE hbdevicepowermenusymbian.cpp
SOURCE hbdeviceinputdialogsymbian.cpp
+SOURCE sysapcharginganimation.cpp
#ifdef __OFFLINE_MODE
SOURCE OfflineModeController/SysApOfflineModeControllerImpl.cpp
@@ -61,9 +92,9 @@
SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets
SYSTEMINCLUDE /epoc32/include/mw/hb/hbcore
-
-SYSTEMINCLUDE /epoc32/include/mw
-
+SYSTEMINCLUDE /epoc32/include/mw/QtCore
+SYSTEMINCLUDE /epoc32/include/mw/QtGui
+SYSTEMINCLUDE /epoc32/include/stdapis/stlportv5
USERINCLUDE .
USERINCLUDE ../Inc
@@ -77,7 +108,7 @@
USERINCLUDE ../Src/memorycard
MW_LAYER_SYSTEMINCLUDE
-APP_LAYER_SYSTEMINCLUDE
+
START RESOURCE ../Data/SysAp.rss
HEADER
@@ -156,6 +187,7 @@
SOURCE CenRepObservers/sysapcenreplightsettingsobserver.cpp
SOURCE CenRepObservers/SysApCenRepLogsObserver.cpp
SOURCE CenRepObservers/sysapcenrepofflinemodeobserver.cpp
+SOURCE CenRepObservers/SysApCenRepSilentModeObserver.cpp
LIBRARY centralrepository.lib
LIBRARY cenrepnotifhandler.lib
@@ -166,7 +198,7 @@
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION
LIBRARY sanimctrl.lib
#else // RD_STARTUP_ANIMATION_CUSTOMIZATION
-LIBRARY MediaClientAudio.lib
+LIBRARY mediaclientaudio.lib
#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION
LIBRARY bmpanim.lib
@@ -185,7 +217,6 @@
SOURCE SysApBtControllerImpl.cpp
SOURCEPATH ../Src/BtSap
SOURCE SysApBtSapControllerImpl.cpp
-
//LIBRARY eikcoctl.lib
//LIBRARY etelpckt.lib
@@ -230,5 +261,33 @@
SOURCE SysApEtelNetworkStatusNspsObserver.cpp SysApEtelConnector.cpp SysApEtelNetworkBarObserver.cpp SysApEtelSmsStoreObserver.cpp sysapeteldatabearerobserver.cpp sysapetelnetworkbargetter.cpp sysapetelnetworkinfoobserver.cpp
LIBRARY etelpckt.lib
+LIBRARY logcli.lib
+LIBRARY sssettings.lib
+//QtHighway lib for invoking logs app
+LIBRARY xqservice.lib
+LIBRARY xqserviceutil.lib
+LIBRARY QtCore.lib
+//Required to use by EndKey
+LIBRARY afactivitylauncher.lib
+
+LIBRARY libstdcppv5.lib
+LIBRARY libpthread.lib
+LIBRARY libc.lib
+LIBRARY libdl.lib
+//Required for OpenLibC
+OPTION CW -cwd include -wchar_t on
+OPTION ARMCC --visibility_inlines_hidden
+#if defined(ARMCC_4_0)
+OPTION ARMCC --import_all_vtbl
+#endif
+OPTION GCCE -fvisibility-inlines-hidden
+
+VERSION 10.0
+ARMFPU softvfp
+BYTEPAIRCOMPRESSTARGET
+OPTION_REPLACE ARMCC --export_all_vtbl -D__QT_NOEFFECTMACRO_DONOTUSE
+
+STDCPP
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Group/bld.inf
--- a/coreapplicationuis/SysAp/Group/bld.inf Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2004-2007 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"
@@ -45,6 +45,47 @@
/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/data/z/resource/apps/qgn_sysap_screen.svg
/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/udeb/z/resource/apps/qgn_sysap_screen.svg
/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/urel/z/resource/apps/qgn_sysap_screen.svg
+../data/qtg_anim_battery_charging_01.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_01.svg
+../data/qtg_anim_battery_charging_01.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_01.svg
+../data/qtg_anim_battery_charging_02.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_02.svg
+../data/qtg_anim_battery_charging_02.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_02.svg
+../data/qtg_anim_battery_charging_03.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_03.svg
+../data/qtg_anim_battery_charging_03.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_03.svg
+../data/qtg_anim_battery_charging_04.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_04.svg
+../data/qtg_anim_battery_charging_04.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_04.svg
+../data/qtg_anim_battery_charging_05.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_05.svg
+../data/qtg_anim_battery_charging_05.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_05.svg
+../data/qtg_anim_battery_charging_06.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_06.svg
+../data/qtg_anim_battery_charging_06.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_06.svg
+../data/qtg_anim_battery_charging_07.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_07.svg
+../data/qtg_anim_battery_charging_07.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_07.svg
+../data/qtg_anim_battery_charging_08.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_08.svg
+../data/qtg_anim_battery_charging_08.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_08.svg
+../data/qtg_anim_battery_charging_09.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_09.svg
+../data/qtg_anim_battery_charging_09.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_09.svg
+../data/qtg_anim_battery_charging_10.svg /epoc32/data/z/resource/apps/qtg_anim_battery_charging_10.svg
+../data/qtg_anim_battery_charging_10.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_charging_10.svg
+
+../data/qtg_anim_battery_full_01.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_01.svg
+../data/qtg_anim_battery_full_01.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_01.svg
+../data/qtg_anim_battery_full_02.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_02.svg
+../data/qtg_anim_battery_full_02.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_02.svg
+../data/qtg_anim_battery_full_03.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_03.svg
+../data/qtg_anim_battery_full_03.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_03.svg
+../data/qtg_anim_battery_full_04.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_04.svg
+../data/qtg_anim_battery_full_04.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_04.svg
+../data/qtg_anim_battery_full_05.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_05.svg
+../data/qtg_anim_battery_full_05.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_05.svg
+../data/qtg_anim_battery_full_06.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_06.svg
+../data/qtg_anim_battery_full_06.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_06.svg
+../data/qtg_anim_battery_full_07.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_07.svg
+../data/qtg_anim_battery_full_07.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_07.svg
+../data/qtg_anim_battery_full_08.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_08.svg
+../data/qtg_anim_battery_full_08.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_08.svg
+../data/qtg_anim_battery_full_09.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_09.svg
+../data/qtg_anim_battery_full_09.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_09.svg
+../data/qtg_anim_battery_full_10.svg /epoc32/data/z/resource/apps/qtg_anim_battery_full_10.svg
+../data/qtg_anim_battery_full_10.svg /epoc32/release/winscw/udeb/z/resource/apps/qtg_anim_battery_full_10.svg
PRJ_MMPFILES
//gnumakefile sysap_icons.mk
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysAp.hrh
--- a/coreapplicationuis/SysAp/Inc/SysAp.hrh Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Inc/SysAp.hrh Thu Oct 07 06:25:45 2010 +0300
@@ -95,7 +95,8 @@
EPowerSaveModeActivated,
EPowerSaveModeDeactivated,
ECannotActivatePowerSaveMode,
- ECannotDeactivatePowerSaveMode
+ ECannotDeactivatePowerSaveMode,
+ ESysApRestartPhone
};
enum TSysApWaitNoteIds
@@ -114,7 +115,6 @@
enum TSysApConfirmationQueryIds
{
ESysApNoQuery=0,
- ESysApRestartPhoneQuery,
ESysApLeaveOfflineModeQuery,
ESysApRemoveMmcNote,
ESysApEjectMmcQuery,
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApAppUi.h
--- a/coreapplicationuis/SysAp/Inc/SysApAppUi.h Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Inc/SysApAppUi.h Thu Oct 07 06:25:45 2010 +0300
@@ -47,6 +47,7 @@
#endif // RD_MULTIPLE_DRIVE
#include
+#include
class CSysApFeatureManager;
@@ -63,6 +64,7 @@
class CSysApCenRepLightSettingsObserver;
class CSysApCenRepBtObserver;
class CSysApCenRepHacSettingObserver;
+class CSysApCenRepSilentModeObserver;
class CSysApAudioRoutingObserver;
class CSysApSsSettingsObserver;
class CSystemLock;
@@ -73,6 +75,7 @@
class CSysApCenRepLogsObserver;
class MSysApUsbIndicator;
class CKeyguardAccessApi;
+class CSysApChargingAnimation;
class CHbIndicatorSymbian;
class CSysApShutdownAnimation;
@@ -182,12 +185,6 @@
*/
void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& aParam );
-// private:
- /**
- * EPOC default constructor.
- * @param None
- * @return void
- */
#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION
void
@@ -209,7 +206,7 @@
* @param aType The type of resources that have changed.
* @return None.
*/
-// void HandleResourceChangeL(TInt aType);
+ // void HandleResourceChangeL(TInt aType);
private:
/**
@@ -229,6 +226,14 @@
void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
public:
+
+ /*
+ * Get pointer to RTelServer
+ *
+ * @return pointer to RTelServer if iSysApEtelConnector is initialized. Otherwise return NULL.
+ */
+ RTelServer* GetTelServer();
+
// void CallFromMain();
/**
@@ -261,14 +266,14 @@
void ActivateKeyeventForwardingForLights(TBool aActivate);
TBool IsEncryptionOperationOngoingL() const;
-// void ConnectToFileServerL();
-// void ConnectToWindowServerL();
- void ShowExampleUiNoteL ( const TDesC& noteText )const;
+ void HandleSendKeyEventL();
+ void HandleEndKeyEventL();
+
+ void ShowNoteL ( const TDesC& noteText )const;
void ShowNotificationDialog(const TDesC& noteText)const;
void PopupNote();
-// void CreateWindowGroup();
TBool ResourcesFreed() const;
- void ShowUiNoteL( const TSysApNoteIds aNote ) const;
+ void ShowUiNoteL( const TSysApNoteIds aNote );
TInt StateOfProperty( const TUid& aCategory, const TUint aKey ) const;
TBool OfflineModeActive();
void GoOnlineL( TBool aDoProfileChange = ETrue );
@@ -449,6 +454,9 @@
void UpdateSignalBarsL();
void ReleaseMemoryForMemoryCardDialog();
+ void StartChargingAnimationL();
+ void StopChargingAnimationL();
+ void StartChargingFullAnimationL();
private:
/**
@@ -483,14 +491,11 @@
#endif // RD_MULTIPLE_DRIVE
private:
-// CSysApWsClient* iSysApWsClient;
CSysApLightsController* iSysApLightsController;
CSysApFeatureManager* iSysApFeatureManager;
CSysApNspsHandler* iSysApNspsHandler;
- CSysApPubSubObserver* iSysApPubSubObserver;
-
+ CSysApPubSubObserver* iSysApPubSubObserver;
CSysApDefaultKeyHandler* iSysApDefaultKeyHandler;
-// RWindowGroup groupWin;
CSysApStartupController* iSysApStartupController;
MSysApOfflineModeController* iSysApOfflineModeController;
RStarterSession iStarterSession;
@@ -503,11 +508,11 @@
CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver;
CSysApCenRepBtObserver* iSysApCenRepBtObserver;
CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver;
+ CSysApCenRepSilentModeObserver* iSysApCenRepSilentModeObserver;
CSysApAudioRoutingObserver* iSysApAudioRoutingObserver;
CSysApPsmController* iSysApPsmController;
- CHbSymbianVariant* iVariantAccState ;
- CSysApSsSettingsObserver* iSysApSsSettingsObserver;
+ CHbSymbianVariant* iVariantAccState ;
CSystemLock* iSysApSystemLock;
CSysApCenRepCallForwardingObserver* iSysApCenRepCallForwardingObserver;
CSysApBatteryInfoController* iSysApBatteryInfoController;
@@ -515,12 +520,12 @@
CPeriodic* iSapTimer;
MSysApBtController* iSysApBtController;
CSysApCenRepLogsObserver* iSysApCenRepLogsObserver;
- MSysApUsbIndicator* iSysApUsbIndicatorController;
- CKeyguardAccessApi* iKeyguardController;
- CHbDevicePowerMenuSymbian* iPowerMenuDialog;
- CSysApKeyManagement* iSysApKeyManagement;
- CSysApMMCObserver* iSysApMMCObserver;
- CSysApEtelConnector* iSysApEtelConnector;
+ MSysApUsbIndicator* iSysApUsbIndicatorController;
+ CKeyguardAccessApi* iKeyguardController;
+ CHbDevicePowerMenuSymbian* iPowerMenuDialog;
+ CSysApKeyManagement* iSysApKeyManagement;
+ CSysApMMCObserver* iSysApMMCObserver;
+ CSysApEtelConnector* iSysApEtelConnector;
public:
CHbIndicatorSymbian* iHbIndicatorSymbian;
@@ -536,6 +541,9 @@
TBool iResourcesFreed;
TInt iCapturedEKeyPowerOff;
TInt iCapturedEKeyPowerOffUpAndDowns;
+ TInt iCapturedEKeySendKey;
+ TInt iCapturedEKeyEndKey;
+
TBool iOfflineModeActive;
TBool iShutdownStarted;
@@ -627,7 +635,8 @@
TBool iMMCEjectUsed;
CHbDeviceInputDialogSymbian* iMemCardPwdDialog;
-
+
+ CSysApChargingAnimation *iChargingAnimation;
};
#endif
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApConfirmationQuery.h
--- a/coreapplicationuis/SysAp/Inc/SysApConfirmationQuery.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-/*
-* Copyright (c) 2003-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: CSysapConfirmationQuery header file. The clas can be used for
-* showing global confirmation queries.
-*
-*/
-
-
-#ifndef SYSAPCONFIRMATIONQUERY_H
-#define SYSAPCONFIRMATIONQUERY_H
-
-// INCLUDES
-#include
-#include
-#include "SysAp.hrh"
-
-// CONSTANTS
-
-// FORWARD DECLARATIONS
-
-class CSysApAppUi;
-
-// CLASS DECLARATION
-/**
-* CSysApConfirmationQuery
-*
-* @lib sysap
-* @since 1.2S
-*/
-
-class CSysApConfirmationQuery: public CActive
-{
-public:
-
- /**
- * Constructor
- */
- static CSysApConfirmationQuery* NewL( CSysApAppUi& aSysApAppUi );
-
- /**
- * Destructor.
- */
- virtual ~CSysApConfirmationQuery();
-
- /**
- * This method shows the note
- * @param TSysApConfirmationQueryIds
- * @param CCoeEnv*
- * @return void
- */
- void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, CCoeEnv* aLoaderEnv = NULL );
-
- /**
- * This method shows the note
- * @param aQueryId Query id defined by TSysApConfirmationQueryIds
- * @param aValue Query related value
- * @param aLoaderEnv Pointer to control environment
- */
- void ShowQueryL( const TSysApConfirmationQueryIds aQueryId,
- const TDesC& aValue, CCoeEnv* aLoaderEnv = NULL );
-
- /**
- * From CActive. Cancels the active object from observing the list query
- * @param None
- * @return void
- */
- void DoCancel();
- /**
- * From CActive. Gets called by active object when a selection is done.
- * @param None
- * @return void
- */
- void RunL();
-
- /**
- * From CActive. Gets called by active object when leave happens inside RunL
- * @param None
- * @return void
- */
- TInt RunError( TInt aError );
-
- /**
- * Gets current query ID
- * @return Current query ID (TSysApConfirmationQueryIds)
- */
- TInt CurrentQuery();
-
-private:
-
- /**
- * Constructors
- */
- CSysApConfirmationQuery( CSysApAppUi& aSysApAppUi );
- CSysApConfirmationQuery();
- void ConstructL();
-
-private:
-
- CSysApAppUi& iSysApAppUi;
- TSysApConfirmationQueryIds iQueryId;
- CAknGlobalConfirmationQuery* iQuery;
- TSysApConfirmationQueryIds iPendingQuery;
-};
-
-#endif // SYSAPCONFIRMATIONQUERYNOTE_H
-
-// End of File
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApMsgSimMemLowQuery.h
--- a/coreapplicationuis/SysAp/Inc/SysApMsgSimMemLowQuery.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApMsgSimMemLowQuery class definition. This class is
-* responsible for showing a query when SIM card's SMS memory
-* is full and there is a SIM specific SMS coming.
-*
-*/
-
-
-#ifndef SYSAPMSGSIMMEMLOWQUERY_H
-#define SYSAPMSGSIMMEMLOWQUERY_H
-
-// INCLUDES
-#include
-
-// FORWARD DECLARATIONS
-class CAknGlobalConfirmationQuery;
-
-// CLASS DECLARATION
-/**
-* CSysApMsgSimMemLowQuery
-*
-* @lib sysap
-* @since 1.0*
-*/
-
-class CSysApMsgSimMemLowQuery : public CActive
- {
-public:
- /**
- * Constructor
- * @param ETrue if cover display is supported
- * @return void
- */
- CSysApMsgSimMemLowQuery(TBool aCoverDisplaySupported);
-
- /**
- * Destructor.
- */
- virtual ~CSysApMsgSimMemLowQuery();
-
- /**
- * This method activates the active object. The iStatus is given to
- * CAknGlobalListQuery with a call iGlobalListQuery->ShowListQueryL(
- * profileNameArray, iSysApPowerKeyMenuObserver->iStatus, KProfileListInitialIndex );
- * from CSysApAppUi
- * @param note
- * @return void
- */
- void StartL( const TDesC& aPrompt );
-
-private:
- /**
- * From CActive. Cancels the active object from observing the list query
- * @param None
- * @return void
- */
- void DoCancel();
- /**
- * From CActive. Gets called by active object when a selection is done.
- * @param None
- * @return void
- */
- void RunL();
-
- /**
- * From CActive. Gets called by active object when leave happens inside RunL
- * @param None
- * @return void
- */
- TInt RunError( TInt aError );
-
-private:
- CAknGlobalConfirmationQuery* iSimMemoryLowQuery;
- TBool iCoverDisplaySupported;
- };
-
-#endif //SYSAPPOWERKEYMENUOBSERVER_H
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApPowerKeyMenuObserver.h
--- a/coreapplicationuis/SysAp/Inc/SysApPowerKeyMenuObserver.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,97 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApPowerKeyMenuObserver class definition. This class
-* implements the observer for getting the menu selection from
-* CAknGlobalListQuery.
-*
-*/
-
-
-#ifndef SYSAPPOWERKEYMENUOBSERVER_H
-#define SYSAPPOWERKEYMENUOBSERVER_H
-
-// INCLUDES
-#include
-
-// FORWARD DECLARATIONS
-class CSysApAppUi;
-
-/**
-* CSysApPowerKeyMenuObserver
-*
-* @lib sysap
-* @since 1.0
-*/
-
-class CSysApPowerKeyMenuObserver : public CActive
- {
-public:
- /**
- * Constructor
- * @param CSysApAppUi& aSysApAppUi
- * @return void
- */
- CSysApPowerKeyMenuObserver( CSysApAppUi& aSysApAppUi );
-
- /**
- * Destructor.
- */
- virtual ~CSysApPowerKeyMenuObserver();
-
- /**
- * This method activates the active object. The iStatus is given to
- * CAknGlobalListQuery with a call iGlobalListQuery->ShowListQueryL(
- * profileNameArray, iSysApPowerKeyMenuObserver->iStatus, KProfileListInitialIndex );
- * from CSysApAppUi
- * @param note
- * @return void
- */
- void Start();
-
-private:
- /**
- * C++ default constructor.
- * @param None
- * @return void
- */
- CSysApPowerKeyMenuObserver();
-
-private:
- /**
- * From CActive. Cancels the active object from observing the list query
- * @param None
- * @return void
- */
- void DoCancel();
- /**
- * From CActive. Gets called by active object when a selection is done.
- * @param None
- * @return void
- */
- void RunL();
-
- /**
- * From CActive. Gets called by active object when leave happens inside RunL
- * @param None
- * @return void
- */
- TInt RunError( TInt aError );
-
-private:
- CSysApAppUi& iSysApAppUi;
- };
-
-#endif //SYSAPPOWERKEYMENUOBSERVER_H
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApProfileObserver.h
--- a/coreapplicationuis/SysAp/Inc/SysApProfileObserver.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-/*
-* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApProfileObserver class definition.
-*
-*/
-
-
-#ifndef SYSAPPROFILEOBSERVER_H
-#define SYSAPPROFILEOBSERVER_H
-
-// INCLUDES
-#include
-#include
-#include
-#include "SysAp.hrh"
-
-// FORWARD DECLARATIONS
-class CSysApAppUi;
-
-// CLASS DECLARATION
-
-/**
-* CSysApProfileObserver
-*
-* @lib sysap
-* @since 3.0
-*/
-
-class CSysApProfileObserver : public CBase, public MProfileChangeObserver
- {
- public: // Constructors and destructor
- /**
- * Default constructor
- */
- static CSysApProfileObserver* NewL( CSysApAppUi& aSysApAppUi );
-
- /**
- * Destructor.
- */
- virtual ~CSysApProfileObserver();
-
- private:
-
- /**
- * EPOC default constructor.
- * @param None
- * @return void
- */
- void ConstructL( );
-
- /**
- * Constructor
- * @param CSysApAppUi& aSysApAppUi
- * @return void
- */
- CSysApProfileObserver( CSysApAppUi& aSysApAppUi );
-
- /**
- * C++ default constructor.
- * @param None
- * @return void
- */
- CSysApProfileObserver();
-
- public: // From MProfileChangeObserver
-
- /**
- * This is a callback function which is called when a active profile event
- * completes. User must derive his class from MProfileChangeObserver
- * and implement this method if he is to use notify services.
- * @param aProfileEvent Profile event
- * @param aProfileId Active profile id
- */
- void HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId );
-
- private:
- // By default, prohibit copy constructor
- CSysApProfileObserver( const CSysApProfileObserver& );
-
- // Prohibit assigment operator
- CSysApProfileObserver& operator= ( const CSysApProfileObserver& );
-
- private:
- CSysApAppUi& iSysApAppUi;
- CProfileChangeNotifyHandler* iHandler;
- };
-
-#endif // SYSAPPROFILEOBSERVER_H
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApShutdownImage.h
--- a/coreapplicationuis/SysAp/Inc/SysApShutdownImage.h Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Inc/SysApShutdownImage.h Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-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"
@@ -133,7 +133,7 @@
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
- CFbsBitmap* ReadSVGL (TFileName aFileName);
+ CFbsBitmap* ReadSVGL (const TFileName& aFileName);
private: // Data
//Used for showing user selected image
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h
--- a/coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApSsSettingsObserver class definition. This class
-* implements methods needed for handling SsSettings functionality
-* that tells what is the currently used ALS line for outgoing
-* calls.
-*
-*/
-
-
-#ifndef SYSAPSSSETTINGSOBSERVER_H
-#define SYSAPSSSETTINGSOBSERVER_H
-
-// INCLUDES
-#include
-#include
-
-// FORWARD DECLARATIONS
-class CSysApAppUi;
-
-// CLASS DECLARATION
-/**
-* CSysApSsSettingsObserver
-*
-* @lib sysap
-* @since 1.0
-*/
-
-class CSysApSsSettingsObserver : public CBase, public MSSSettingsObserver
- {
- public: // Constructors and destructor
- /**
- * EPOC default constructor.
- */
- static CSysApSsSettingsObserver* NewL( CSysApAppUi& aSysApAppUi );
-
- /**
- * Destructor.
- */
- virtual ~CSysApSsSettingsObserver();
-
- public:
- /**
- * CallBack function from MSSSettingsObserver.
- * Gets called when SS settings are changed.
- * @param None
- * @return void
- */
- void PhoneSettingChanged( TSSSettingsSetting aSetting, TInt aNewValue );
-
- private:
- /**
- * EPOC default constructor.
- * @param None
- * @return void
- */
- void ConstructL( );
-
- /**
- * Constructor
- * @param CSysApAppUi& aSysApAppUi
- * @return void
- */
- CSysApSsSettingsObserver( CSysApAppUi& aSysApAppUi );
-
- /**
- * C++ default constructor.
- * @param None
- * @return void
- */
- CSysApSsSettingsObserver();
-
- private:
- // By default, prohibit copy constructor
- CSysApSsSettingsObserver( const CSysApSsSettingsObserver& );
-
- // Prohibit assigment operator
- CSysApSsSettingsObserver& operator= ( const CSysApSsSettingsObserver& );
-
- private:
- /**
- * Method for setting the state of Second line indicator
- * @param None
- * @return void
- */
- void SetSecondLineIndicatorL( TInt aSsSettingsAlsLineValue ) const;
-
- private:
- RSSSettings iSysApSsSettings;
- CSysApAppUi& iSysApAppUi;
- };
-
-#endif // SYSAPSSSETTINGSOBSERVER_H
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/SysApWaitNote.h
--- a/coreapplicationuis/SysAp/Inc/SysApWaitNote.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,86 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApWaitNote class definition. The class uses CAknGlobalNote
-* to show a wait note..
-*
-*/
-
-
-#ifndef SYSAPWAITNOTE_H
-#define SYSAPWAITNOTE_H
-
-// INCLUDES
-#include
-#include
-#include "SysAp.hrh"
-
-// CONSTANTS
-
-
-// CLASS DECLARATION
-/**
-* CSysApWaitNote
-*
-* @lib sysap
-* @since 1.2*
-*/
-
-class CSysApWaitNote: public CBase
-{
-public:
-
- /**
- * Constructor
- */
- static CSysApWaitNote* NewL(TBool aCoverDisplaySupported);
-
- /**
- * Destructor.
- */
- virtual ~CSysApWaitNote();
-
- /**
- * This method shows the waitnote.
- * @param aNote -- note id from sysap.hrh
- * @param aNoteStringBuf -- localized text
- * @return void
- */
- void ShowNoteL(const TSysApWaitNoteIds aNote, HBufC* aNoteStringBuf);
-
- /**
- * This method cancels the waitnote..
- * @param None
- * @return void
- */
- void Cancel();
-
-private:
-
- /**
- * Constructors
- */
- CSysApWaitNote(TBool aCoverDisplaySupported);
- void ConstructL();
-
-private:
-
- CAknGlobalNote* iWaitNote;
- TInt iNoteId;
- TBool iActive;
- TBool iCoverDisplaySupported;
-};
-
-#endif // SYSAPWAITNOTE_H
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Inc/sysapcharginganimation.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Inc/sysapcharginganimation.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*
+ ============================================================================
+ Name : sysapcharginganimation.h
+ Author :
+ Version : 1.0
+ Copyright :
+ Description : CSysApChargingAnimation declaration
+ ============================================================================
+ */
+
+#ifndef CCHARGINGANIMATION_H
+#define CCHARGINGANIMATION_H
+
+// INCLUDES
+#include
+#include
+#include
+
+// CLASS DECLARATION
+class CFbsBitmap;
+/**
+ * CSysApChargingAnimation
+ *
+ */
+
+enum KChargingMode
+{
+ KChargingModeUnknown=-1,
+ KChargingModeChargingOn=0,
+ KChargingModeFull
+};
+
+
+class CSysApChargingAnimation : public CCoeControl
+ {
+public:
+ // Constructors and destructor
+
+ /**
+ * Destructor.
+ */
+ ~CSysApChargingAnimation();
+
+ /**
+ * Two-phased constructor.
+ */
+ static CSysApChargingAnimation* NewL();
+
+ /**
+ * Two-phased constructor.
+ */
+ static CSysApChargingAnimation* NewLC();
+
+ void Draw(const TRect& aRect) const;
+
+ static TInt TimerExpired( TAny* aObject );
+
+ void StartChargingAnimationL();
+ void StopAnimation();
+ void StartChargingFullAnimationL();
+private:
+ void SetModeL(TInt aMode);
+ void SetFullFramesL();
+ void SetChargingFramesL();
+ void DeleteFrames();
+ void SetNextFrame();
+
+ void ResetTimer();
+ void StopTimer();
+ /**
+ * Constructor for performing 1st stage construction
+ */
+ CSysApChargingAnimation();
+
+ /**
+ * EPOC default constructor for performing 2nd stage construction
+ */
+ void ConstructL();
+
+ CFbsBitmap* ReadSVGL (TFileName aFileName);
+
+ CFbsBitmap *iBitmap;
+ TInt iFrameCount,iCurrentFrame,iMode;
+ CPeriodic *iAnimTimer;
+ RPointerArray iAnimation;
+ };
+
+#endif // CCHARGINGANIMATION_H
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepSilentModeObserver.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepSilentModeObserver.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,124 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: CSysApCenRepSilentModeObserver implementation.
+ *
+*/
+
+
+// INCLUDE FILES
+#include "SysApCenRepSilentModeObserver.h"
+#include "SysApAppUi.h"
+#include
+
+// ========================== MEMBER FUNCTIONS ================================
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+CSysApCenRepSilentModeObserver* CSysApCenRepSilentModeObserver::NewL( )
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::NewL" ) ) );
+ CSysApCenRepSilentModeObserver* self = new ( ELeave ) CSysApCenRepSilentModeObserver( );
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop(); //self
+ return self;
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+CSysApCenRepSilentModeObserver::CSysApCenRepSilentModeObserver( )
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::CSysApCenRepSilentModeObserver" ) ) );
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+CSysApCenRepSilentModeObserver::~CSysApCenRepSilentModeObserver()
+ {
+ TRACES( RDebug::Print( _L("~CSysApCenRepSilentModeObserver") ) );
+ if ( iSilentModeHandler )
+ {
+ iSilentModeHandler->StopListening();
+ }
+ delete iSilentModeHandler;
+ delete iSession;
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+void CSysApCenRepSilentModeObserver::ConstructL()
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::ConstructL: trying CRepository::NewL( KCRUidBluetoothPowerState )") ) );
+ iSession = CRepository::NewL( KCRUidProfileEngine );
+
+ iSilentModeHandler =
+ CCenRepNotifyHandler::NewL( *this,
+ *iSession,
+ CCenRepNotifyHandler::EIntKey,
+ KProEngSilenceMode );
+ iSilentModeHandler->StartListeningL();
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+void CSysApCenRepSilentModeObserver::HandleNotifyInt( TUint32 aId, TInt aNewValue )
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::HandleNotifyInt(), aId=0x%x, aNewValue=%d" ), aId, aNewValue ) );
+
+ SilenceIndicatorL(aNewValue);
+
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+void CSysApCenRepSilentModeObserver::HandleNotifyError( TUint32 /* aId */, TInt /* error */, CCenRepNotifyHandler* /* aHandler */ )
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::HandleNotifyError()" ) ) );
+ }
+
+// ----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
+
+void CSysApCenRepSilentModeObserver::SilenceIndicatorL(TInt aValue)
+ {
+ TRACES( RDebug::Print( _L(" CSysApCenRepSilentModeObserver::SilenceIndicatorL" )));
+ CHbIndicatorSymbian* indicator = CHbIndicatorSymbian::NewL();
+ CleanupStack::PushL(indicator);
+ _LIT(KSilentmodeindicator,"com.nokia.hb.indicator.controlpanel.cpsilenceindicatorplugin/1.0");
+
+
+ if (aValue)
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::HandleNotifyInt() activate silence indicator" )));
+ // activate the indicator plugin to display the icon in status bar
+ indicator->Activate(KSilentmodeindicator);
+ }
+ else
+ {
+ TRACES( RDebug::Print( _L("CSysApCenRepSilentModeObserver::HandleNotifyInt() Deactivate silence indicator" )));
+ // deactivate the indicator plugin to remove the icon in the status bar
+ indicator->Deactivate(KSilentmodeindicator);
+ }
+ CleanupStack::PopAndDestroy(indicator); // indicator
+ }
+
+
+// End of File
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepSilentModeObserver.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepSilentModeObserver.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,81 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: CSysApCenRepSilentModeObserver class definition.
+*
+*/
+
+
+#ifndef SYSAPCENREPSILENTMODEOBSERVER_H
+#define SYSAPCENREPSILENTMODEOBSERVER_H
+
+// INCLUDES
+#include
+#include
+#include "SysAp.hrh"
+#include
+#include
+
+// CLASS DECLARATION
+
+
+class CSysApCenRepSilentModeObserver : public CBase, public MCenRepNotifyHandlerCallback
+ {
+ public: // Constructors and destructor
+ /**
+ * Default constructor
+ */
+ static CSysApCenRepSilentModeObserver* NewL( );
+
+ /**
+ * Destructor.
+ */
+ ~CSysApCenRepSilentModeObserver();
+
+ // From MCenRepNotifyHandlerCallback
+ void HandleNotifyInt( TUint32 aId, TInt aNewValue );
+ void HandleNotifyError( TUint32 aId, TInt error, CCenRepNotifyHandler* aHandler );
+
+ private:
+
+ /**
+ * @param None
+ * @return void
+ */
+ void ConstructL( );
+
+
+ /**
+ * C++ default constructor.
+ * @param None
+ * @return void
+ */
+ CSysApCenRepSilentModeObserver();
+
+
+ //To activate and Deactivate the indicator
+ void SilenceIndicatorL(TInt avalue);
+
+
+
+
+ private:
+
+ CRepository* iSession;
+ //To listen to the silentmodekey
+ CCenRepNotifyHandler* iSilentModeHandler;
+ };
+
+#endif // SYSAPCENREPSILENTMODEOBSERVER_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApAppUi.cpp
--- a/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -55,7 +55,7 @@
#include "sysapkeymanagement.h"
#include "SysApShutdownImage.h"
#include "SysApKeySndHandler.h"
-
+#include "SysApCenRepSilentModeObserver.h"
#include "SysApShutdownAnimation.h"
#include "SysApEtelConnector.h"
@@ -74,6 +74,21 @@
#include
#include "sysap.rsg"
#include
+//Qt Highway
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+//For End Key
+#include
+//For HS RPropertyKey
+#include
+//For Hs Changes
+#include
+#include
class CHbSymbianVariant;
const TInt KModifierMask( 0 );
@@ -156,7 +171,10 @@
RWindowGroup groupWin = iCoeEnv->RootWin();
User::LeaveIfError ( iCapturedEKeyPowerOff = groupWin.CaptureKey( EKeyPowerOff, KModifierMask, KModifierMask ) );
User::LeaveIfError ( iCapturedEKeyPowerOffUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyDevice2, KModifierMask, KModifierMask ) );
-
+ //Capture SEND and END keys
+ User::LeaveIfError ( iCapturedEKeySendKey = groupWin.CaptureKey( EKeyPhoneSend, KModifierMask, KModifierMask ) );
+ User::LeaveIfError ( iCapturedEKeyEndKey = groupWin.CaptureKey( EKeyPhoneEnd, KModifierMask, KModifierMask ) );
+
TRACES ( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApDefaultKeyHandler::NewL()") ) );
iSysApDefaultKeyHandler = CSysApDefaultKeyHandler::NewL(*this);
@@ -256,6 +274,10 @@
TRACES( RDebug::Print( _L("CCSysApAppUi::ConstructL trying CSysApCenRepHacSettingObserver::NewL") ) );
iSysApCenRepHacSettingObserver = CSysApCenRepHacSettingObserver::NewL( *this );
+ TRACES( RDebug::Print( _L("CCSysApAppUi::ConstructL trying CSysApCenRepSilentModeObserver::NewL") ) );
+ iSysApCenRepSilentModeObserver = CSysApCenRepSilentModeObserver::NewL( );
+
+
#ifndef RD_MULTIPLE_DRIVE
if ( iSysApFeatureManager->MmcSupported() )
{
@@ -320,7 +342,10 @@
delete iVariantAccState;
delete iSysApAudioRoutingObserver;
-
+
+ delete iChargingAnimation;
+ iChargingAnimation=NULL;
+
if (iMemCardPwdDialog!=NULL)
{
//PowerMenu already exist
@@ -344,13 +369,17 @@
RWindowGroup groupWin = iCoeEnv->RootWin();
groupWin.CancelCaptureKey( iCapturedEKeyPowerOff );
groupWin.CancelCaptureKeyUpAndDowns( iCapturedEKeyPowerOffUpAndDowns );
+ //Deregister SendKey
+ groupWin.CancelCaptureKey( iCapturedEKeySendKey );
+ //Deregister EndKey
+ groupWin.CancelCaptureKey( iCapturedEKeyEndKey );
delete iSysApDefaultKeyHandler;
delete iSysApCenRepLightSettingsObserver;
delete iSysApCenRepBtObserver;
delete iSysApCenRepHacSettingObserver;
delete iSysApCenRepController;
-
+ delete iSysApCenRepSilentModeObserver;
delete iSysApPubSubObserver;
delete iSysApLightsController;
@@ -491,7 +520,7 @@
if ( iSysApPsmController )
{
- if ( iCharging ) // if charger is connected on boot PSM queries may need to be shown
+ if ( iCharging ) //
{
HandleChargingStatusL( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) );
}
@@ -516,14 +545,7 @@
// low and empty battery states are informed to the user in device startup
HandleBatteryStatusL( batteryStatus );
}
- else if ( iSysApPsmController && !iCharging )
- {
- TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: batteryStatus %d, iCharging %d -> disable partial psm" ), batteryStatus, iCharging ) );
-
- iSysApPsmController->BatteryLow( EFalse );
- iSysApPsmController->DoEnablePartialPsm( EFalse );
- }
-
+
if ( ! iSysApUsbIndicatorController )
{
TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) );
@@ -556,16 +578,23 @@
iSysApPsmController = CSysApPsmController::NewL( *this );
}
- // in charger boot explicitly disable power save mode
+ // In charger boot explicitly disable power save mode
if ( aSwState == RStarterSession::ECharging )
{
iSysApPsmController->ChargerConnected();
- iSysApPsmController->DoEnableFullPsm(EFalse); // disable power save now
+ iSysApPsmController->DoEnableFullPsm(EFalse); // disable power save mode now
}
}
if ( aSwState == RStarterSession::ECharging || aSwState == RStarterSession::EAlarm )
{
+ if(aSwState == RStarterSession::ECharging )
+ {
+ TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: Stop the splash screen and start charging animation.") ) );
+ //Stop the splash screen and start charging animation
+ RProperty::Set( KPSUidStartup, KPSSplashShutdown, ESplashShutdown);
+ }
+
TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) );
//Also Charging status will be updated with the following function.
UpdateBatteryBarsL( state );
@@ -665,14 +694,14 @@
return iResourcesFreed;
}
-void CSysApAppUi::ShowExampleUiNoteL( const TDesC& noteText )const
+void CSysApAppUi::ShowNoteL( const TDesC& noteText )const
{
- TRACES( RDebug::Print( _L("CSysApAppUi::ShowExampleUiNoteL:: constructing CHbDeviceMessageBoxSymbian:BeGIN") ) );
+ TRACES( RDebug::Print( _L("CSysApAppUi::ShowNoteL:: constructing CHbDeviceMessageBoxSymbian:BeGIN") ) );
CHbDeviceMessageBoxSymbian *note = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EInformation);
CleanupStack::PushL(note);
- TRACES( RDebug::Print( _L("CSysApAppUi::ShowExampleUiNoteL:: construction of CHbDeviceMessageBoxSymbian:END") ) );
+ TRACES( RDebug::Print( _L("CSysApAppUi::ShowNoteL:: construction of CHbDeviceMessageBoxSymbian:END") ) );
note->SetTextL(noteText);
- note->SetTimeout(300);
+ note->SetTimeout(3000);
TRACES( RDebug::Print( _L("CSysApAppUi:: Display of CHbDeviceMessageBoxSymbian::Begin") ) );
note->ShowL();
TRACES( RDebug::Print( _L("CSysApAppUi:: Display of CHbDeviceMessageBoxSymbian::End") ) );
@@ -1133,6 +1162,9 @@
if( !iIgnoreNextPowerKeyRepeats )
{
iIgnoreNextPowerKeyRepeats = ETrue;
+
+ delete iChargingAnimation;
+ iChargingAnimation=NULL;
SetStarterState( RStarterSession::ENormal );
}
@@ -1263,7 +1295,7 @@
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KPowerPressKey);
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
+ ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
}
@@ -2014,8 +2046,7 @@
{
if ( iSysApPsmController && UiReady() )
{
- iSysApPsmController->BatteryLow( ETrue );
-
+
if ( enableAutoPsm)
{
@@ -2056,64 +2087,42 @@
// CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const
// ----------------------------------------------------------------------------
-void CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const
+void CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote )
{
- TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL aNote: %d"), aNote ) );
-
+ TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL aNote") ) );
TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) );
-
if( UiReady() || swState == ESwStateSecurityCheck)
- {
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL aNote: %d"), aNote ) );
switch ( aNote )
{
case EBatteryLowNote:
{
- _LIT(KPowerPressKey,"Battery low");
- HBufC* aString = HBufC16::NewLC(100);
- TPtrC aStringPointer = aString->Des();
- aStringPointer.Set(KPowerPressKey);
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
- CleanupStack::PopAndDestroy(); // aString
+ _LIT(KLowBattery,"Battery low");
+ ShowNoteL( KLowBattery() );
}
break;
case EBatteryFullNote:
{
- _LIT(KPowerPressKey,"Battery full");
- HBufC* aString = HBufC16::NewLC(100);
- TPtrC aStringPointer = aString->Des();
- aStringPointer.Set(KPowerPressKey);
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
- CleanupStack::PopAndDestroy(); // aString
+ _LIT(KBatteryFull,"Battery full");
+ ShowNoteL( KBatteryFull() );
}
break;
case ERechargeBatteryNote:
{
iSysApLightsController->BatteryEmptyL( ETrue );
- _LIT(KPowerPressKey,"Battery empty. Recharge");
- HBufC* aString = HBufC16::NewLC(100);
- TPtrC aStringPointer = aString->Des();
- aStringPointer.Set(KPowerPressKey);
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
- CleanupStack::PopAndDestroy(); // aString
+ _LIT(KRechargeBattery,"Battery empty. Recharge");
+ ShowNoteL( KRechargeBattery() );
}
break;
case ENotChargingNote:
{
- _LIT(KPowerPressKey,"Not charging");
- HBufC* aString = HBufC16::NewLC(100);
- TPtrC aStringPointer = aString->Des();
- aStringPointer.Set(KPowerPressKey);
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
- CleanupStack::PopAndDestroy(); // aString
+ _LIT(KNotCharging,"Not charging");
+ ShowNoteL( KNotCharging() );
}
break;
case EBatteryFullUnplugChargerNote:
{
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
iSysApLightsController->BatteryEmptyL( ETrue );
_LIT(KunplugCharger,"txt_power_dpopinfo_unplug_charger_to_save_energy");
HBufC* unplugCharger = HbTextResolverSymbian::LoadL(KunplugCharger);
@@ -2124,22 +2133,28 @@
break;
case EUnplugChargerNote:
{
- _LIT(KPowerPressKey,"Unplug charger from power supply to save energy");
- HBufC* aString = HBufC16::NewLC(250);
- TPtrC aStringPointer = aString->Des();
- aStringPointer.Set(KPowerPressKey);
- TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- ShowExampleUiNoteL( aStringPointer );
- CleanupStack::PopAndDestroy(); // aString
+ _LIT(KUnplugCharger,"Unplug charger from power supply to save energy");
+ ShowNoteL( KUnplugCharger() );
}
break;
+ case ESysApRestartPhone:
+ {
+ //Show the restart note
+ _LIT(KRestartPhone,"Phone will be restarted");
+ ShowNoteL( KRestartPhone() );
+ //wait for 3 seconds to close note. Other wise the shutdown will continue
+ //without waiting for note to complete.
+ User::After(4000000);
+ //Now restart the device
+ DoShutdownL( ETrue, RStarterSession::EDataRestoreReset );
+ }
+ break;
default:
break;
}
}
}
-
-
+
// ----------------------------------------------------------------------------
// CSysApAppUi::BatteryEmptyL()
// ----------------------------------------------------------------------------
@@ -2296,6 +2311,16 @@
{
TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Starting Charging") ) );
iCharging = ETrue;
+
+ TInt swState;
+ RProperty::Get( KPSUidStartup, KPSGlobalSystemState, swState );
+ if(swState == ESwStateCharging)
+ {
+ if(!iChargingAnimation)
+ iChargingAnimation= CSysApChargingAnimation::NewL();
+
+ iChargingAnimation->StartChargingAnimationL();
+ }
}
}
else
@@ -2304,6 +2329,14 @@
{
TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Stopping Charging") ) );
iCharging = EFalse;
+
+ TInt swState;
+ RProperty::Get( KPSUidStartup, KPSGlobalSystemState, swState );
+ if(swState == ESwStateCharging)
+ {
+ delete iChargingAnimation;
+ iChargingAnimation=NULL;
+ }
}
}
@@ -2355,10 +2388,7 @@
if ( showNote ) // Power Mgmt UI spec defines that no Charging note is shown while the phone is ringing/alerting
{
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- _LIT(KChargingNote,"txt_power_management_dblist_charging");
- HBufC* chargingNote = HbTextResolverSymbian::LoadL(KChargingNote);
- CHbDeviceNotificationDialogSymbian::NotificationL(KNullDesC,*chargingNote);
-
+
}
}
}
@@ -2776,6 +2806,30 @@
Exit();
break;
#endif
+ case EKeyPhoneSend:
+ {
+ TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Send key event received::Start") ) );
+ if (UiReady()&& aKeyEvent.iRepeats == 0)
+ {
+ //Ignore LongPress on SEND key event as Long press generates Short press event too,
+ //And there is no Different use case for long press.
+ HandleSendKeyEventL();
+ }
+ TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Send key event received::End") ) );
+ break;
+ }
+ case EKeyPhoneEnd:
+ {
+ TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, End key event received") ) );
+ if (UiReady() && aKeyEvent.iRepeats == 0)
+ {
+ //Ignore LongPress on END key event as Long press generates Short press event too,
+ //And there is no Different use case for long press.
+ HandleEndKeyEventL();
+ }
+ TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL()::EKeyPhoneEnd: End" ) ) );
+ break;
+ }
case EKeyPowerOff:
//Short power key press
iKeyBoardRepeatCount++;
@@ -3104,19 +3158,8 @@
void CSysApAppUi::ShowEjectWaitNoteL( TInt /* aDriveToEject */ )
{
- /* if ( iSysApWaitNote )
- {
- return;
- }
- HBufC* text = iSysApDriveList->GetFormattedDriveNameLC(
- aDriveToEject,
- 0, // Not used
- R_QTN_EJECTING_MEMORY_NAME_WAIT );
- iSysApWaitNote = CSysApWaitNote::NewL(
- iSysApFeatureManager->CoverDisplaySupported() );
- iSysApWaitNote->ShowNoteL( EClosingApplicationsNote, text );
- CleanupStack::PopAndDestroy( text );
- */ }
+ // removed code , it can be needed if the wait note required in 10.1
+ }
// ----------------------------------------------------------------------------
// CSysApAppUi::IsEjectQueryVisible
@@ -3142,9 +3185,6 @@
iSysApDriveList->GetMemoryCardsL(
iInsertedMemoryCards, CSysApDriveList::EIncludeInserted );
- // Update memory card indicator status
-// SetMemoryCardIndicatorL();
-
// Handle unlock
RunUnlockNotifierL();
}
@@ -3721,15 +3761,6 @@
iSysApDriveList->MarkDriveInsertBeepIgnored( aDrive );
}
}
-
-// if ( iDriveToDismount == aDrive && iSysApConfirmationQuery )
- {
-// if ( iSysApConfirmationQuery->CurrentQuery() == ESysApRemoveMmcNote )
- {
- // User put back ejected memory card or did not remove it
-// iSysApConfirmationQuery->Cancel();
- }
- }
RunUnlockNotifierL();
}
break;
@@ -3754,8 +3785,6 @@
iSysApDriveList->ResetDriveInsertBeepIgnored( aDrive );
}
-// CancelGlobalListQuery(); // Cancel power menu
-
if ( aDrive == defaultMemoryCard )
{
RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 );
@@ -3814,9 +3843,6 @@
iSysApDriveList->GetMemoryCardsL(
iInsertedMemoryCards, CSysApDriveList::EIncludeInserted );
- // Update memory card indicator status
-// SetMemoryCardIndicatorL();
-
TRACES( RDebug::Print(
_L( "CSysApAppUi::MMCStatusChangedL END: MMCCount: %d, iMMCEjectUsed: %d" ),
iInsertedMemoryCards.Count(), iMMCEjectUsed ) );
@@ -4055,6 +4081,147 @@
}
}
+/**
+ * Handles SEND key events
+ * If SEND key is pressed in idle Home screen view, This will bring LOGS View without DialPad.
+ * otherwise, it brings LOGS&Dial pad.
+ */
+void CSysApAppUi::HandleSendKeyEventL()
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::HandleSendKeyEventL: START") ) );
+ //Check whether ForeGround app is HomeScreen
+ TInt hsStatus(EHomeScreenIdleState) ;
+ //Get the RProperty
+ User::LeaveIfError( RProperty::Get(KHsCategoryUid, KHsCategoryStateKey, hsStatus));
+ //Enable dialpad in Non-HS view
+ const TBool enableDialPad( EHomeScreenIdleState != hsStatus );
+
+ //invoke LOGS/Dialer app
+ XQApplicationManager appMgr;
+ QScopedPointer request(appMgr.create(QString("logs"), XQI_LOGS_VIEW, XQOP_LOGS_SHOW, false));
+
+ if (!request.isNull())
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::HandleSendKeyEventL::Request::Begin") ) );
+ int retValue = -1;
+
+ QVariantMap map;
+ map.insert(XQLOGS_VIEW_INDEX, QVariant(0));
+ map.insert(XQLOGS_SHOW_DIALPAD, QVariant(enableDialPad));
+ map.insert(XQLOGS_DIALPAD_TEXT, QVariant(QString()));
+
+ QList arglist;
+
+ arglist.append(QVariant(map));
+ request->setArguments(arglist);
+ QVariant ret(retValue);
+ request->send(ret);
+ TRACES( RDebug::Print( _L("CSysApAppUi::InvokeApp::Request::End") ) );
+ }
+
+ TRACES( RDebug::Print( _L("CSysApAppUi::HandleSendKeyEventL: End") ) );
+ }
+
+/**
+ * Handles END key events
+ * If END key is pressed, Fore ground app will be exits and
+ * Home screen view will brought to Foreground
+ */
+void CSysApAppUi::HandleEndKeyEventL()
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::HandleEndKeyEventL: Start") ) );
+ //Get ForeGround App
+ TInt foregroundWindowGroupId = iEikonEnv->WsSession().GetFocusWindowGroup();
+ CApaWindowGroupName* doomedApp = CApaWindowGroupName::NewLC(iEikonEnv->WsSession(),foregroundWindowGroupId );
+
+ //Bring the HS before killing the ForeGround App.
+ _LIT(KHsActivactionUri, "appto://20022F35?activityname=HsIdleView");
+ RApaLsSession apaLsSession;
+ CleanupClosePushL(apaLsSession);
+ User::LeaveIfError(apaLsSession.Connect());
+ CAfActivityLauncher *activityEnabler = CAfActivityLauncher::NewLC(apaLsSession, iEikonEnv->WsSession());
+ activityEnabler->launchActivityL(KHsActivactionUri);
+ CleanupStack::PopAndDestroy(activityEnabler);
+ CleanupStack::PopAndDestroy(&apaLsSession);
+
+ //End or Kill the Foreground App
+ //If Phone is in HS idle view, End key have no impact.
+ if ( !doomedApp->IsSystem() )
+ {
+ TApaTask task( iEikonEnv->WsSession() );
+ task.SetWgId( foregroundWindowGroupId );
+ TRACES (
+ const TDesC& caption = doomedApp->Caption();
+ const TDesC& docname = doomedApp->DocName();
+ const TDesC& wgname = doomedApp->WindowGroupName();
+ TUid uid = doomedApp->AppUid();
+ RDebug::Print( _L("CSysApAppUi::HandleEndKeyEventL: Closing app \"%S\" (ThreadId %d, WgId %d, UID 0x%X); Docname: %S, WGName : %S"),
+ &caption,
+ (TUint)(task.ThreadId()),
+ foregroundWindowGroupId,
+ uid.iUid,
+ &docname,
+ &wgname);
+ );
+ task.EndTask();
+ TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL::HandleEndKeyEventL, End task event triggered") ) );
+ }
+ CleanupStack::PopAndDestroy(doomedApp);//doomedApp
+ TRACES( RDebug::Print( _L("CSysApAppUi::HandleEndKeyEventL: End") ) );
+ }
+
+// ----------------------------------------------------------------------------
+// CSysApAppUi::GetTelServerL()
+// ----------------------------------------------------------------------------
+
+RTelServer* CSysApAppUi::GetTelServer()
+ {
+ if ( iSysApEtelConnector )
+ {
+ return iSysApEtelConnector->GetTelServer();
+ }
+ else
+ {
+ return NULL;
+ }
+ }
+
+// ----------------------------------------------------------------------------
+// CSysApAppUi::StartChargingAnimationL
+// ----------------------------------------------------------------------------
+//
+void CSysApAppUi::StartChargingAnimationL()
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::StartChargingAnimationL") ) );
+ if(!iChargingAnimation)
+ iChargingAnimation= CSysApChargingAnimation::NewL();
+
+ iChargingAnimation->StartChargingAnimationL();
+ }
+
+// ----------------------------------------------------------------------------
+// CSysApAppUi::StartChargingFullAnimationL
+// ----------------------------------------------------------------------------
+//
+void CSysApAppUi::StartChargingFullAnimationL()
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::StartChargingFullAnimationL") ) );
+ if(!iChargingAnimation)
+ iChargingAnimation= CSysApChargingAnimation::NewL();
+
+ iChargingAnimation->StartChargingFullAnimationL();
+ }
+
+// ----------------------------------------------------------------------------
+// CSysApAppUi::StopChargingAnimationL
+// ----------------------------------------------------------------------------
+//
+void CSysApAppUi::StopChargingAnimationL()
+ {
+ TRACES( RDebug::Print( _L("CSysApAppUi::StopChargingAnimationL") ) );
+ if(iChargingAnimation)
+ iChargingAnimation->StopAnimation();
+ }
//end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApConfirmationQuery.cpp
--- a/coreapplicationuis/SysAp/Src/SysApConfirmationQuery.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,382 +0,0 @@
-/*
-* Copyright (c) 2004-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: CSysApConfirmationQuery implementation.
-*
-*/
-
-
-// INCLUDES
-
-#include
-#include
-#include "SysAp.hrh"
-#include "SysApConfirmationQuery.h"
-#include "SysApAppUi.h"
-#include
-#include
-#include
-#include
-#include
-#include
-
-// Constants
-_LIT( KEmptyString, "" );
-
-
-
-// ============================ MEMBER FUNCTIONS ==============================
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::NewL()
-// ----------------------------------------------------------------------------
-CSysApConfirmationQuery* CSysApConfirmationQuery::NewL( CSysApAppUi& aSysApAppUi )
- {
- CSysApConfirmationQuery* self = new(ELeave) CSysApConfirmationQuery( aSysApAppUi );
- CleanupStack::PushL(self);
- self->ConstructL();
- CleanupStack::Pop();
- return self;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::ConstructL()
-// ----------------------------------------------------------------------------
-void CSysApConfirmationQuery::ConstructL()
- {
- CActiveScheduler::Add(this);
- iQuery = CAknGlobalConfirmationQuery::NewL();
- iQueryId = ESysApNoQuery;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::CSysApConfirmationQuery( CSysApAppUi& aSysApAppUi )
-// ----------------------------------------------------------------------------
-
-CSysApConfirmationQuery::CSysApConfirmationQuery( CSysApAppUi& aSysApAppUi )
- : CActive( EPriorityStandard ), iSysApAppUi( aSysApAppUi )
- {
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::~CSysApConfirmationQuery()
-// ----------------------------------------------------------------------------
-
-CSysApConfirmationQuery::~CSysApConfirmationQuery()
- {
- Cancel();
- delete iQuery;
- iQuery = NULL;
- }
-
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::DoCancel()
-// ----------------------------------------------------------------------------
-
-void CSysApConfirmationQuery::DoCancel()
- {
- TRACES( RDebug::Print( _L("CSysApConfirmationQuery::DoCancel()" ) ) );
- iQuery->CancelConfirmationQuery();
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::ShowQueryL()
-// ----------------------------------------------------------------------------
-
-void CSysApConfirmationQuery::ShowQueryL( const TSysApConfirmationQueryIds aQueryId, CCoeEnv* aLoaderEnv )
- {
- ShowQueryL( aQueryId, KNullDesC, aLoaderEnv );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::ShowQueryL()
-// ----------------------------------------------------------------------------
-
-#ifdef RD_MULTIPLE_DRIVE
-void CSysApConfirmationQuery::ShowQueryL( const TSysApConfirmationQueryIds aQueryId, const TDesC& aValue, CCoeEnv* aLoaderEnv )
-#else // RD_MULTIPLE_DRIVE
-void CSysApConfirmationQuery::ShowQueryL( const TSysApConfirmationQueryIds aQueryId, const TDesC& /*aValue*/, CCoeEnv* aLoaderEnv )
-#endif // RD_MULTIPLE_DRIVE
- {
- TRACES( RDebug::Print( _L("CSysApConfirmationQuery::ShowQueryL( %d )"), aQueryId ) );
- HBufC* queryStringBuf = NULL;
- HBufC* deviceNameBuf = NULL;
- CAknQueryDialog::TTone tone = CAknQueryDialog::ENoTone;
-
- if( !IsActive() )
- {
- iQueryId = aQueryId;
- TInt secondaryDisplayCmdId(SecondaryDisplay::ECmdNoNote);
- TInt keys(0);
- TInt anim(0);
-
- switch ( iQueryId )
- {
- case ESysApRestartPhoneQuery:
- queryStringBuf = StringLoader::LoadLC( R_QTN_RESTART_QUERY, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_OK_EMPTY;
- anim = R_QGN_NOTE_WARNING_ANIM;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowRestartPhoneQuery;
- break;
- case ESysApLeaveOfflineModeQuery:
- queryStringBuf = StringLoader::LoadLC( R_QTN_LEAVE_OFFLINE_MODE_QUERY, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowLeaveOfflineModeQuery;
- break;
-#ifndef RD_MULTIPLE_DRIVE
- case ESysApRemoveMmcNote:
- queryStringBuf = StringLoader::LoadLC( R_QTN_MEMC_INFO_EJECT, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_OK_EMPTY;
- anim = R_QGN_NOTE_INFO_ANIM;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowRemoveMmcQuery;
- break;
- case ESysApEjectMmcQuery:
- queryStringBuf = StringLoader::LoadLC( R_QTN_MEMC_CONF_EJECT, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowEjectMmcQuery;
- break;
-#else // RD_MULTIPLE_DRIVE
- case ESysApRemoveMmcNote:
- queryStringBuf = aValue.AllocLC();
- keys = R_AVKON_SOFTKEYS_OK_EMPTY;
- anim = R_QGN_NOTE_INFO_ANIM;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowRemoveMmcQuery;
- break;
- case ESysApEjectMmcQuery:
- queryStringBuf = aValue.AllocLC();
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowEjectMmcQuery;
- break;
-#endif // RD_MULTIPLE_DRIVE
- case ESysApBtSapDisconnectQuery:
- deviceNameBuf = iSysApAppUi.GetBtSapDeviceNameL();
- if ( deviceNameBuf )
- {
- CleanupStack::PushL(deviceNameBuf);
- queryStringBuf = StringLoader::LoadL( R_QTN_BT_DISCONN_FROM, *deviceNameBuf, aLoaderEnv );
- }
- else
- {
- queryStringBuf = StringLoader::LoadL( R_QTN_BT_DISCONN_FROM, KEmptyString, aLoaderEnv );
- }
- CleanupStack::PushL(queryStringBuf);
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowBtSapDisconnectQuery;
- break;
- case ESysApMemoryCardLockedNote:
- iPendingQuery = ESysApMemoryCardLockedNote;
- queryStringBuf = StringLoader::LoadLC( R_QTN_MEMC_LOCKED_NOT_SUPPORTED, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_OK_EMPTY;
- anim = R_QGN_NOTE_INFO_ANIM;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowMemoryCardLockedQuery;
- break;
-/* case ESysApUseFmTxInOfflineQuery:
- queryStringBuf
- = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_NOTE_ACTIVATE_IN_OFFLINE,
- aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowFmTxKeepOnInOfflineQuery;
- break;
-*/ case ESysApBattChargingPowerSavingQuery:
- queryStringBuf = StringLoader::LoadLC( R_QTN_BATTERY_CHARGING_POWER_SAVING_QUERY, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowChargingDeactivatePowerSavingQuery;
- tone = static_cast( EAvkonSIDChargingBatteryTone );
- break;
-
- case ESysApBattLowPowerSavingQuery:
- queryStringBuf = StringLoader::LoadLC( R_QTN_BATTERY_CONF_QUERY, aLoaderEnv );
- keys = R_AVKON_SOFTKEYS_YES_NO;
- secondaryDisplayCmdId = SecondaryDisplay::ECmdShowBattLowActivatePowerSavingQuery;
- break;
-
- default:
- break;
- }
-
- if ( iSysApAppUi.CoverDisplaySupported() && secondaryDisplayCmdId != SecondaryDisplay::ECmdNoNote )
- {
- TRACES( RDebug::Print( _L("CSysApConfirmationQuery::ShowQueryL - Notifying secondary display") ) );
- CAknSDData* sd = NULL;
- if ( secondaryDisplayCmdId == SecondaryDisplay::ECmdShowBtSapDisconnectQuery )
- {
- SecondaryDisplay::TDeviceName sdDeviceName;
- sdDeviceName.Append(deviceNameBuf->Left(SecondaryDisplay::KMaxDeviceNameLen));
- SecondaryDisplay::TBtSapDisconnectQueryPckg pckg(sdDeviceName);
- sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, SecondaryDisplay::ECmdShowBtSapDisconnectQuery, pckg);
- }
- else
- {
- sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, secondaryDisplayCmdId, KNullDesC8);
- }
- iQuery->SetSecondaryDisplayData(sd); // ownership to notifier client
- }
-
- if ( keys && queryStringBuf )
- {
- if ( anim )
- {
- iQuery->ShowConfirmationQueryL( iStatus,
- queryStringBuf->Des(),
- keys,
- anim,
- KNullDesC,
- 0,
- 0,
- tone );
- }
- else
- {
- iQuery->ShowConfirmationQueryL( iStatus,
- queryStringBuf->Des(),
- keys,
- 0,
- KNullDesC,
- 0,
- 0,
- tone );
- }
- }
-
- SetActive();
- }
- else
- {
- // If another query is wanted when ESysApMemoryCardLockedNote is active, override it (Continues in RunL which handles cancel).
- if ( iQueryId == ESysApMemoryCardLockedNote && aQueryId != ESysApMemoryCardLockedNote )
- {
- iPendingQuery = aQueryId;
- iQuery->CancelConfirmationQuery();
- }
- }
-
- if ( queryStringBuf )
- {
- CleanupStack::PopAndDestroy( queryStringBuf ); // queryStringbuf
- }
-
- if ( deviceNameBuf )
- {
- CleanupStack::PopAndDestroy( deviceNameBuf ); // deviceNameBuf
- }
-
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::RunL()
-// ----------------------------------------------------------------------------
-
-void CSysApConfirmationQuery::RunL()
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: iQueryId = %d, iStatus = %d" ), iQueryId, iStatus.Int() ) );
- switch ( iQueryId )
- {
- case ESysApRestartPhoneQuery:
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::DoShutdownL( ETrue, EDataRestoreReset )" ) ) );
- iSysApAppUi.DoShutdownL( ETrue, RStarterSession::EDataRestoreReset );
- }
- break;
- case ESysApLeaveOfflineModeQuery:
- if ( iStatus.Int() == EAknSoftkeyYes )
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::ActivateOnlineProfileL()" ) ) );
- iSysApAppUi.ActivateOnlineProfileL();
- }
- break;
- case ESysApRemoveMmcNote:
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::MMCDismountedDialogConfirmed()" ) ) );
- iSysApAppUi.MMCDismountedDialogConfirmed();
- break;
- case ESysApEjectMmcQuery:
- if ( iStatus.Int() == EAknSoftkeyYes || iStatus.Int() == EEikBidOk )
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::EjectMMCL()" ) ) );
- iSysApAppUi.EjectMMCL();
- }
- else
- {
- iSysApAppUi.EjectMMCCanceled();
- }
- break;
- case ESysApBtSapDisconnectQuery:
- if ( iStatus.Int() == EAknSoftkeyYes )
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::DisconnectBtSap()" ) ) );
- iSysApAppUi.DisconnectBtSap();
- }
- break;
- case ESysApMemoryCardLockedNote:
- // In case of MMC locked note we are only interested about error, as it means there is overriding query
- if ( iStatus.Int() < 0 && iPendingQuery != ESysApMemoryCardLockedNote )
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: Canceled ESysApMemoryCardLockedNote because more important query" ) ) );
- ShowQueryL( iPendingQuery, CCoeEnv::Static() );
- }
- break;
-/* case ESysApUseFmTxInOfflineQuery:
- if ( iStatus.Int() == EAknSoftkeyNo )
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::ChangeFmTxStateL( EFalse )" ) ) );
- iSysApAppUi.ChangeFmTxStateL( EFalse ); // disable FM TX
- }
- break;
-*/ case ESysApBattChargingPowerSavingQuery:
- iSysApAppUi.HandleDeactivatePsmQueryResponse( iStatus.Int() == EAknSoftkeyYes );
- break;
-
- case ESysApBattLowPowerSavingQuery:
- iSysApAppUi.HandleActivatePsmQueryResponse( iStatus.Int() == EAknSoftkeyYes );
- break;
-
- default:
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: default" ) ) );
- break;
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::RunError( TInt aError )
-// ----------------------------------------------------------------------------
-
-#ifdef _DEBUG
-TInt CSysApConfirmationQuery::RunError( TInt aError )
-#else
-TInt CSysApConfirmationQuery::RunError( TInt /* aError */ )
-#endif
- {
- TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunError: error code: %d " ), aError ) );
- return KErrNone;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApConfirmationQuery::CurrentQuery()
-// ----------------------------------------------------------------------------
-
-TInt CSysApConfirmationQuery::CurrentQuery()
- {
- TInt retval(ESysApNoQuery);
-
- if( IsActive() )
- {
- retval = iQueryId;
- }
-
- return retval;
- }
-
-// End of File
-
-
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApLightsController.cpp
--- a/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2005-2008 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"
@@ -29,6 +29,8 @@
#endif // RD_LIGHT_CONTROL_CHANGE
#include "SysApFeatureManager.h"
+#include
+#include
// CONSTANTS
@@ -971,14 +973,26 @@
TInt err(KErrNone);
-#ifdef RD_LIGHT_CONTROL_CHANGE
- if ( !iLightPluginHandler->HandleCommand( SysApLightExtension::ELightCommandOff ) )
+ TInt state( 0 );
+ TInt error = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state );
+
+ if ( error == KErrNone && state != ESwStateCharging )
+ {
+ #ifdef RD_LIGHT_CONTROL_CHANGE
+ if ( !iLightPluginHandler->HandleCommand( SysApLightExtension::ELightCommandOff ) )
+ {
+ TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
+ }
+ #else // RD_LIGHT_CONTROL_CHANGE
+ TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
+ #endif // RD_LIGHT_CONTROL_CHANGE
+ }
+ else
{
TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
+ TRAP_IGNORE(iSysApAppUi.StopChargingAnimationL());
}
-#else // RD_LIGHT_CONTROL_CHANGE
- TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
-#endif // RD_LIGHT_CONTROL_CHANGE
+
// Ignore unreserved in use warnings.
if ( err != KErrNone && err != KErrInUse )
{
@@ -1078,6 +1092,27 @@
iLightsCurrentlyOn = ETrue;
iLastLightsOnTime.HomeTime();
}
+
+ TInt state( 0 );
+ TInt error = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state );
+ TRACES( RDebug::Print( _L( "CSysApLightsController::SetLightsOnL - KPSGlobalSystemState: %d Error: %d"), state,error) );
+ if ( error == KErrNone && state == ESwStateCharging )
+ {
+ TInt value = iSysApAppUi.StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus );
+ TRACES( RDebug::Print( _L( "CSysApLightsController::SetLightsOnL - KHWRMChargingStatus: %d"), value) );
+
+ if (value == EChargingStatusChargingComplete )
+ {
+ TRAP_IGNORE(iSysApAppUi.StartChargingFullAnimationL());
+ }
+ else if((value==EChargingStatusCharging)||
+ (value==EChargingStatusAlmostComplete)||
+ (value==EChargingStatusChargingContinued))
+ {
+ TRAP_IGNORE(iSysApAppUi.StartChargingAnimationL());
+ }
+ }
+
}
else
{
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApMsgSimMemLowQuery.cpp
--- a/coreapplicationuis/SysAp/Src/SysApMsgSimMemLowQuery.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApMsgSimMemLowQuery implementation.
-*
-*/
-
-
-// INCLUDES
-#include
-#include "SysApMsgSimMemLowQuery.h"
-#include "SysAp.hrh"
-#include
-#include
-
-// ============================ MEMBER FUNCTIONS ==============================
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::CSysApMsgSimMemLowQuery()
-// ----------------------------------------------------------------------------
-
-CSysApMsgSimMemLowQuery::CSysApMsgSimMemLowQuery(TBool aCoverDisplaySupported)
- : CActive( EPriorityStandard ), iCoverDisplaySupported(aCoverDisplaySupported)
- {
- CActiveScheduler::Add(this);
- }
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::~CSysApMsgSimMemLowQuery()
-// ----------------------------------------------------------------------------
-
-CSysApMsgSimMemLowQuery::~CSysApMsgSimMemLowQuery()
- {
- Cancel();
- delete iSimMemoryLowQuery;
- }
-
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::DoCancel()
-// ----------------------------------------------------------------------------
-
-void CSysApMsgSimMemLowQuery::DoCancel()
- {
- }
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::StartL()
-// ----------------------------------------------------------------------------
-
-void CSysApMsgSimMemLowQuery::StartL( const TDesC& aPrompt )
- {
- if( !IsActive() )
- {
- iSimMemoryLowQuery = CAknGlobalConfirmationQuery::NewL();
-
- // Set secondary display data if necessary
- if ( iCoverDisplaySupported )
- {
- CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, SecondaryDisplay::ECmdShowSimMemoryLowQuery, KNullDesC8);
- iSimMemoryLowQuery->SetSecondaryDisplayData(sd); // ownership to notifier client
- }
-
- iSimMemoryLowQuery->ShowConfirmationQueryL(
- iStatus,
- aPrompt,
- R_AVKON_SOFTKEYS_OK_EMPTY,
- R_QGN_NOTE_ERROR_ANIM,
- KNullDesC,
- 0,
- 0,
- CAknQueryDialog::EErrorTone,
- EFalse
- );
- SetActive();
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::RunL()
-// ----------------------------------------------------------------------------
-
-void CSysApMsgSimMemLowQuery::RunL()
- {
- TRACES( RDebug::Print( _L( "CSysApMsgSimMemLowQuery::RunL: started, %d selected" ), iStatus.Int() ) );
- delete iSimMemoryLowQuery;
- iSimMemoryLowQuery = NULL;
- TRACES( RDebug::Print( _L( "CSysApMsgSimMemLowQuery::RunL: completed" ) ) );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApMsgSimMemLowQuery::RunError( TInt aError )
-// ----------------------------------------------------------------------------
-
-#ifdef _DEBUG
-TInt CSysApMsgSimMemLowQuery::RunError( TInt aError )
-#else
-TInt CSysApMsgSimMemLowQuery::RunError( TInt /* aError */ )
-#endif
- {
- TRACES( RDebug::Print( _L( "CSysApMsgSimMemLowQuery::RunError: %d started" ), aError ) );
- delete iSimMemoryLowQuery;
- iSimMemoryLowQuery = NULL;
- TRACES( RDebug::Print( _L( "CSysApMsgSimMemLowQuery::RunError: completed" ) ) );
- return KErrNone;
- }
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApPowerKeyMenuObserver.cpp
--- a/coreapplicationuis/SysAp/Src/SysApPowerKeyMenuObserver.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-/*
-* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApPowerKeyMenuObserver implementation.
-*
-*/
-
-
-// INCLUDES
-#include "SysApPowerKeyMenuObserver.h"
-#include "SysApAppUi.h"
-#include // KAknPowerMenuStatus
-
-// ============================ MEMBER FUNCTIONS ==============================
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::CSysApPowerKeyMenuObserver( CSysApAppUi& aSysApAppUi )
-// ----------------------------------------------------------------------------
-
-CSysApPowerKeyMenuObserver::CSysApPowerKeyMenuObserver( CSysApAppUi& aSysApAppUi )
- : CActive( EPriorityStandard ),
- iSysApAppUi( aSysApAppUi )
- {
- CActiveScheduler::Add(this);
- }
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::~CSysApPowerKeyMenuObserver()
-// ----------------------------------------------------------------------------
-
-CSysApPowerKeyMenuObserver::~CSysApPowerKeyMenuObserver()
- {
- Cancel() ;
- }
-
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::DoCancel()
-// ----------------------------------------------------------------------------
-
-void CSysApPowerKeyMenuObserver::DoCancel()
- {
- RProperty::Set( KPSUidAvkonDomain, KAknPowerMenuStatus, EPowerMenuNotOpen );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::Start()
-// ----------------------------------------------------------------------------
-
-void CSysApPowerKeyMenuObserver::Start()
- {
- if( !IsActive() )
- {
- RProperty::Set( KPSUidAvkonDomain, KAknPowerMenuStatus, EPowerMenuOpen );
- SetActive();
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::RunL()
-// ----------------------------------------------------------------------------
-
-void CSysApPowerKeyMenuObserver::RunL()
- {
- TRACES( RDebug::Print( _L( "CSysApPowerKeyMenuObserver::RunL: started, %d selected" ), iStatus.Int() ) );
- RProperty::Set( KPSUidAvkonDomain, KAknPowerMenuStatus, EPowerMenuNotOpen );
- iSysApAppUi.PowerKeyPopUpMenuSelectionDoneL( iStatus.Int() );
- TRACES( RDebug::Print( _L( "CSysApPowerKeyMenuObserver::RunL: completed" ) ) );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApPowerKeyMenuObserver::RunError( TInt aError )
-// ----------------------------------------------------------------------------
-
-TInt CSysApPowerKeyMenuObserver::RunError( TInt aError )
- {
- TRACES( RDebug::Print( _L( "CSysApPowerKeyMenuObserver::RunError: %d started" ), aError ) );
- if( aError == KErrNoMemory || aError == KErrDiskFull )
- {
- return aError;
- }
- else
- {
- return KErrNone;
- }
- }
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApProfileObserver.cpp
--- a/coreapplicationuis/SysAp/Src/SysApProfileObserver.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,86 +0,0 @@
-/*
-* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApProfileObserver implementation.
-*
-*/
-
-
-// INCLUDE FILES
-#include "SysApProfileObserver.h"
-#include "SysApAppUi.h"
-
-// ========================== MEMBER FUNCTIONS ================================
-
-// ----------------------------------------------------------------------------
-// CSysApProfileObserver* CSysApProfileObserver::NewL()
-// ----------------------------------------------------------------------------
-
-CSysApProfileObserver* CSysApProfileObserver::NewL( CSysApAppUi& aSysApAppUi )
- {
- TRACES( RDebug::Print( _L("CSysApProfileObserver::NewL" ) ) );
- CSysApProfileObserver* self = new ( ELeave ) CSysApProfileObserver( aSysApAppUi );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop(); //self
- return self;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApProfileObserver::CSysApProfileObserver( CSysApAppUi& aSysApAppUi )
-// ----------------------------------------------------------------------------
-
-CSysApProfileObserver::CSysApProfileObserver( CSysApAppUi& aSysApAppUi )
- : iSysApAppUi( aSysApAppUi )
- {
- TRACES( RDebug::Print( _L("CSysApProfileObserver::CSysApProfileObserver" ) ) );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApProfileObserver::~CSysApProfileObserver()
-// ----------------------------------------------------------------------------
-
-CSysApProfileObserver::~CSysApProfileObserver()
- {
- TRACES( RDebug::Print( _L("~CSysApProfileObserver") ) );
- delete iHandler;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApProfileObserver::ConstructL()
-// ----------------------------------------------------------------------------
-
-void CSysApProfileObserver::ConstructL()
- {
- TRACES( RDebug::Print( _L("CSysApProfileObserver::ConstructL()") ) );
- iHandler = CProfileChangeNotifyHandler::NewL( this );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApProfileObserver::HandleActiveProfileEventL()
-// ----------------------------------------------------------------------------
-void CSysApProfileObserver::HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId )
- {
- TRACES( RDebug::Print( _L("CSysApProfileObserver::HandleActiveProfileEventL(): aProfileId=%d"), aProfileId ) );
- if ( aProfileEvent == EProfileNewActiveProfile )
- {
- iSysApAppUi.HandleProfileChangedL( aProfileId );
- }
- else if ( aProfileEvent == EProfileActiveProfileModified )
- {
- iSysApAppUi.CheckSilentModeL();
- }
- }
-
-// End of File
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp
--- a/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -636,8 +636,7 @@
else if ( iRestoreOngoing )
{
TRACES( RDebug::Print( _L("CSysApPubSubObserver::HandleSystemCategoryL: restore finished, make the device reset" ) ) );
- User::After( 1000000 );
- iSysApAppUi.ShowQueryL( ESysApRestartPhoneQuery );
+ iSysApAppUi.ShowUiNoteL( ESysApRestartPhone );
}
}
break;
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp
--- a/coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2005-2008 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"
@@ -166,7 +166,7 @@
// ----------------------------------------------------------------------------
// CSysApShutdownImage::ShowShutdownImage()
// ----------------------------------------------------------------------------
-CFbsBitmap* CSysApShutdownImage::ReadSVGL (TFileName aFileName)
+CFbsBitmap* CSysApShutdownImage::ReadSVGL (const TFileName& aFileName)
{
TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL:start" ) ) );
TFontSpec fontspec;
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApSimChanged.cpp
--- a/coreapplicationuis/SysAp/Src/SysApSimChanged.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApSimChanged.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2005-2007 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"
@@ -117,13 +117,13 @@
dateTime.Set( 2100, EJanuary, 1, 0, 0, 0, 0 );
TTime date(dateTime);
-/* TRACES( RDebug::Print( _L("CSysApSimChanged::ClearLogsL(): trying CLogClient::NewL") ) );
+ TRACES( RDebug::Print( _L("CSysApSimChanged::ClearLogsL(): trying CLogClient::NewL") ) );
CLogClient* logClient = CLogClient::NewL( iFs );
logClient->ClearLog( date, active->iStatus );
-*/
+
CActiveScheduler::Start();
-// delete logClient;
+ delete logClient;
CleanupStack::PopAndDestroy( active );
}
@@ -136,7 +136,7 @@
TRACES( RDebug::Print( _L("CSysApSimChanged::ClearSsSettingsL()") ) );
// Reset SSSettings values
-/* RSSSettings ssSettings;
+ RSSSettings ssSettings;
User::LeaveIfError( ssSettings.Open( iSysApAppUi.GetTelServer() ) );
TRACES( RDebug::Print( _L("CSysApSimChanged::ClearSsSettingsL(): trying RSSSettings::HandleSIMChanged") ) );
@@ -144,7 +144,7 @@
ssSettings.Close();
User::LeaveIfError( err );
-*/
+
}
// -----------------------------------------------------------------------------
@@ -171,7 +171,7 @@
if ( simNotOwned )
{
ClearRepositoriesL();
-// ClearLogsL();
+ ClearLogsL();
}
}
// =============== CShareActive MEMBER FUNCTIONS ===============================
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApSsSettingsObserver.cpp
--- a/coreapplicationuis/SysAp/Src/SysApSsSettingsObserver.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,111 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApSSSettingsObserver implementation.
-*
-*/
-
-
-// INCLUDE FILES
-#include "SysApSsSettingsObserver.h"
-#include "SysApAppUi.h"
-#include
-#include
-
-//CONSTANTS
-
-// ========================== MEMBER FUNCTIONS ================================
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver* CSysApSsSettingsObserver::NewL( CSysApAppUi& aSysApAppUi )
-// ----------------------------------------------------------------------------
-
-CSysApSsSettingsObserver* CSysApSsSettingsObserver::NewL( CSysApAppUi& aSysApAppUi )
- {
- TRACES( RDebug::Print( _L("CSysApSsSettingsObserver::CSysApSsSettingsObserver::NewL" ) ) );
- CSysApSsSettingsObserver* self = new ( ELeave ) CSysApSsSettingsObserver( aSysApAppUi );
- CleanupStack::PushL( self );
- self->ConstructL();
- CleanupStack::Pop(); //self
- return self;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver::CSysApSsSettingsObserver( CSysApAppUi& aSysApAppUi )
-// ----------------------------------------------------------------------------
-
-CSysApSsSettingsObserver::CSysApSsSettingsObserver( CSysApAppUi& aSysApAppUi ) :
- iSysApAppUi( aSysApAppUi )
- {
- }
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver::~CSysApSsSettingsObserver()
-// ----------------------------------------------------------------------------
-
-CSysApSsSettingsObserver::~CSysApSsSettingsObserver()
- {
- TRACES( RDebug::Print( _L("CSysApSsSettingsObserver::~CSysApSsSettingsObserver") ) );
- iSysApSsSettings.CancelAll( *this );
- iSysApSsSettings.Close();
- }
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver::PhoneSettingChanged( TSSSettingsSetting aSetting, TInt aNewValue )
-// ----------------------------------------------------------------------------
-
-void CSysApSsSettingsObserver::PhoneSettingChanged( TSSSettingsSetting aSetting, TInt aNewValue )
- {
- TRACES( RDebug::Print( _L("CSysApSsSettingsObserver::PhoneSettingChanged( aSetting:%d, aNewValue:%d )"), aSetting, aNewValue ) );
- if( aSetting == ESSSettingsAls )
- {
- TRAPD( err, SetSecondLineIndicatorL( aNewValue ) );
- if ( err ) err = 0; // hide compiler warning about not using variable
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver::ConstructL()
-// ----------------------------------------------------------------------------
-
-void CSysApSsSettingsObserver::ConstructL( )
- {
- User::LeaveIfError(iSysApSsSettings.Open(iSysApAppUi.GetTelServer()));
- iSysApSsSettings.Register( ESSSettingsAls, *this );
- TSSSettingsSetting ssSetting( ESSSettingsAls );
- TInt ssSettingAlsValue( 0 );
- TInt err( iSysApSsSettings.Get( ssSetting, ssSettingAlsValue ) );
- if( err == KErrNone )
- {
- SetSecondLineIndicatorL( ssSettingAlsValue );
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApSsSettingsObserver::SetSecondLineIndicatorL( TInt aSsSettingsAlsLineValue )
-// ----------------------------------------------------------------------------
-
-void CSysApSsSettingsObserver::SetSecondLineIndicatorL( const TInt aSsSettingsAlsLineValue ) const
- {
- TRACES( RDebug::Print( _L("CSysApSsSettingsObserver::SetSecondLineIndicatorL( aSsSettingsAlsLineValue:%d, "), aSsSettingsAlsLineValue ) );
- if( aSsSettingsAlsLineValue == ESSSettingsAlsAlternate )
- {
- iSysApAppUi.SetIndicatorStateL( EAknIndicatorSelectedLine, EAknIndicatorStateOn );
- }
- else
- {
- iSysApAppUi.SetIndicatorStateL( EAknIndicatorSelectedLine, EAknIndicatorStateOff );
- }
- }
-
-// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/SysApWaitNote.cpp
--- a/coreapplicationuis/SysAp/Src/SysApWaitNote.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-/*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: CSysApWaitNote implementation.
-*
-*/
-
-
-// INCLUDES
-
-#include
-#include
-#include "SysAp.hrh"
-#include "SysApWaitNote.h"
-#include
-#include
-
-
-// ============================ MEMBER FUNCTIONS ==============================
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::NewL()
-// ----------------------------------------------------------------------------
-CSysApWaitNote* CSysApWaitNote::NewL(TBool aCoverDisplaySupported)
- {
- CSysApWaitNote* self = new(ELeave) CSysApWaitNote(aCoverDisplaySupported);
- CleanupStack::PushL(self);
- self->ConstructL();
- CleanupStack::Pop();
- return self;
- }
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::ConstructL()
-// ----------------------------------------------------------------------------
-void CSysApWaitNote::ConstructL()
- {
- iWaitNote = CAknGlobalNote::NewL();
- iWaitNote->SetSoftkeys( R_AVKON_SOFTKEYS_EMPTY );
- }
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::CSysApWaitNote()
-// ----------------------------------------------------------------------------
-
-CSysApWaitNote::CSysApWaitNote(TBool aCoverDisplaySupported) : iActive( EFalse ),
- iCoverDisplaySupported(aCoverDisplaySupported)
- {
- }
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::~CSysApWaitNote()
-// ----------------------------------------------------------------------------
-
-CSysApWaitNote::~CSysApWaitNote()
- {
- Cancel();
- delete iWaitNote;
- iWaitNote = NULL;
- }
-
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::Cancel()
-// ----------------------------------------------------------------------------
-
-void CSysApWaitNote::Cancel()
- {
- TRACES( RDebug::Print( _L("CSysApWaitNote::Cancel()" ) ) );
- TRAPD ( err, iWaitNote->CancelNoteL( iNoteId ) );
- iActive = EFalse;
- if ( err )
- {
- TRACES( RDebug::Print( _L("CSysApWaitNote::Cancel(), error: %d" ), err ) );
- }
- }
-
-// ----------------------------------------------------------------------------
-// CSysApWaitNote::ShowNoteL()
-// ----------------------------------------------------------------------------
-
-void CSysApWaitNote::ShowNoteL( const TSysApWaitNoteIds aNote, HBufC* aNoteStringBuf )
- {
- TRACES( RDebug::Print( _L("CSysApWaitNote::ShowNoteL") ) );
-
- if ( iActive )
- {
- Cancel();
- }
- iActive = ETrue;
- TInt tone ( EAvkonSIDNoSound );
- iWaitNote->SetTone( tone );
- TRACES( RDebug::Print( _L("CSysApWaitNote::StartL: ShowNoteL()" ) ) );
-
- if ( aNote == EClosingApplicationsNote )
- {
- // Set secondary display data if necessary
- if ( iCoverDisplaySupported )
- {
- CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, SecondaryDisplay::ECmdShowClosingApplicationsNote, KNullDesC8);
- iWaitNote->SetSecondaryDisplayData(sd); // ownership to notifier client
- }
-
- }
-
- iNoteId = iWaitNote->ShowNoteL( EAknGlobalWaitNote, aNoteStringBuf->Des() );
- }
-
-// End of File
-
-
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp
--- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -211,7 +211,7 @@
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KChargingNote);
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return;
}
@@ -228,7 +228,7 @@
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KChargingNote);
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
iSysApDriveList.MarkDriveUnlockQueryShown( iDriveToUnlock );
}
@@ -300,7 +300,7 @@
HBufC* aString = HBufC16::NewLC(150);
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KUnlockNote);
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return ETrue;
}
@@ -311,7 +311,7 @@
HBufC* aString = HBufC16::NewLC(150);
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KUnlockDeniedNote);
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return EFalse;
}
@@ -322,7 +322,7 @@
HBufC* aString = HBufC16::NewLC(150);
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KUnlockAlreadyExistNote);
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return ETrue;
}
@@ -334,7 +334,7 @@
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KUnlockNotSupporrtedNote);
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return ETrue;
}
@@ -346,7 +346,7 @@
TPtrC aStringPointer = aString->Des();
aStringPointer.Set(KUnlockOperationCancelNote);
TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) );
- iSysApAppUi.ShowExampleUiNoteL( aStringPointer );
+ iSysApAppUi.ShowNoteL( aStringPointer );
CleanupStack::PopAndDestroy(); // aString
return ETrue;
}
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/sysapcharginganimation.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/SysAp/Src/sysapcharginganimation.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,307 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: CSysApLightsController implementation.
+*
+*/
+
+
+#include "sysapcharginganimation.h"
+#include
+#include
+#include
+#include
+
+_LIT(KFrameDir, "z:\\resource\\apps\\");
+_LIT(KFrame1, "qtg_anim_battery_charging_01.svg");
+_LIT(KFrame2, "qtg_anim_battery_charging_02.svg");
+_LIT(KFrame3, "qtg_anim_battery_charging_03.svg");
+_LIT(KFrame4, "qtg_anim_battery_charging_04.svg");
+_LIT(KFrame5, "qtg_anim_battery_charging_05.svg");
+_LIT(KFrame6, "qtg_anim_battery_charging_06.svg");
+_LIT(KFrame7, "qtg_anim_battery_charging_07.svg");
+_LIT(KFrame8, "qtg_anim_battery_charging_08.svg");
+_LIT(KFrame9, "qtg_anim_battery_charging_09.svg");
+_LIT(KFrame10,"qtg_anim_battery_charging_10.svg");
+_LIT(KFullFrame1, "qtg_anim_battery_full_01.svg");
+_LIT(KFullFrame2, "qtg_anim_battery_full_02.svg");
+_LIT(KFullFrame3, "qtg_anim_battery_full_03.svg");
+_LIT(KFullFrame4, "qtg_anim_battery_full_04.svg");
+_LIT(KFullFrame5, "qtg_anim_battery_full_05.svg");
+_LIT(KFullFrame6, "qtg_anim_battery_full_06.svg");
+_LIT(KFullFrame7, "qtg_anim_battery_full_07.svg");
+_LIT(KFullFrame8, "qtg_anim_battery_full_08.svg");
+_LIT(KFullFrame9, "qtg_anim_battery_full_09.svg");
+_LIT(KFullFrame10,"qtg_anim_battery_full_10.svg");
+#define SIZE_X 228//360 //360
+#define SIZE_Y 228 //640
+static TInt KChargingFrameDuration=800000;
+static TInt KFullFrameDuration=200000;
+
+CSysApChargingAnimation::CSysApChargingAnimation()
+ {
+ // No implementation required
+ }
+
+CSysApChargingAnimation::~CSysApChargingAnimation()
+ {
+ iAnimation.ResetAndDestroy();
+ iAnimTimer->Cancel();
+ delete iAnimTimer;
+ iAnimTimer=NULL;
+ }
+
+CSysApChargingAnimation* CSysApChargingAnimation::NewLC()
+ {
+ CSysApChargingAnimation* self = new (ELeave) CSysApChargingAnimation();
+ CleanupStack::PushL(self);
+ self->ConstructL();
+ return self;
+ }
+
+CSysApChargingAnimation* CSysApChargingAnimation::NewL()
+ {
+ CSysApChargingAnimation* self = CSysApChargingAnimation::NewLC();
+ CleanupStack::Pop(); // self;
+ return self;
+ }
+
+void CSysApChargingAnimation::DeleteFrames()
+ {
+ iAnimation.ResetAndDestroy();
+ }
+
+void CSysApChargingAnimation::ResetTimer()
+ {
+ if(iAnimTimer)
+ {
+ iAnimTimer->Cancel();
+ delete iAnimTimer;
+ iAnimTimer=NULL;
+ }
+
+ TRAPD( err, iAnimTimer = CPeriodic::NewL( EPriorityNormal ) );
+ if(err==KErrNone)
+ {
+ if(iMode==KChargingModeFull)
+ iAnimTimer->Start(KFullFrameDuration,KFullFrameDuration,TCallBack( TimerExpired, this ));
+ else if(iMode==KChargingModeChargingOn)
+ iAnimTimer->Start(KChargingFrameDuration,KChargingFrameDuration,TCallBack( TimerExpired, this ));
+ }
+ }
+
+void CSysApChargingAnimation::StopTimer()
+ {
+ if(iAnimTimer)
+ {
+ iAnimTimer->Cancel();
+ delete iAnimTimer;
+ iAnimTimer=NULL;
+ }
+ }
+
+void CSysApChargingAnimation::SetChargingFramesL()
+ {
+ DeleteFrames();
+ TParse* fp = new(ELeave) TParse();
+ fp->Set(KFrame1, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame2, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame3, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame4, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame5, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame6, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame7, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame8, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame9, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFrame10, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ }
+
+void CSysApChargingAnimation::SetFullFramesL()
+ {
+ DeleteFrames();
+ TParse* fp = new(ELeave) TParse();
+ fp->Set(KFullFrame1, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame2, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame3, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame4, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame5, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame6, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame7, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame8, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame9, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ fp->Set(KFullFrame10, &KFrameDir, NULL);
+ iAnimation.Append(ReadSVGL (fp->FullName()));
+ }
+
+void CSysApChargingAnimation::SetModeL(TInt aMode)
+ {
+ if(iMode==aMode) return;
+
+ if(aMode==KChargingModeChargingOn)
+ {
+ SetChargingFramesL();
+ }
+ else if(aMode==KChargingModeFull)
+ {
+ SetFullFramesL();
+ }
+
+ iMode=aMode;
+ iCurrentFrame=0;
+ if(aMode!=KChargingModeUnknown)
+ {
+ iBitmap = iAnimation[iCurrentFrame];
+ iFrameCount = iAnimation.Count();
+ DrawDeferred();
+ }
+ else
+ {
+ DeleteFrames();
+ iBitmap=NULL;
+ iFrameCount=0;
+ }
+ }
+
+void CSysApChargingAnimation::ConstructL()
+ {
+ iMode=KChargingModeUnknown;
+
+ CreateWindowL();
+ SetExtentToWholeScreen();
+ ActivateL();
+ iEikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront );
+ }
+
+void CSysApChargingAnimation::Draw(const TRect& aRect) const
+{
+ if(iBitmap && iBitmap->Handle())
+ {
+ CWindowGc& gc=SystemGc();
+ TSize bmpSizeInPixels = iBitmap->SizeInPixels();
+ //center image to the center of the screen
+ TInt xDelta = ( aRect.Width() - bmpSizeInPixels.iWidth ) / 2;
+ TInt yDelta = ( aRect.Height() - bmpSizeInPixels.iHeight ) / 2;
+ TPoint pos = TPoint( xDelta , yDelta );
+ gc.BitBlt(pos, iBitmap);
+ }
+}
+
+CFbsBitmap* CSysApChargingAnimation::ReadSVGL (TFileName aFileName)
+ {
+ TFontSpec fontspec;
+ TDisplayMode mode = EColor16MA;
+ TSize size(SIZE_X, SIZE_Y);
+
+ CFbsBitmap* frameBuffer = new ( ELeave ) CFbsBitmap;
+ CleanupStack::PushL( frameBuffer );
+ frameBuffer->Create( size, mode );
+
+ CSvgEngineInterfaceImpl* svgEngine = NULL;
+ svgEngine = CSvgEngineInterfaceImpl::NewL(frameBuffer, NULL, fontspec );
+
+ if (svgEngine == NULL)
+ {
+ return NULL;
+ }
+
+ CleanupStack::PushL( svgEngine );
+ TInt domHandle = 0;
+ svgEngine->PrepareDom( aFileName, domHandle ) ;
+ if (domHandle == 0)
+ {
+ return NULL;
+ }
+ TBool b = svgEngine->IsPanPossible(0,200,NULL);
+ CFbsBitmap* bitmap = new(ELeave) CFbsBitmap;
+ CleanupStack::PushL( bitmap );
+ User::LeaveIfError( bitmap->Create( size, mode) );
+
+ svgEngine->UseDom( domHandle, bitmap, NULL ) ;
+
+ MSvgError* err;
+ svgEngine->Start( err );
+ if (err->HasError())
+ {
+ return NULL;
+ }
+
+ svgEngine->DeleteDom( domHandle );
+
+ CleanupStack::Pop( bitmap );
+ CleanupStack::PopAndDestroy( svgEngine );
+ CleanupStack::PopAndDestroy( frameBuffer );
+
+ return bitmap;
+ }
+
+void CSysApChargingAnimation::SetNextFrame()
+ {
+ if(iFrameCount<=0)
+ return;
+
+ iCurrentFrame++;
+ if(iCurrentFrame>=iFrameCount)
+ {
+ iCurrentFrame=0;
+ }
+
+ iBitmap=iAnimation[iCurrentFrame];
+
+ DrawDeferred();
+ }
+
+TInt CSysApChargingAnimation::TimerExpired( TAny* aObject )
+ {
+ static_cast(aObject)->SetNextFrame();
+ return 0;
+ }
+
+void CSysApChargingAnimation::StartChargingAnimationL()
+ {
+ if(iMode!=KChargingModeChargingOn)
+ SetModeL(KChargingModeChargingOn);
+
+ ResetTimer();
+ }
+
+void CSysApChargingAnimation::StopAnimation()
+ {
+ StopTimer();
+ }
+
+void CSysApChargingAnimation::StartChargingFullAnimationL()
+ {
+ if(iMode!=KChargingModeFull)
+ SetModeL(KChargingModeFull);
+
+ ResetTimer();
+ }
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp
--- a/coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-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"
@@ -41,6 +41,7 @@
#include
//#include "sysapappui.h"
#include
+#include
const TInt KModifierMask( 0 );
@@ -288,8 +289,8 @@
TInt value(0);
TBool retval(EFalse);
- RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, value );
- if ( value > EAutolockOff )
+ RProperty::Get( KPSUidAvkonDomain, KAknKeyguardStatus, value );
+ if ( value > EKeyguardNotActive )
{
retval = ETrue;
}
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/rom/SysAp.iby
--- a/coreapplicationuis/SysAp/rom/SysAp.iby Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/rom/SysAp.iby Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-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"
@@ -22,6 +22,28 @@
file=ABI_DIR\BUILD_DIR\NspsWsPlugin.dll SHARED_LIB_DIR\NspsWsPlugin.dll
data=DATAZ_\resource\apps\qgn_sysap_screen.svg resource\apps\qgn_sysap_screen.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_01.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_01.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_02.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_02.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_03.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_03.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_04.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_04.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_05.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_05.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_06.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_06.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_07.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_07.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_08.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_08.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_09.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_09.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_10.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_10.svg
+
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_01.svg APP_RESOURCE_DIR\qtg_anim_battery_full_01.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_02.svg APP_RESOURCE_DIR\qtg_anim_battery_full_02.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_03.svg APP_RESOURCE_DIR\qtg_anim_battery_full_03.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_04.svg APP_RESOURCE_DIR\qtg_anim_battery_full_04.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_05.svg APP_RESOURCE_DIR\qtg_anim_battery_full_05.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_06.svg APP_RESOURCE_DIR\qtg_anim_battery_full_06.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_07.svg APP_RESOURCE_DIR\qtg_anim_battery_full_07.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_08.svg APP_RESOURCE_DIR\qtg_anim_battery_full_08.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_09.svg APP_RESOURCE_DIR\qtg_anim_battery_full_09.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_10.svg APP_RESOURCE_DIR\qtg_anim_battery_full_10.svg
+
S60_APP_EXE(SysAp)
S60_APP_AIF_RSC(SysAp)
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/SysAp/rom/SysApResources.iby
--- a/coreapplicationuis/SysAp/rom/SysApResources.iby Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/SysAp/rom/SysApResources.iby Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-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"
@@ -22,4 +22,27 @@
//Localized resource file(s) for Sysap application (SysAp.iby)
data=DATAZ_\APP_RESOURCE_DIR\sysap.RSC APP_RESOURCE_DIR\SysAp.rsc
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_01.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_01.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_02.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_02.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_03.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_03.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_04.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_04.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_05.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_05.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_06.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_06.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_07.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_07.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_08.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_08.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_09.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_09.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_charging_10.svg APP_RESOURCE_DIR\qtg_anim_battery_charging_10.svg
+
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_01.svg APP_RESOURCE_DIR\qtg_anim_battery_full_01.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_02.svg APP_RESOURCE_DIR\qtg_anim_battery_full_02.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_03.svg APP_RESOURCE_DIR\qtg_anim_battery_full_03.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_04.svg APP_RESOURCE_DIR\qtg_anim_battery_full_04.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_05.svg APP_RESOURCE_DIR\qtg_anim_battery_full_05.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_06.svg APP_RESOURCE_DIR\qtg_anim_battery_full_06.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_07.svg APP_RESOURCE_DIR\qtg_anim_battery_full_07.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_08.svg APP_RESOURCE_DIR\qtg_anim_battery_full_08.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_09.svg APP_RESOURCE_DIR\qtg_anim_battery_full_09.svg
+data=DATAZ_\APP_RESOURCE_DIR\qtg_anim_battery_full_10.svg APP_RESOURCE_DIR\qtg_anim_battery_full_10.svg
+
+
#endif
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/Bmarm/AccFwUiNotifierTestModuleU.DEF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/Bmarm/AccFwUiNotifierTestModuleU.DEF Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/Bwins/AccFwUiNotifierTestModuleu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/Bwins/AccFwUiNotifierTestModuleu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/conf/ui_AccFwUiNotifierTestModule.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/conf/ui_AccFwUiNotifierTestModule.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,36 @@
+[Test]
+title CreateAndDestroyPlugin
+create AccFwUiNotifierTestModule AccFwUiNotifier
+AccFwUiNotifier CreateNotifierPlugin
+delete AccFwUiNotifier
+[Endtest]
+
+[Test]
+title ShowAccessoryUiNote
+create AccFwUiNotifierTestModule AccFwUiNotifier
+AccFwUiNotifier TestSupportedAccessoryUiNoteL
+delete AccFwUiNotifier
+[Endtest]
+
+[Test]
+title TestUnsupportedAccessoryUiNoteL
+create AccFwUiNotifierTestModule AccFwUiNotifier
+AccFwUiNotifier TestUnsupportedAccessoryUiNoteL
+delete AccFwUiNotifier
+[Endtest]
+
+
+[Test]
+title TestUpdateNotifierL
+create AccFwUiNotifierTestModule AccFwUiNotifier
+AccFwUiNotifier TestUpdateNotifierL
+delete AccFwUiNotifier
+[Endtest]
+
+[Test]
+title TestStart2L
+create AccFwUiNotifierTestModule AccFwUiNotifier
+AccFwUiNotifier TestStartNotifierL
+delete AccFwUiNotifier
+[Endtest]
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/eabi/AccFwUiNotifierTestModuleu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/eabi/AccFwUiNotifierTestModuleu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule-tmp.SIS
Binary file coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule-tmp.SIS has changed
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,90 @@
+/*TYPE TESTCLASS*/
+/*
+* 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: MMP file for STIF Test Framework's TestScripter
+* testclass test module.
+*
+*/
+
+#include
+
+SMPSAFE
+
+TARGET AccFwUiNotifierTestModule.dll
+TARGETTYPE dll
+UID 0x1000008D 0x101FB3E3
+
+CAPABILITY ALL -TCB
+/* Remove comments and replace 0x00000000 with correct vendor id */
+// VENDORID 0x00000000
+/* Remove comments and replace 0x00000000 with correct secure id */
+// SECUREID 0x00000000
+
+//TARGETPATH ?target_path
+DEFFILE AccFwUiNotifierTestModule.def
+
+//USERINCLUDE ../inc
+USERINCLUDE ../../../inc
+USERINCLUDE ../inc
+
+
+MW_LAYER_SYSTEMINCLUDE
+OS_LAYER_SYSTEMINCLUDE
+SYSTEMINCLUDE /epoc32/include/ecom
+
+
+
+SOURCEPATH ../src
+SOURCE AccFwUiNotifierTestModule.cpp
+
+//SOURCEPATH ../../../src
+//SOURCE AccFwUiNoteNotifier.cpp
+
+
+
+//RESOURCE resource_file
+//RESOURCE resource_file2
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY stiftestengine.lib
+LIBRARY ecom.lib
+
+
+
+LANG SC
+
+/*
+START WINS
+?wins_specific_information
+END
+
+START MARM
+?marm_specific_information
+END
+*/
+// Other possible keywords:
+
+// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes)
+/*
+START BITMAP ?target
+TARGETPATH ?emulated_path_on_target_machine
+HEADER
+SOURCE ?color_depth ?source_bitmap
+END
+*/
+// DEFFILE ?filename
+// AIF ?filename
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+; Installation file for STIF
+;
+
+; Languages
+&EN
+
+; Provide value for uid
+#{"STIF"},(0x00000000),1,1,0,TYPE=SA
+
+; Series60 product id for S60 3.0
+[0x101F7961], 0, 0, 0, {"Series60ProductID"}
+
+; Localised Vendor name
+%{"Nokia"}
+
+; Unique Vendor name
+:"Nokia"
+
+; Logo
+; None
+
+; Package signature - Optional
+; None
+
+; Start of Package body
+
+; Condition blocks
+; None
+
+; Options list
+; None
+
+; Install files
+"\epoc32\release\armv5\udeb\AccFwUiNotifierTestModule.dll" - "!:\Sys\Bin\AccFwUiNotifierTestModule.dll"
+
+; Embedded SIS
+; None
+
+; End of Package body
+
+; PKG dependencies
+; None
+
+; PKG capabilities
+; None
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule_DoxyFile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/AccFwUiNotifierTestModule_DoxyFile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,240 @@
+#
+# 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:
+#
+#
+
+# Doxyfile 1.4.1
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = AccFwUiNotifierTestModule
+PROJECT_NUMBER =
+OUTPUT_DIRECTORY = P:\Synergy\accfwuinotifier-bh1dsgasanobroy\accfwuinotifier\tsrc\\AccFwUiNotifierTestModule\
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = YES
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = NO
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = NO
+EXTRACT_STATIC = NO
+EXTRACT_LOCAL_CLASSES = NO
+EXTRACT_LOCAL_METHODS = NO
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = YES
+INLINE_INFO = YES
+SORT_MEMBER_DOCS = YES
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = NO
+WARNINGS = YES
+WARN_IF_UNDOCUMENTED = YES
+WARN_IF_DOC_ERROR = YES
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = P:\Synergy\accfwuinotifier-bh1dsgasanobroy\accfwuinotifier\tsrc\\AccFwUiNotifierTestModule\
+FILE_PATTERNS = *.h \
+ *.rh \
+ *.hrh
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+VERBATIM_HEADERS = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = YES
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = YES
+TOC_EXPAND = YES
+DISABLE_INDEX = YES
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = YES
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = YES
+RTF_OUTPUT = Doc
+COMPACT_RTF = YES
+RTF_HYPERLINKS = YES
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = NO
+XML_OUTPUT = xml
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = NONSHARABLE_CLASS
+EXPAND_AS_DEFINED =
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = YES
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = YES
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,66 @@
+/*
+* 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:
+*
+*/
+
+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_TESTEXPORTS
+// NOTE: If using ARS requirements all export operations should be done under this.
+// 'abld test export'
+../init/TestFramework.ini /epoc32/winscw/c/TestFramework/TestFramework.ini
+../init/TestFramework.ini /epoc32/data/z/system/data/TestFramework.ini
+
+../conf/ui_AccFwUiNotifierTestModule.cfg /epoc32/winscw/c/TestFramework/ui_AccFwUiNotifierTestModule.cfg
+../conf/ui_AccFwUiNotifierTestModule.cfg /epoc32/data/z/system/data/ui_AccFwUiNotifierTestModule.cfg
+
+../rom/AccFwUiNotifierTestModule.iby CORE_MW_LAYER_IBY_EXPORT_PATH(AccFwUiNotifierTestModule.iby)
+
+PRJ_EXPORTS
+// Specify the source file followed by its destination here
+// copy will be used to copy the source file to its destination
+// If there's no destination then the source file will be copied
+// to the same name in \epoc32\include
+// Example:
+/*
+\agnmodel\inc\AGMCOMON.H
+*/
+
+PRJ_TESTMMPFILES
+
+ AccFwUiNotifierTestModule.mmp
+
+PRJ_MMPFILES
+
+
+// Specify the .mmp files required for building the important component
+// releasables.
+//
+// Specify "tidy" if the component you need to build doesn't need to be
+// released. Specify "ignore" if the MMP file exists but should be
+// ignored.
+// Example:
+/*
+\agnmodel\group\agnmodel.mmp
+#if defined(MARM)
+\agnmodel\group\agsvexe.mmp
+#endif
+*/
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/inc/AccFwUiNotifierTestModule.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/inc/AccFwUiNotifierTestModule.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,191 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: STIF testclass declaration
+*
+*/
+
+#ifndef ACCFWUINOTIFIERTESTMODULE_H
+#define ACCFWUINOTIFIERTESTMODULE_H
+
+// INCLUDES
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+
+
+
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// 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( KAccFwUiNotifierTestModuleLogPath, "\\logs\\testframework\\AccFwUiNotifierTestModule\\" );
+// Log file
+_LIT( KAccFwUiNotifierTestModuleLogFile, "AccFwUiNotifierTestModule.txt" );
+_LIT( KAccFwUiNotifierTestModuleLogFileWithTitle, "AccFwUiNotifierTestModule_[%S].txt" );
+
+// FUNCTION PROTOTYPES
+//?type ?function_name(?arg_list);
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+class CAccFwUiNoteNotifier;
+class CAccFwUiNotifierTestModule;
+
+// DATA TYPES
+//enum
+// Forward Declarations
+enum TTestPanic
+ {
+ EPanicBadDescriptor,
+ EPanicIllegalFunction,
+ EPanicAlreadyReceiving
+ };
+
+//typedef ?declaration
+//extern ?data_type;
+
+// CLASS DECLARATION
+
+/**
+* CAccFwUiNotifierTestModule test class for STIF Test Framework TestScripter.
+* ?other_description_lines
+*
+* @lib ?library
+* @since ?Series60_version
+*/
+NONSHARABLE_CLASS(CAccFwUiNotifierTestModule) : public CScriptBase, public RSessionBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CAccFwUiNotifierTestModule* NewL( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CAccFwUiNotifierTestModule();
+
+ public: // New functions
+
+
+ public: // Functions from base classes
+
+ /**
+ * From CScriptBase Runs a script line.
+ * @since ?Series60_version
+ * @param aItem Script line containing method name and parameters
+ * @return Symbian OS error code
+ */
+ virtual TInt RunMethodL( CStifItemParser& aItem );
+
+ protected: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ protected: // Functions from base classes
+
+ /**
+ * From ?base_class ?member_description
+ */
+ //?type ?member_function();
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CAccFwUiNotifierTestModule( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ // Prohibit copy constructor if not deriving from CBase.
+ // ?classname( const ?classname& );
+ // Prohibit assigment operator if not deriving from CBase.
+ // ?classname& operator=( const ?classname& );
+
+ /**
+ * Frees all resources allocated from test methods.
+ * @since ?Series60_version
+ */
+ void Delete();
+
+ /**
+ * Panic Client
+ */
+ void PanicClient(TInt panic);
+
+ /**
+ * Test methods are listed below.
+ */
+ TInt CreateNotifierPlugin( CStifItemParser& aItem );
+ TInt TestSupportedAccessoryUiNoteL (CStifItemParser& aItem);
+ TInt TestUnsupportedAccessoryUiNoteL (CStifItemParser& aItem);
+ TInt TestUpdateNotifierL (CStifItemParser& aItem);
+ TInt TestStartNotifierL (CStifItemParser& aItem);
+ /**
+ * Method used to log version of test class
+ */
+ void SendTestClassVersion();
+
+ //ADD NEW METHOD DEC HERE
+ //[TestMethods] - Do not remove
+
+ public: // Data
+ // ?one_line_short_description_of_data
+ //?data_declaration;
+
+ protected: // Data
+ // ?one_line_short_description_of_data
+ //?data_declaration;
+
+ private: // Data
+ CAccFwUiNoteNotifier* iNotifierPlugin;
+ TUid idtorID;
+ RImplInfoPtrArray iImplementations;
+ RMessagePtr2 iMessagePtr;
+ public: // Friend classes
+ //?friend_class_declaration;
+ protected: // Friend classes
+ //?friend_class_declaration;
+ private: // Friend classes
+ //?friend_class_declaration;
+
+ };
+
+#endif // ACCFWUINOTIFIERTESTMODULE_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/init/TestFramework.ini
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/init/TestFramework.ini Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,219 @@
+#
+# This is STIF 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'.
+# + XML, Test report will be xml type, for example 'TestReport.xml'.
+# Note, that xml format is available only when output is set to FILE.
+#
+# - File output indicates output source of the test report.
+# + FILE, Test report logging to file.
+# + RDEBUG, Test report logging to using rdebug.
+#
+# - File Creation Mode indicates test report overwriting if file exist.
+# + OVERWRITE, Overwrites if the Test report file exist.
+# + APPEND, Continue logging after the old Test report information if
+# report exist.
+# - Sets a device reset module's dll name(Reboot).
+# + If Nokia specific reset module is not available or it is not correct one
+# StifHWResetStub module may use as a template for user specific reset
+# module.
+# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation
+# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02
+#
+
+[Engine_Defaults]
+
+TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment',
+ # 'TestCases' or 'FullReport'
+
+CreateTestReport= YES # Possible values: YES or NO
+
+TestReportFilePath= C:\LOGS\TestFramework\
+TestReportFileName= TestReport
+
+TestReportFormat= TXT # Possible values: TXT, HTML or XML
+TestReportOutput= FILE # Possible values: FILE or RDEBUG
+TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+
+DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting
+
+DisableMeasurement= stifmeasurementdisablenone # Possible values are:
+ # 'stifmeasurementdisablenone', 'stifmeasurementdisableall'
+ # 'stifmeasurementplugin01', 'stifmeasurementplugin02',
+ # 'stifmeasurementplugin03', 'stifmeasurementplugin04',
+ # 'stifmeasurementplugin05' or 'stifbappeaprofiler'
+
+Timeout= 0 # Default timeout value for each test case. In milliseconds
+UITestingSupport= YES # Possible values: YES or NO
+#SeparateProcesses= YES # Possible values: YES or NO (default: NO)
+[End_Defaults]
+
+[New_Module]
+ModuleName= testscripter
+TestCaseFile= Z:\TestFramework\ui_AccFwUiNotifierTestModule.cfg
+[End_Module]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Module configurations start
+# Modules are added between module tags
+# tags. Module name is specified after ModuleName= tag, like
+# ModuleName= XXXXXXXXX
+# Modules might have initialisation file, specified as
+# IniFile= c:\testframework\YYYYYY
+# Modules might have several configuration files, like
+# TestCaseFile= c:\testframework\NormalCases.txt
+# TestCaseFile= c:\testframework\SmokeCases.txt
+# TestCaseFile= c:\testframework\ManualCases.txt
+
+# (TestCaseFile is synonym for old term ConfigFile)
+
+# Following case specifies demo module settings. Demo module
+# does not read any settings from file, so tags
+# IniFile and TestCaseFile are not used.
+# In the simplest case it is enough to specify only the
+# name of the test module when adding new test module
+
+
+
+# Load testmoduleXXX, optionally with initialization file and/or test case files
+#[New_Module]
+#ModuleName= testmodulexxx
+
+#TestModuleXXX used initialization file
+#IniFile= c:\testframework\init.txt
+
+#TestModuleXXX used configuration file(s)
+#TestCaseFile= c:\testframework\testcases1.cfg
+#TestCaseFile= c:\testframework\testcases2.cfg
+#TestCaseFile= c:\testframework\manualtestcases.cfg
+
+#[End_Module]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set STIF 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.
+#
+# - Will write log file in unicode format.
+# + YES, Log file will be written in unicode format
+# + NO, Log will be written as normal, not unicode, file.
+#
+
+[Logger_Defaults]
+
+#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
+#NOTE: TestEngine and TestServer logging settings cannot change here
+
+#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
+
+#FileUnicode= YES # Possible values: YES or NO
+#AddTestCaseTitle= YES # Possible values: YES or NO
+[End_Logger_Defaults]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set filters to be used by ConsoleUI.
+# If you want to use filter with ConsoleUI, simply remove comments
+# from section below and provide valid filter entries.
+# Each filter line has to start with "filter= " keyword.
+# Filter can contain special wildcard characters:
+# * which stands for none or any literal;
+# ? which stands for single character.
+# Filters are not case-sensitive.
+
+#[Filters]
+#filter= *math*
+#filter= *radio*
+#[End_Filters]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+# End of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/rom/AccFwUiNotifierTestModule.iby
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/rom/AccFwUiNotifierTestModule.iby Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,29 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#ifndef __ACCFWUINOTIFIERTESTMODULE_IBY__
+#define __ACCFWUINOTIFIERTESTMODULE_IBY__
+
+file=ABI_DIR\BUILD_DIR\AccFwUiNotifierTestModule.dll SHARED_LIB_DIR\AccFwUiNotifierTestModule.dll
+
+//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini
+
+data=\epoc32\data\z\system\data\ui_AccFwUiNotifierTestModule.cfg \testframework\ui_AccFwUiNotifierTestModule.cfg
+
+
+
+#endif
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/src/AccFwUiNotifierTestModule.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/tsrc/AccFwUiNotifierTestModule/src/AccFwUiNotifierTestModule.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,380 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: This file contains testclass implementation.
+*
+*/
+
+// INCLUDE FILES
+#include
+#include "AccFwUiNotifierTestModule.h"
+#include
+#include "AccFwUiNoteNotifier.h"
+
+#include
+//#include
+
+// EXTERNAL DATA STRUCTURES
+//extern ?external_data;
+
+// EXTERNAL FUNCTION PROTOTYPES
+//extern ?external_function( ?arg_type,?arg_type );
+
+// CONSTANTS
+// CONSTANTS
+
+
+// MACROS
+//#define ?macro ?macro_def
+
+// LOCAL CONSTANTS AND MACROS
+
+
+// MODULE DATA STRUCTURES
+//enum ?declaration
+//typedef ?declaration
+
+// LOCAL FUNCTION PROTOTYPES
+//?type ?function_name( ?arg_type, ?arg_type );
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// ?function_name ?description.
+// ?description
+// Returns: ?value_1: ?description
+// ?value_n: ?description_line1
+// ?description_line2
+// -----------------------------------------------------------------------------
+//
+/*
+?type ?function_name(
+ ?arg_type arg, // ?description
+ ?arg_type arg) // ?description
+ {
+
+ ?code // ?comment
+
+ // ?comment
+ ?code
+ }
+*/
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::CAccFwUiNotifierTestModule
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CAccFwUiNotifierTestModule::CAccFwUiNotifierTestModule(
+ CTestModuleIf& aTestModuleIf ):
+ CScriptBase( aTestModuleIf )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CAccFwUiNotifierTestModule::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(KAccFwUiNotifierTestModuleLogFileWithTitle, &title);
+ }
+ else
+ {
+ logFileName.Copy(KAccFwUiNotifierTestModuleLogFile);
+ }
+
+ iLog = CStifLogger::NewL( KAccFwUiNotifierTestModuleLogPath,
+ logFileName,
+ CStifLogger::ETxt,
+ CStifLogger::EFile,
+ EFalse );
+
+ SendTestClassVersion();
+ }
+
+// -----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CAccFwUiNotifierTestModule* CAccFwUiNotifierTestModule::NewL(
+ CTestModuleIf& aTestModuleIf )
+ {
+ CAccFwUiNotifierTestModule* self = new (ELeave) CAccFwUiNotifierTestModule( aTestModuleIf );
+
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop();
+
+ return self;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::Delete
+// Delete here all resources allocated and opened from test methods.
+// Called from destructor.
+// -----------------------------------------------------------------------------
+//
+void CAccFwUiNotifierTestModule::Delete()
+ {
+
+ }
+
+
+// Destructor
+CAccFwUiNotifierTestModule::~CAccFwUiNotifierTestModule()
+ {
+
+ // Delete resources allocated from test methods
+ Delete();
+
+ // Delete logger
+ delete iLog;
+
+ }
+
+//-----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::SendTestClassVersion
+// Method used to send version of test class
+//-----------------------------------------------------------------------------
+//
+void CAccFwUiNotifierTestModule::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("AccFwUiNotifierTestModule.dll");
+
+ TBool newVersionOfMethod = ETrue;
+ TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod);
+ }
+
+// ------------------------------------------------------------------------------
+// PanicClient
+// ------------------------------------------------------------------------------
+//
+void CAccFwUiNotifierTestModule::PanicClient(TInt aPanic)
+ {
+ _LIT(KAccFwUiNotifierTestModulePanic, "AccFwUiNotifierTestModule");
+ User::Panic(KAccFwUiNotifierTestModulePanic, aPanic);
+ }
+// -----------------------------------------------------------------------------
+// CAccFwUiNotifierTestModule::RunMethodL
+// Run specified method. Contains also table of test mothods and their names.
+// -----------------------------------------------------------------------------
+//
+TInt CAccFwUiNotifierTestModule::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.
+ ENTRY( "CreateNotifierPlugin", CAccFwUiNotifierTestModule::CreateNotifierPlugin ),
+ ENTRY( "TestSupportedAccessoryUiNoteL", CAccFwUiNotifierTestModule::TestSupportedAccessoryUiNoteL ),
+ ENTRY( "TestUnsupportedAccessoryUiNoteL", CAccFwUiNotifierTestModule::TestUnsupportedAccessoryUiNoteL ),
+ ENTRY( "TestUpdateNotifierL", CAccFwUiNotifierTestModule::TestUpdateNotifierL ),
+ ENTRY( "TestStartNotifierL", CAccFwUiNotifierTestModule::TestStartNotifierL ),
+
+
+ //ADD NEW ENTRY HERE
+ // [test cases entries] - Do not remove
+
+ };
+
+ const TInt count = sizeof( KFunctions ) /
+ sizeof( TStifFunctionInfo );
+
+ return RunInternalL( KFunctions, count, aItem );
+
+ }
+
+
+TInt CAccFwUiNotifierTestModule::CreateNotifierPlugin(CStifItemParser& /*aItem */)
+ {
+ RDebug::Print(_L("CAccFwUiNotifierTestModule::CreatePlugin"));
+ TUid accfwuinotifierUID = {0x10205060};
+ iNotifierPlugin = reinterpret_cast < CAccFwUiNoteNotifier* >(REComSession::CreateImplementationL (accfwuinotifierUID, idtorID ) );
+
+ STIF_ASSERT_NOT_NULL( iNotifierPlugin );
+ RDebug::Print(_L("iNotifierPlugin = %x"),iNotifierPlugin);
+
+ return KErrNone;
+
+ }
+
+TInt CAccFwUiNotifierTestModule::TestSupportedAccessoryUiNoteL(CStifItemParser& /*aItem*/ )
+ {
+ RDebug::Print(_L("CAccFwUiNotifierTestModule::AccessoryUiNote"));
+ RNotifier notifier;
+ notifier.Connect();
+ TInt selectionListBitmask = 255;
+
+ TInt reply = 0;
+
+
+ TPckg replyPck( reply);
+
+ TPckg selectionBitmaskPackage( selectionListBitmask);
+ //activate active object
+ TRequestStatus status;
+ status = KRequestPending;
+
+ //open ui
+
+ notifier.StartNotifierAndGetResponse( status, KAccFwUiNoteNotifierUid, selectionBitmaskPackage, replyPck);
+ User::WaitForRequest( status);
+
+ notifier.Close();
+
+ return KErrNone;
+ }
+
+TInt CAccFwUiNotifierTestModule::TestUnsupportedAccessoryUiNoteL(CStifItemParser& /*aItem*/ )
+ {
+ RDebug::Print(_L("CAccFwUiNotifierTestModule::AccessoryUiNote"));
+ RNotifier notifier;
+ notifier.Connect();
+ //TInt selectionListBitmask = 255;
+
+ TInt reply = 0;
+
+
+ TPckg replyPck( reply);
+
+ //activate active object
+ TRequestStatus status;
+ status = KRequestPending;
+
+ //open ui
+
+ notifier.StartNotifierAndGetResponse( status, KAccFwUiNoteNotifierUid, KNullDesC8, replyPck);
+ User::WaitForRequest( status);
+
+ notifier.Close();
+
+ return KErrNone;
+ }
+
+TInt CAccFwUiNotifierTestModule::TestUpdateNotifierL(CStifItemParser& /*aItem*/ )
+ {
+ RDebug::Print(_L("CAccFwUiNotifierTestModule::TestUpdateNotifierL"));
+ RNotifier notifier;
+ notifier.Connect();
+ //TInt selectionListBitmask = 255;
+
+ TInt reply = 0;
+
+
+ TPckg replyPck( reply);
+
+ //activate active object
+ TRequestStatus status;
+ status = KRequestPending;
+
+ //open ui
+
+ notifier.StartNotifierAndGetResponse( status, KAccFwUiNoteNotifierUid, KNullDesC8, replyPck);
+ User::WaitForRequest( status);
+
+ TBuf8<1> answer;
+ TInt err = notifier.UpdateNotifier(KAccFwUiNoteNotifierUid, KNullDesC8, answer);
+ if (err)
+ {
+ TBuf<4> error;
+ error.Zero();
+ error.AppendNum(err);
+ //CEikonEnv::InfoWinL(_L("Error:"), error);
+ }
+
+ User::WaitForRequest( status);
+
+ notifier.Close();
+
+ return KErrNone;
+ }
+
+TInt CAccFwUiNotifierTestModule::TestStartNotifierL(CStifItemParser& /*aItem*/ )
+ {
+ RDebug::Print(_L("CAccFwUiNotifierTestModule::TestStart2L-enter"));
+ const TInt KGeneralBufferLength = 32;
+
+ TBuf8 responseBuffer;
+
+ RNotifier notifier;
+ User::LeaveIfError( notifier.Connect() );
+
+ //Call Info() function.
+ notifier.StartNotifier( KAccFwUiNoteNotifierUid,KNullDesC8, responseBuffer);
+
+ notifier.Close();
+
+
+ return KErrNone;
+ }
+
+// ========================== 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* ) CAccFwUiNotifierTestModule::NewL( aTestModuleIf );
+
+ }
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/inc/tsptriggerevents.h
--- a/coreapplicationuis/advancedtspcontroller/inc/tsptriggerevents.h Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/advancedtspcontroller/inc/tsptriggerevents.h Thu Oct 07 06:25:45 2010 +0300
@@ -14,6 +14,9 @@
* Description: Observes changes in the default player that should be used for a bearer
*/
+#ifndef TSPTRIGGEREVENTS_H
+#define TSPTRIGGEREVENTS_H
+
#include
#include
#include
@@ -102,3 +105,4 @@
CTspClientMapperObserver* iClientMapperObserver;
};
+#endif
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,15 @@
+/*
+============================================================================
+ Name : bld.inf
+ Author :
+ Copyright : Your copyright notice
+ Description : This file provides the information required for building the
+ whole of a testtspcontroller.
+============================================================================
+*/
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_MMPFILES
+testtspcontroller.mmp
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/ctc2result.bat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/ctc2result.bat Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+ctc2dat -i ctcdata.txt
+ctcpost -p profile.txt
+ctc2html -i profile.txt
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/testtspcontroller.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/group/testtspcontroller.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,49 @@
+/*
+============================================================================
+ Name : testtspcontroller.mmp
+ Author :
+ Copyright : Your copyright notice
+ Description : This is the project specification file for testtspcontroller.
+============================================================================
+*/
+
+TARGET testtspcontroller.exe
+TARGETTYPE exe
+UID 0 0x2002CAD1
+
+USERINCLUDE ..\inc
+USERINCLUDE ..\..\..\inc
+SYSTEMINCLUDE \epoc32\include
+MW_LAYER_SYSTEMINCLUDE
+OS_LAYER_SYSTEMINCLUDE
+SYSTEMINCLUDE /epoc32/include/mmf/common
+
+SOURCEPATH ..\src
+SOURCE testtspcontroller.cpp
+SOURCE mockcfactionindicationimpl.cpp
+SOURCE mockremconidlelistener.cpp
+SOURCE mockremcontspobserver.cpp
+
+SOURCEPATH ..\..\..\src
+SOURCE remconeventtable.cpp
+SOURCE remcontspcontroller.cpp
+SOURCE tsptriggerevents.cpp
+
+LIBRARY euser.lib
+LIBRARY c32.lib
+LIBRARY cone.lib
+LIBRARY apparc.lib
+LIBRARY remcontargetselectorplugin.lib
+LIBRARY remcontypes.lib
+LIBRARY cfclient.lib
+LIBRARY cfservices.lib
+LIBRARY ws32.lib
+LIBRARY apgrfx.lib
+LIBRARY tspclientmapper.lib
+LIBRARY stiftestengine.lib
+LIBRARY stiftestinterface.lib
+
+//LIBRARY ctcrts.lib
+#ifdef ENABLE_ABIV2_MODE
+DEBUGGABLE_UDEBONLY
+#endif
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/RemConDebug.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/RemConDebug.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,258 @@
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Macro definitions for tracing and debugging purposes.
+*
+*/
+
+
+#ifndef REMCONDEBUG_H
+#define REMCONDEBUG_H
+
+#ifdef _DEBUG
+
+// INCLUDES
+#include
+
+// CONSTANTS
+_LIT( KComponent, "[ACCREMCON]" );
+_LIT( KThisFile, "[ACCREMCON] - Trace this file: %s, line: %d, compiled: %s %s" );
+_LIT( KAssertion, "[ACCREMCON] - Assertion failed: File: %s, line: %d, compiled: %s %s" );
+_LIT( KPanic, "[ACCREMCON] - Panic occurred: File: %s, line: %d, compiled: %s %s" );
+_LIT( KMystic, "[ACCREMCON] - Mystic failure: File: %s, line: %d, compiled: %s %s" );
+_LIT8( KDATE, __DATE__ );
+_LIT8( KTIME, __TIME__ );
+
+const TInt KTraceMaxSize = 256;
+
+// DATA TYPES
+enum TTraceType
+ {
+ ETraceInit,
+ ETraceAssert,
+ ETracePanic
+ };
+
+// INLINE FUNCTIONS
+
+ // -----------------------------------------------------------------------------
+ // ThisFileFunc
+ // -----------------------------------------------------------------------------
+ inline void ThisFileFunc( const TDesC8& aFile,
+ TInt aLine,
+ TTraceType aType = ETraceInit )
+ {
+ HBufC* fileBuf = HBufC::New( aFile.Length() + 1 );
+ HBufC* dateBuf = HBufC::New( 32 );
+ HBufC* timeBuf = HBufC::New( 32 );
+
+ if ( fileBuf != NULL && dateBuf != NULL && timeBuf != NULL )
+ {
+ fileBuf->Des().Copy( aFile );
+ timeBuf->Des().Copy( KTIME );
+ dateBuf->Des().Copy( KDATE );
+
+ if ( aType == ETraceInit )
+ {
+ RDebug::Print( KThisFile,
+ fileBuf->Des().PtrZ(),
+ aLine,
+ dateBuf->Des().PtrZ(),
+ timeBuf->Des().PtrZ() );
+ }
+
+ else if ( aType == ETraceAssert )
+ {
+ RDebug::Print( KAssertion,
+ fileBuf->Des().PtrZ(),
+ aLine,
+ dateBuf->Des().PtrZ(),
+ timeBuf->Des().PtrZ() );
+ }
+
+ else if ( aType == ETracePanic )
+ {
+ RDebug::Print( KPanic,
+ fileBuf->Des().PtrZ(),
+ aLine,
+ dateBuf->Des().PtrZ(),
+ timeBuf->Des().PtrZ() );
+ }
+
+ else
+ {
+ RDebug::Print( KMystic,
+ fileBuf->Des().PtrZ(),
+ aLine,
+ dateBuf->Des().PtrZ(),
+ timeBuf->Des().PtrZ() );
+ }
+ }
+
+ else
+ {
+ RDebug::Print( _L( "Assertion and memory allocation failed!" ) );
+ }
+
+ delete fileBuf;
+ delete dateBuf;
+ delete timeBuf;
+ }
+
+ // -----------------------------------------------------------------------------
+ // TraceAssertFunc
+ // -----------------------------------------------------------------------------
+ inline void TraceAssertFunc( const TDesC8& aFile, TInt aLine )
+ {
+ ThisFileFunc( aFile, aLine, ETraceAssert );
+ }
+
+ // -----------------------------------------------------------------------------
+ // TracePanicFunc
+ // -----------------------------------------------------------------------------
+ inline void TracePanicFunc( const TDesC8& aFile, TInt aLine )
+ {
+ ThisFileFunc( aFile, aLine, ETracePanic );
+ User::Panic( KComponent, KErrGeneral );
+ }
+
+// MACROS
+ #define PANIC_IF_FALSE( a ) if ( !( a ) )\
+ TracePanicFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ #define PANIC_IF_TRUE( a ) if ( ( a ) )\
+ TracePanicFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ #define PANIC_ALWAYS\
+ TracePanicFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ // -----------------------------------------------------------------------------
+ // COMPONENT_TRACE_FLAG
+ // -----------------------------------------------------------------------------
+ #ifdef COMPONENT_TRACE_FLAG
+
+ #define COMPONENT_TRACE_THIS_FILE\
+ ThisFileFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ #define COM_TRACE_( AAA ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr ); } while ( 0 )
+
+ #define COM_TRACE_1( AAA, BBB ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB ); } while ( 0 )
+
+ #define COM_TRACE_2( AAA, BBB, CCC ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC ); } while ( 0 )
+
+ #define COM_TRACE_3( AAA, BBB, CCC, DDD ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC, DDD ); } while ( 0 )
+
+ #define COM_TRACE_4( AAA, BBB, CCC, DDD, EEE ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC, DDD, EEE ); } while ( 0 )
+
+ #define COM_TRACE_RAW_( AAA ) do\
+ { RDebug::RawPrint( AAA ); } while ( 0 )
+
+ #define COM_TRACE_RAW_1( AAA, BBB ) do\
+ { _LIT( logStr, AAA ); TBuf buffer; buffer.Append( logStr ); buffer.Append( BBB );\
+ RDebug::RawPrint( buffer ); } while ( 0 )
+
+ #else
+
+ #define COMPONENT_TRACE_THIS_FILE
+
+ #define COM_TRACE_( AAA )
+ #define COM_TRACE_1( AAA, BBB )
+ #define COM_TRACE_2( AAA, BBB, CCC )
+ #define COM_TRACE_3( AAA, BBB, CCC, DDD )
+ #define COM_TRACE_4( AAA, BBB, CCC, DDD, EEE )
+ #define COM_TRACE_RAW_( AAA )
+ #define COM_TRACE_RAW_1( AAA, BBB )
+
+ #endif // COMPONENT_TRACE_FLAG
+
+ #define TRACE_ASSERT( a ) if ( !( a ) )\
+ TraceAssertFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ #define TRACE_ASSERT_RETURN( a ) if ( !( ( a ) == KErrNone ) )\
+ TraceAssertFunc( TPtrC8( ( TText8* ) __FILE__), __LINE__ )
+
+ #define TRACE_ASSERT_ALWAYS\
+ TraceAssertFunc( TPtrC8( ( TText8* ) __FILE__ ), __LINE__ )
+
+ // -----------------------------------------------------------------------------
+ // API_TRACE_FLAG
+ // -----------------------------------------------------------------------------
+ #ifdef API_TRACE_FLAG
+
+ #define API_TRACE_( AAA ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr ); } while ( 0 )
+
+ #define API_TRACE_1( AAA, BBB ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB ); } while ( 0 )
+
+ #define API_TRACE_2( AAA, BBB, CCC ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC ); } while ( 0 )
+
+ #define API_TRACE_3( AAA, BBB, CCC, DDD ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC, DDD ); } while ( 0 )
+
+ #define API_TRACE_4( AAA, BBB, CCC, DDD, EEE ) do\
+ { _LIT( logStr, AAA ); RDebug::Print( logStr, BBB, CCC, DDD, EEE ); } while ( 0 )
+
+ #define API_TRACE_RAW_1( AAA, BBB ) do\
+ { _LIT( logStr, AAA ); TBuf buffer; buffer.Append( logStr ); buffer.Append( BBB );\
+ RDebug::RawPrint( buffer ); } while ( 0 )
+
+ #else
+
+ #define API_TRACE_( AAA )
+ #define API_TRACE_1( AAA, BBB )
+ #define API_TRACE_2( AAA, BBB, CCC )
+ #define API_TRACE_3( AAA, BBB, CCC, DDD )
+ #define API_TRACE_4( AAA, BBB, CCC, DDD, EEE )
+ #define API_TRACE_RAW_1( AAA, BBB )
+
+ #endif // API_TRACE_FLAG
+
+#else // _DEBUG
+
+ #define TRACE_ASSERT( a )
+ #define TRACE_ASSERT_RETURN( a ) a
+ #define TRACE_ASSERT_ALWAYS
+
+ #define COM_TRACE_( AAA )
+ #define COM_TRACE_1( AAA, BBB )
+ #define COM_TRACE_2( AAA, BBB, CCC )
+ #define COM_TRACE_3( AAA, BBB, CCC, DDD )
+ #define COM_TRACE_4( AAA, BBB, CCC, DDD, EEE )
+ #define COM_TRACE_RAW_( AAA )
+ #define COM_TRACE_RAW_1( AAA, BBB )
+
+ #define API_TRACE_( AAA )
+ #define API_TRACE_1( AAA, BBB )
+ #define API_TRACE_2( AAA, BBB, CCC )
+ #define API_TRACE_3( AAA, BBB, CCC, DDD )
+ #define API_TRACE_4( AAA, BBB, CCC, DDD, EEE )
+ #define API_TRACE_RAW_1( AAA, BBB )
+
+ #define COMPONENT_TRACE_THIS_FILE
+
+ #define PANIC_IF_FALSE( a )
+ #define PANIC_IF_TRUE( a )
+ #define PANIC_ALWAYS
+
+#endif // _DEBUG
+
+#endif // REMCONDEBUG_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/mockcfactionindicationimpl.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/mockcfactionindicationimpl.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,53 @@
+
+
+#ifndef MOCKCFACTIONINDICATIONIMPL_H
+#define MOCKCFACTIONINDICATIONIMPL_H
+
+#include
+#include
+
+/**
+* Action indication implementation.
+*
+* @since S60 5.0
+* @lib cfservices.lib
+*/
+NONSHARABLE_CLASS( CMockCFActionIndicationImpl ): public CCFActionIndication
+ {
+ public:
+
+ // Two phased constructors
+ IMPORT_C static CMockCFActionIndicationImpl* NewL ();
+ IMPORT_C static CMockCFActionIndicationImpl* NewLC ();
+
+ // Destructor
+ ~CMockCFActionIndicationImpl();
+
+ public: // From base classes
+
+ // From CCFActionIndication
+ void SetIdentifierL( const TDesC& aIdentifier );
+
+ // From CCFActionIndication
+ const TDesC& Identifier() const;
+
+ // From CCFActionIndication
+ void AddParameterL( const TDesC& aKey, const TDesC& aValue );
+
+ // From CCFActionIndication
+ const RKeyValueArray& Parameters() const;
+
+ private:
+
+ CMockCFActionIndicationImpl();
+ void ConstructL();
+
+ private: // Data
+
+ // Own: Parameters
+ RKeyValueArray iParameters;
+
+ // Own: Identifier
+ HBufC* iIdentifier;
+ };
+#endif //MOCKCFACTIONINDICATIONIMPL_H
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/mockremcontspobserver.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/mockremcontspobserver.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,64 @@
+/*
+ * MockRemConTSPObserver.h
+ *
+ * Created on: 21.7.2010
+ * Author: tongsun
+ */
+
+#ifndef MOCKREMCONTSPOBSERVER_H
+#define MOCKREMCONTSPOBSERVER_H
+
+#include
+#include
+
+
+// CLASS DEFINITION
+/**
+ * Unit test mock class.
+ */
+NONSHARABLE_CLASS(CMockRemConTSPObserver)
+ : public MRemConTargetSelectorPluginObserver //,public MCFListener
+ {
+public:
+ // Constructors and destructor
+ static CMockRemConTSPObserver* NewL();
+ static CMockRemConTSPObserver* NewLC();
+ ~CMockRemConTSPObserver();
+
+ // from MRemConTargetSelectorPluginObserver
+ void OutgoingCommandAddressed(TInt aError) ;
+ void OutgoingCommandPermitted(TBool aIsPermitted);
+ void IncomingCommandAddressed(TInt aError);
+ void OutgoingResponsePermitted(TBool aIsPermitted) ;
+ void IncomingNotifyAddressed(TClientInfo* aClientInfo, TInt aError);
+ void ReAddressNotifies() ;
+ TInt GetConnections(TSglQue& aConnections) ;
+public:
+ TInt Response();
+ void SetResponse(TInt aValue) ;
+ TUid BearerUid() {return iBearerUid;}
+ TClientInfo ClientInfo() {return iClientInfo; }
+private:
+ virtual void MrctspoDoOutgoingCommandAddressed(TInt aError);
+ virtual void MrctspoDoOutgoingCommandPermitted(TBool /*aIsPermitted*/) ;
+ virtual void MrctspoDoIncomingCommandAddressed(TInt aError );
+ virtual TInt MrctspoDoGetConnections(TSglQue& /*aConnections*/) ;
+ virtual void MrctspoDoOutgoingResponsePermitted(TBool /*aIsPermitted*/);
+ virtual void MrctspoDoIncomingNotifyAddressed(TClientInfo* /*aClientInfo*/, TInt aError );
+ virtual void MrctspoDoReAddressNotifies() ;
+
+ virtual void MrctspoDoOutgoingNotifyCommandAddressed(TRemConAddress* aConnection, TInt aError);
+ virtual void MrctspoDoOutgoingNotifyCommandPermitted(TBool aIsPermitted) ;
+ virtual void MrctspoDoIncomingCommandPermitted(TBool aIsPermitted) ;
+ virtual void MrctspoDoIncomingNotifyPermitted(TBool aIsPermitted) ;
+ virtual TInt MrctspoSetLocalAddressedClient(const TUid& aBearerUid, const TClientInfo& aClientInfo) ;
+
+ private: // Constructors
+ CMockRemConTSPObserver();
+ void ConstructL();
+ private:
+ TInt iObserverResponse;
+ TUid iBearerUid;
+ TClientInfo iClientInfo;
+ };
+#endif //MOCKREMCONTSPOBSERVER_H
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/testtspcontroller.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/inc/testtspcontroller.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,22 @@
+/*
+ ============================================================================
+ Name : testtspcontroller.h
+ Author :
+ Copyright : Your copyright notice
+ Description : Exe header file
+ ============================================================================
+ */
+
+#ifndef __TESTTSPCONTROLLER_H__
+#define __TESTTSPCONTROLLER_H__
+
+// Include Files
+
+#include
+
+// Function Prototypes
+
+GLDEF_C TInt E32Main();
+
+#endif // __TESTTSPCONTROLLER_H__
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/sis/testtspcontroller_EKA2.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/sis/testtspcontroller_EKA2.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,24 @@
+; Installation file for Symbian OS 9.x for generic console application
+; Installation file for testtspcontroller EXE
+;
+; This is an auto-generated PKG file by Carbide.
+; This file uses variables specific to Carbide builds that will not work
+; on command-line builds. If you want to use this generated PKG file from the
+; command-line tools you will need to modify the variables with the appropriate
+; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
+;
+
+;
+; UID is the exe's UID
+;
+#{"testtspcontroller EXE"},(0xE7DE3189),1,0,0
+
+
+;Localised Vendor name
+%{"Vendor-EN"}
+
+;Unique Vendor name
+:"Vendor"
+
+"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\testtspcontroller.exe" -"!:\sys\bin\testtspcontroller.exe"
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockcfactionindicationimpl.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockcfactionindicationimpl.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,96 @@
+
+#include "mockcfactionindicationimpl.h"
+
+EXPORT_C CMockCFActionIndicationImpl* CMockCFActionIndicationImpl::NewL()
+ {
+
+ CMockCFActionIndicationImpl* self = CMockCFActionIndicationImpl::NewLC();
+ CleanupStack::Pop( self );
+
+ return self;
+ }
+
+EXPORT_C CMockCFActionIndicationImpl* CMockCFActionIndicationImpl::NewLC()
+ {
+
+ CMockCFActionIndicationImpl* self = new( ELeave ) CMockCFActionIndicationImpl;
+ CleanupStack::PushL( self );
+ self->ConstructL();
+
+ return self;
+ }
+
+CMockCFActionIndicationImpl::~CMockCFActionIndicationImpl()
+ {
+
+ delete iIdentifier;
+ iParameters.ResetAndDestroy();
+ }
+
+CMockCFActionIndicationImpl::CMockCFActionIndicationImpl()
+ {
+ }
+
+void CMockCFActionIndicationImpl::ConstructL()
+ {
+
+ iIdentifier = KNullDesC().AllocL();
+ }
+
+// METHODS
+
+//-----------------------------------------------------------------------------
+// CCFActionIndicationImpl::SetIdentifierL
+//-----------------------------------------------------------------------------
+//
+void CMockCFActionIndicationImpl::SetIdentifierL(
+ const TDesC& aIdentifier )
+ {
+
+ TPtr identifierPtr = iIdentifier->Des();
+ if( identifierPtr.MaxLength() >= aIdentifier.Length() )
+ {
+ // Just copy
+ identifierPtr.Copy( aIdentifier );
+ }
+ else
+ {
+ // Delete and create a new one
+ delete iIdentifier;
+ iIdentifier = NULL;
+ iIdentifier = aIdentifier.AllocL();
+ }
+ }
+
+//-----------------------------------------------------------------------------
+// CCFActionIndicationImpl::Identifier
+//-----------------------------------------------------------------------------
+//
+const TDesC& CMockCFActionIndicationImpl::Identifier() const
+ {
+
+ return *iIdentifier;
+ }
+
+//-----------------------------------------------------------------------------
+// CCFActionIndicationImpl::AddParameterL
+//-----------------------------------------------------------------------------
+//
+void CMockCFActionIndicationImpl::AddParameterL( const TDesC& aKey,
+ const TDesC& aValue )
+ {
+
+ CCFKeyValuePair* obj = CCFKeyValuePair::NewLC( aKey, aValue );
+ iParameters.AppendL( obj );
+ CleanupStack::Pop( obj );
+ }
+
+//-----------------------------------------------------------------------------
+// CCFActionIndicationImpl::Parameters
+//-----------------------------------------------------------------------------
+//
+const RKeyValueArray& CMockCFActionIndicationImpl::Parameters() const
+ {
+ return iParameters;
+ }
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockremconidlelistener.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockremconidlelistener.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,244 @@
+/*
+* Copyright (c) 2002-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: Idle state listener
+*
+*/
+
+
+// INCLUDE FILES
+#include "remconidlelistener.h"
+#include "RemConDebug.h"
+#include "remcontspcontroller.h"
+
+// EXTERNAL DATA STRUCTURES
+
+// EXTERNAL FUNCTION PROTOTYPES
+
+// CONSTANTS
+
+// MACROS
+
+// LOCAL CONSTANTS AND MACROS
+
+// MODULE DATA STRUCTURES
+
+// LOCAL FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::~CRemConIdleListener
+// -----------------------------------------------------------------------------
+//
+CRemConIdleListener::~CRemConIdleListener()
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::~CRemConIdleListener()" );
+
+ Cancel();
+ iProperty.Close();
+ delete iPeriodic;
+ if ( iDeleteInd ) // Update delete indicator
+ {
+ *iDeleteInd = ETrue;
+ }
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::~CRemConIdleListener() - return" );
+ */
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::CRemConIdleListener
+// -----------------------------------------------------------------------------
+//
+CRemConIdleListener::CRemConIdleListener( CRemConTspController& aController )
+ : CActive ( EPriorityNormal ),
+ iController( aController )
+ {
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::CRemConIdleListener()" );
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CRemConIdleListener::ConstructL()
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::ConstructL()" );
+
+ CActiveScheduler::Add( this );
+ User::LeaveIfError( iProperty.Attach( KPSUidStartup,
+ KPSIdlePhase1Ok ) );
+ RunL(); // Start listening
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::ConstructL() - return void" );
+ */
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::NewL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+CRemConIdleListener* CRemConIdleListener::NewL( CRemConTspController& aController )
+ {
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::NewL()" );
+
+ CRemConIdleListener * self = new ( ELeave ) CRemConIdleListener( aController );
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::NewL() - return void" );
+ return self;
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::RetryCB()
+//
+// -----------------------------------------------------------------------------
+//
+TInt CRemConIdleListener::RetryCB( TAny* aPtr )
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RetryCB()" );
+
+ static_cast( aPtr )->CreateController();
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RetryCB() - return" );
+ */
+ return KErrNone;
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::CreateController()
+//
+// -----------------------------------------------------------------------------
+//
+void CRemConIdleListener::CreateController()
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::CreateController()" );
+
+ // Setup delete indicator to detect listener deletion from controller and try to create
+ TBool deleteInd( EFalse );
+ iDeleteInd = &deleteInd;
+ TRAPD( err, iController.CreateAfterIdleL() );
+ COM_TRACE_1( "[REMCONTSPCONTROLLER] CRemConIdleListener::CreateController() - Create err=%d", err );
+
+ if ( !deleteInd )
+ {
+ iDeleteInd = NULL; // Reset delete indicator
+ if ( err == KErrNone )
+ {
+ // Stop retry callback on success
+ delete iPeriodic;
+ iPeriodic = NULL;
+ }
+ else if ( !iPeriodic )
+ {
+ // Start retry callback on error
+ iPeriodic = CPeriodic::New( CActive::EPriorityStandard );
+ if( iPeriodic )
+ {
+ iPeriodic->Start( KRetryInterval, KRetryInterval, TCallBack( RetryCB, this ) );
+ }
+ else
+ {
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::CreateController() - Retry out of memory" );
+ }
+ }
+ if ( iPeriodic )
+ {
+ COM_TRACE_1( "[REMCONTSPCONTROLLER] CRemConIdleListener::CreateController() - Retry after %d us",
+ KRetryInterval );
+ }
+ }
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::CreateController() - return" );
+ */
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::DoCancel()
+//
+// -----------------------------------------------------------------------------
+//
+void CRemConIdleListener::DoCancel()
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::DoCancel()" );
+
+ iProperty.Cancel();
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::DoCancel() - return void" );
+ */
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::RunL()
+//
+// -----------------------------------------------------------------------------
+//
+void CRemConIdleListener::RunL()
+ {
+ /*
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunL()" );
+
+ iProperty.Subscribe( iStatus );
+ TInt value( 0 );
+ TInt err( iProperty.Get( value ) );
+ COM_TRACE_1( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunL() - Value err", err );
+ SetActive();
+
+ if ( err == KErrNone && value == EIdlePhase1Ok )
+ {
+ // Cancel listening and create controller
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunL() - Idle detected!" );
+ Cancel();
+ CreateController();
+ }
+ else
+ {
+ // Listening continues
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunL() - No idle detected, subscribe and wait idle key" );
+ }
+
+ COM_TRACE_( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunL() - return void" );
+ */
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConIdleListener::RunError
+// Handle error in RunL
+// -----------------------------------------------------------------------------
+//
+#ifdef _DEBUG
+TInt CRemConIdleListener::RunError(TInt aError)
+#else
+TInt CRemConIdleListener::RunError(TInt /*aError*/)
+#endif
+ {
+ COM_TRACE_1( "[REMCONTSPCONTROLLER] CRemConIdleListener::RunError(%d)", aError );
+ // Error occurred while trying to communicate with context framework.
+ // Return KErrNone to avoid panic.
+ return KErrNone;
+ }
+// End of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockremcontspobserver.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/mockremcontspobserver.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,124 @@
+
+#include
+#include
+#include "mockremcontspobserver.h"
+
+CMockRemConTSPObserver* CMockRemConTSPObserver::NewL()
+ {
+ CMockRemConTSPObserver * self = new ( ELeave ) CMockRemConTSPObserver( );
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+CMockRemConTSPObserver::~CMockRemConTSPObserver()
+ {
+
+ }
+CMockRemConTSPObserver::CMockRemConTSPObserver()
+ {
+
+ }
+void CMockRemConTSPObserver::ConstructL()
+ {
+
+
+ }
+
+TInt CMockRemConTSPObserver::Response()
+ {return iObserverResponse; }
+
+void CMockRemConTSPObserver::SetResponse(TInt aValue)
+ { iObserverResponse = aValue; }
+
+
+void CMockRemConTSPObserver::MrctspoDoOutgoingCommandAddressed(TInt aError)
+ {
+ iObserverResponse = aError;
+ }
+void CMockRemConTSPObserver::MrctspoDoOutgoingCommandPermitted(TBool aIsPermitted)
+ {
+ if( aIsPermitted )
+ {
+ iObserverResponse = KErrNone;
+ }
+ else
+ {
+ iObserverResponse = KErrNotFound;
+ }
+ }
+void CMockRemConTSPObserver::MrctspoDoIncomingCommandAddressed(TInt aError )
+ {
+ iObserverResponse = aError;
+ }
+TInt CMockRemConTSPObserver::MrctspoDoGetConnections(TSglQue& /*aConnections*/)
+ { return 0; }
+void CMockRemConTSPObserver::MrctspoDoOutgoingResponsePermitted(TBool aIsPermitted)
+ {
+ if( aIsPermitted )
+ {
+ iObserverResponse = KErrNone;
+ }
+ else
+ {
+ iObserverResponse = KErrNotFound;
+ }
+ }
+void CMockRemConTSPObserver::MrctspoDoIncomingNotifyAddressed(TClientInfo* aClientInfo, TInt aError )
+ {
+ iObserverResponse = aError;
+ if( aClientInfo )
+ {
+ iClientInfo = *aClientInfo;
+ }
+ else
+ {
+ iClientInfo.SecureId().iId = 0;
+ }
+ }
+void CMockRemConTSPObserver::MrctspoDoReAddressNotifies()
+ {}
+
+void CMockRemConTSPObserver::MrctspoDoOutgoingNotifyCommandAddressed(TRemConAddress* aConnection, TInt aError)
+ {}
+void CMockRemConTSPObserver::MrctspoDoOutgoingNotifyCommandPermitted(TBool aIsPermitted)
+ {
+ if( aIsPermitted )
+ {
+ iObserverResponse = KErrNone;
+ }
+ else
+ {
+ iObserverResponse = KErrNotFound;
+ }
+ }
+void CMockRemConTSPObserver::MrctspoDoIncomingCommandPermitted(TBool aIsPermitted)
+ {
+ if( aIsPermitted )
+ {
+ iObserverResponse = KErrNone;
+ }
+ else
+ {
+ iObserverResponse = KErrNotFound;
+ }
+ }
+void CMockRemConTSPObserver::MrctspoDoIncomingNotifyPermitted(TBool aIsPermitted)
+ {
+ if( aIsPermitted )
+ {
+ iObserverResponse = KErrNone;
+ }
+ else
+ {
+ iObserverResponse = KErrNotFound;
+ }
+ }
+TInt CMockRemConTSPObserver::MrctspoSetLocalAddressedClient(const TUid& aBearerUid, const TClientInfo& aClientInfo)
+ {
+ iObserverResponse = KErrNone;
+ iBearerUid = aBearerUid;
+ iClientInfo = aClientInfo;
+ return KErrNone;
+ }
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/testtspcontroller.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/testtspcontroller/src/testtspcontroller.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,735 @@
+/*
+ ============================================================================
+ Name : testtspcontroller.cpp
+ Author :
+ Copyright : Your copyright notice
+ Description : Exe source file
+ ============================================================================
+ */
+
+// Include Files
+
+#include "testtspcontroller.h"
+#include
+#include
+#include // Console
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+
+#include "remcontspcontroller.h"
+#include "mockremcontspobserver.h"
+#include "mockcfactionindicationimpl.h"
+
+#define RUN_TEST_CASE(_tt, _tp, tf) \
+{\
+ _tt++; \
+ if( KErrNone==tf ) \
+ _tp++; \
+}
+
+// Constants
+const TUint32 KUid3BTAudioMan = 0x10208971;
+
+_LIT(KTextConsoleTitle, "Console");
+_LIT(KTextFailed, " failed, leave code = %d");
+_LIT(KTextPressAnyKey, " [press any key]\n");
+
+// constant for stif log
+// Logging path
+_LIT( KutremcontspcontrollerLogPath, "\\logs\\testframework\\" );
+// Log file
+_LIT( KutremcontspcontrollerLogFile, "testtspcontroller.txt" );
+//_LIT( KutremcontspcontrollerLogFileWithTitle, "testtspcontroller_[%S].txt" );
+
+_LIT(KTTestNumberStart, "Test%d start. \n");
+_LIT(KTTestNumberPassed, "Test%d passed. \n");
+
+// literal constants for set event table
+_LIT( KTsp, "Tsp" );
+_LIT( KRoutingTable, "routingTable" );
+/*
+_LIT( KRemConKeyEvent, "keyEventRemCon*" );
+_LIT( KRemConKeyEventExt, "keyEventRemConExt*" );
+_LIT( KRemConKeyEventExtCall, "keyEventRemConExtCall*" );
+_LIT( KRemConKeyEventExtPoc, "keyEventRemConExtPoc*" );
+_LIT( KRemConKeyEventExtSync, "keyEventRemConExtSync*" );
+_LIT( KRuleText, "rule*" );
+_LIT( KDefaultAppText, "defaultApplication*" );
+_LIT( KTransparentAppText, "transparentApplication*" );
+_LIT( KRemoveRoutingTable, "removeRoutingTable" );
+_LIT( KDefaultLaunchAppText, "defaultLaunchApp*" );
+_LIT( KStoreRoutingTable, "storeRoutingTable" );
+_LIT( KRestoreRoutingTable, "restoreRoutingTable" );
+*/
+// Global Variables
+
+LOCAL_D CConsoleBase* console; // write all messages to this
+
+// stif logger pointer
+CStifLogger* stifLog;
+// variables for all test cases
+CMockRemConTSPObserver* mockObserver(NULL);
+CRemConTspController* remconTspController(NULL);
+MCFListener* cfListener(NULL);
+TSglQue clients;
+RProcess thisProc;
+TClientInfo thisClient;
+TProcessId fakeId( thisProc.Id() + 100 );
+TClientInfo fakeClient;
+TClientInfo anotherFakeClient;
+TClientInfo fakeClientPhone;
+TClientInfo fakeTransparentClient;
+TClientInfo* client(NULL);
+MRemConTargetSelectorPluginInterfaceV2* tspIf2(NULL);
+MRemConTargetSelectorPluginInterfaceV4* tspIf4(NULL);
+MRemConTargetSelectorPluginInterfaceV5* tspIf5(NULL);
+TInt err(KErrNone);
+TInt testCasesTotal(0);
+TInt testCasesPassed(0);
+
+
+/** Rules assumed by this test suite.
+
+
+
+
+
+
+
+*/
+
+LOCAL_C void TestSetupL()
+ {
+ _LIT(KSetupStart, "TestSetup start");
+ stifLog->Log(KSetupStart);
+
+ // create mock observer
+ mockObserver = CMockRemConTSPObserver::NewL();
+ // instantiate remote controller tsp controller
+ remconTspController = CRemConTspController::NewL(*mockObserver);
+ // get various interfaces for each test cases
+ CRemConTargetSelectorPlugin* tspp(remconTspController);
+ tspIf2 = static_cast( tspp->GetInterface( TUid::Uid( KRemConTargetSelectorInterface2 ) ) );
+ tspIf4 = static_cast( tspp->GetInterface( TUid::Uid( KRemConTargetSelectorInterface4 ) ) );
+ tspIf5 = static_cast( tspp->GetInterface( TUid::Uid( KRemConTargetSelectorInterface5 ) ) );
+
+ // create action parameters according to test rule table, see comments for
+ // event table before this function
+ CMockCFActionIndicationImpl* cfActInd(NULL);
+ cfActInd= CMockCFActionIndicationImpl::NewL();
+ CleanupStack::PushL(cfActInd);
+
+ cfActInd->SetIdentifierL(KTsp);
+
+ cfActInd->AddParameterL(KRoutingTable,_L("01"));
+ cfActInd->AddParameterL(_L("keyEventRemConVolumeUp"),_L("41"));
+ cfActInd->AddParameterL(_L("keyEventRemConVolumeDown"),_L("42"));
+ cfActInd->AddParameterL(_L("keyEventRemConPlay"),_L("44"));
+
+ cfActInd->AddParameterL(KRoutingTable,_L("01"));
+ cfActInd->AddParameterL(_L("ruleForeground"),_L("01"));
+ cfActInd->AddParameterL(_L("ruleActiveAudio"),_L("00"));
+ cfActInd->AddParameterL(_L("ruleLastPlayedAudio"),_L("03"));
+ cfActInd->AddParameterL(_L("ruleDefaultApp"),_L("02"));
+ cfActInd->AddParameterL(_L("defaultApplicationPhone"),_L("100058B3"));
+ cfActInd->AddParameterL(_L("transparentApplication1"),_L("10005555"));
+
+ cfActInd->AddParameterL(KRoutingTable,_L("09"));
+ cfActInd->AddParameterL(_L("keyEventRemConF4"),_L("74"));
+
+ cfActInd->AddParameterL(KRoutingTable,_L("09"));
+ cfActInd->AddParameterL(_L("ruleDefaultLaunchApp"),_L("04"));
+ cfActInd->AddParameterL(_L("defaultLaunchApp"),_L("EFFFFFFF"));
+
+ // call ActionIndication through MCFListener interface
+ cfListener = static_cast (remconTspController);
+ cfListener->ActionIndicationL(*cfActInd);
+ CleanupStack::PopAndDestroy(cfActInd);
+
+ // itinilize all client for testing
+ thisClient.ProcessId() = thisProc.Id();
+ fakeClient.ProcessId() = fakeId.Id();
+ anotherFakeClient.ProcessId() = fakeId.Id() + 100;
+ fakeClientPhone.ProcessId() = fakeId.Id() + 200;
+ fakeClientPhone.SecureId() = TUid::Uid( 0x100058B3 );
+ fakeTransparentClient.ProcessId() = fakeId.Id() + 300;
+ fakeTransparentClient.SecureId() = TUid::Uid( 0x10005555 );
+ }
+LOCAL_C void TestTearDown()
+ {
+ _LIT(KSetupStart, "TestTearDown start");
+ stifLog->Log(KSetupStart);
+ if ( remconTspController!=NULL )
+ {
+ delete remconTspController;
+ }
+ if ( mockObserver!=NULL )
+ {
+ delete mockObserver;
+ }
+ }
+LOCAL_C TInt Test01()
+ {
+ stifLog->Log(KTTestNumberStart, 1);
+ console->Printf(KTTestNumberStart, 1);
+
+ //1.Test the foreground application rule
+ //Test the foreground application rule
+ clients.AddLast( thisClient );
+ clients.AddLast( fakeClient );
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+ clients.AddLast( fakeTransparentClient );
+
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiVolumeUp, clients );
+
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ if( clients.IsEmpty() )
+ {
+ stifLog->Log(_L("test case failed: no client found and returned.\n"));
+ console->Printf(_L("test case failed: no client found and returned.\n"));
+ return KErrGeneral;
+ }
+
+ client = clients.Last();
+ TClientInfo* clientFirst = clients.First();
+
+ //RProcess currProc;
+ //RThread thread;
+ //TInt err = thread.Open( ( TUint )RThread().Id(), EOwnerProcess );
+ if( (client->ProcessId() == thisProc.Id()) &&
+ (clientFirst->SecureId() == fakeTransparentClient.SecureId()))
+ {
+ }
+ else if ( (clientFirst->ProcessId() == thisProc.Id()) &&
+ (client->SecureId() == fakeTransparentClient.SecureId()))
+ {
+ }
+ else
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 1);
+ console->Printf(KTTestNumberPassed,1);
+ return KErrNone;
+ }
+LOCAL_C TInt Test02()
+ {
+ stifLog->Log(KTTestNumberStart, 2);
+ console->Printf(KTTestNumberStart, 2);
+ // by now this function are empty, so call it here for just a coverage
+ cfListener->Extension(TUid::Uid(0));
+
+ stifLog->Log(KTTestNumberPassed, 2);
+ console->Printf(KTTestNumberPassed,2);
+ return KErrNone;
+ }
+LOCAL_C TInt Test03()
+ {
+ stifLog->Log(KTTestNumberStart, 3);
+ console->Printf(KTTestNumberStart, 3);
+
+ // test 03
+ // 3. Test the active audio rule
+ // current process is not added to list because events must not fall to foreground application
+ clients.Reset();
+ clients.AddLast( fakeClient );
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+
+ CTspClientMapper* tspCm(NULL);
+ TRAP(err, tspCm = CTspClientMapper::NewL()); // register fake client to TSP client mapper, so it is considered as active audio
+ if( err!=KErrNone)
+ {
+ delete tspCm;
+ return KErrGeneral;
+ }
+ CleanupStack::PushL(tspCm);
+ tspCm->SetTspTargetClient( CTspClientMapper::EPlayingClients, fakeId );
+ mockObserver->SetResponse(KErrGeneral);
+
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiVolumeUp, clients );
+ tspCm->RemoveTspTargetClient( CTspClientMapper::EPlayingClients, fakeId );
+ CleanupStack::PopAndDestroy( tspCm );
+
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ if( clients.IsEmpty() )
+ {
+ stifLog->Log(_L("test case failed: no client found and returned.\n"));
+ console->Printf(_L("test case failed: no client found and returned.\n"));
+ return KErrGeneral;
+ }
+ client = clients.Last();
+
+ if( client->ProcessId() != fakeId)
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 3);
+ console->Printf(KTTestNumberPassed,3);
+ return KErrNone;
+ }
+LOCAL_C TInt Test04()
+ {
+ stifLog->Log(KTTestNumberStart, 4);
+ console->Printf(KTTestNumberStart, 4);
+ // test 04
+ // 4. Test the last played application rule
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClient );
+ clients.AddLast( fakeClientPhone );
+
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiVolumeUp, clients );
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ if( clients.IsEmpty() )
+ {
+ stifLog->Log(_L("test case failed: no client found and returned.\n"));
+ console->Printf(_L("test case failed: no client found and returned.\n"));
+ return KErrGeneral;
+ }
+ client = clients.Last();
+
+ if( client->ProcessId() != fakeId)
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 4);
+ console->Printf(KTTestNumberPassed,4);
+ return KErrNone;
+ }
+LOCAL_C TInt Test05()
+ {
+ stifLog->Log(KTTestNumberStart, 5);
+ console->Printf(KTTestNumberStart, 5);
+ // test 05
+ // 5. Test the default application (=Phone) rule
+ // drop the 1st fake client so we won't fall to last played application rule
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiVolumeUp, clients );
+
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ if( clients.IsEmpty() )
+ {
+ stifLog->Log(_L("test case failed: no client found and returned.\n"));
+ console->Printf(_L("test case failed: no client found and returned.\n"));
+ return KErrGeneral;
+ }
+ client = clients.Last();
+ if( client->ProcessId() != fakeClientPhone.ProcessId())
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 5);
+ console->Printf(KTTestNumberPassed,5);
+ return KErrNone;
+ }
+LOCAL_C TInt Test06()
+ {
+ stifLog->Log(KTTestNumberStart, 6);
+ console->Printf(KTTestNumberStart, 6);
+
+ // test 06
+ // 6. Test an key event that does not have a rule assigned to it
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiF5, clients );
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 6);
+ console->Printf(KTTestNumberPassed,6);
+ return KErrNone;
+ }
+LOCAL_C TInt Test07()
+ {
+ stifLog->Log(KTTestNumberStart, 7);
+ console->Printf(KTTestNumberStart, 7);
+ // 7. Test a key event that attempts to launch an (non-existing) application
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingCommand( TUid::Uid(KRemConCoreApiUid), ERemConCoreApiF4, clients );
+ if( mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 7);
+ console->Printf(KTTestNumberPassed,7);
+ return KErrNone;
+ }
+LOCAL_C TInt Test08()
+ {
+ stifLog->Log(KTTestNumberStart, 8);
+ console->Printf(KTTestNumberStart, 8);
+ // 8. addressincomingnotify
+ anotherFakeClient.SecureId().iId = KUid3BTAudioMan;
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+ mockObserver->SetResponse(KErrGeneral);
+ // set par1 and par2, so that par1 in notification to observer's -- a client info
+ // is not null
+ tspIf2->AddressIncomingNotify(TUid::Uid(KRemConAbsoluteVolumeControllerApiUid), ERemConCoreApiF4, clients);
+
+ // if the notification's first par is not null, then response is
+ if( mockObserver->Response()==KErrGeneral )
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+ if( mockObserver->ClientInfo().SecureId()!=anotherFakeClient.SecureId() )
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 8);
+ console->Printf(KTTestNumberPassed,8);
+ return KErrNone;
+ }
+LOCAL_C TInt Test09()
+ {
+ stifLog->Log(KTTestNumberStart, 9);
+ console->Printf(KTTestNumberStart, 9);
+
+ // 9. addressincomingnotify
+ anotherFakeClient.SecureId().iId = KUid3BTAudioMan - 1;
+ clients.Reset();
+ clients.AddLast( anotherFakeClient );
+ clients.AddLast( fakeClientPhone );
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressIncomingNotify(TUid::Uid(KRemConAbsoluteVolumeControllerApiUid), ERemConCoreApiF4, clients);
+
+ if( mockObserver->Response()==KErrGeneral )
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+ if( mockObserver->ClientInfo().SecureId()==anotherFakeClient.SecureId() )
+ {
+ stifLog->Log(_L("test case failed: wrong client returned\n"));
+ console->Printf(_L("test case failed: wrong client returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 9);
+ console->Printf(KTTestNumberPassed,9);
+ return KErrNone;
+ }
+LOCAL_C TInt Test10()
+ {
+ stifLog->Log(KTTestNumberStart, 10);
+ console->Printf(KTTestNumberStart, 10);
+
+ // test 10 AddressOutgoingCommand
+ TSglQue bearers;
+ TSecurityPolicy secPolicy;
+ TBearerSecurity bearer(TUid::Uid(100), secPolicy);
+ TBearerSecurity anotherBearer(TUid::Uid(200), secPolicy);
+ TSglQue connections;
+
+ bearers.AddLast(bearer);
+ bearers.AddLast(anotherBearer);
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf2->AddressOutgoingCommand(
+ TUid::Uid(KRemConAbsoluteVolumeControllerApiUid),
+ ERemConCoreApiF4,
+ anotherFakeClient,
+ connections,
+ bearers
+ );
+
+ if( mockObserver->Response()== KErrGeneral )
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ TRemConAddress* conn(connections.First());
+ TRemConAddress* anotherConn(connections.Last());
+
+
+ if( conn->BearerUid().iUid == bearer.BearerUid().iUid &&
+ anotherConn->BearerUid().iUid == anotherBearer.BearerUid().iUid )
+ {
+ }
+ else if( conn->BearerUid().iUid == anotherBearer.BearerUid().iUid &&
+ anotherConn->BearerUid().iUid == bearer.BearerUid().iUid )
+ {
+
+ }
+ else
+ {
+ stifLog->Log(_L("test case failed: wrong connection returned\n"));
+ console->Printf(_L("test case failed: wrong connection returned\n"));
+ return KErrGeneral;
+ }
+ stifLog->Log(KTTestNumberPassed, 10);
+ console->Printf(KTTestNumberPassed,10);
+ return KErrNone;
+ }
+LOCAL_C TInt Test11()
+ {
+ stifLog->Log(KTTestNumberStart, 11);
+ console->Printf(KTTestNumberStart, 11);
+
+ // test 11 PermitOutgoingResponse
+ mockObserver->SetResponse(KErrGeneral);
+ TClientInfoConstIter iter(clients);
+ tspIf2->PermitOutgoingResponse(
+ TUid::Uid(KRemConCoreApiUid),
+ ERemConCoreApiF4,
+ anotherFakeClient,
+ iter);
+
+ if( mockObserver->Response()== KErrGeneral )
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 11);
+ console->Printf(KTTestNumberPassed,11);
+ return KErrNone;
+ }
+LOCAL_C TInt Test12()
+ {
+ stifLog->Log(KTTestNumberStart, 12);
+ console->Printf(KTTestNumberStart, 12);
+
+
+ // test 12 PermitIncomingCommand
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf4->PermitIncomingCommand(
+ TUid::Uid(KRemConCoreApiUid),
+ ERemConCoreApiPlay,
+ anotherFakeClient);
+
+ if( mockObserver->Response()== KErrGeneral )
+ {
+ stifLog->Log(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 12);
+ console->Printf(KTTestNumberPassed,12);
+ return KErrNone;
+ }
+LOCAL_C TInt Test14()
+ {
+ stifLog->Log(KTTestNumberStart, 14);
+ console->Printf(KTTestNumberStart, 14);
+
+ // test 14 TargetClientAvailable
+
+ // this client will serve for
+ // TRAPD(err, GetCorrectClientL(TUid::Uid(KRemConCoreApiUid), ERemConCoreApiPlay, iTargetsForAddressing, EFalse));
+ // as first rule is foreground, so this client should be the test process its self
+
+ //14.1
+ err = tspIf5->RegisterLocalAddressedClientObserver(TUid::Uid(300));
+ if( err!=KErrNone)
+ {
+ stifLog->Log(_L("test case failed: RegisterLocalAddressedClientObserver return error = %d\n"), err);
+ console->Printf(_L("test case failed: RegisterLocalAddressedClientObserver return error = %d\n"), err);
+ return err;
+ }
+ //14.2
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf5->TargetClientAvailable(thisClient);
+ if(mockObserver->Response() == KErrGeneral)
+ {
+ stifLog->Log(_L("test case 14.2 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case 14.2 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+ //14.3
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf5->TargetClientAvailable(thisClient);
+ if(mockObserver->Response() != KErrGeneral)
+ {
+ stifLog->Log(_L("test case 14.3 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case 14.3 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+ //14.4
+ mockObserver->SetResponse(KErrGeneral);
+ tspIf5->TargetClientUnavailable(thisClient);
+ if(mockObserver->Response() != KErrGeneral)
+ {
+ stifLog->Log(_L("test case 14.4 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ console->Printf(_L("test case 14.4 failed: MRemConTargetSelectorPluginObserver was not called\n"));
+ return KErrGeneral;
+ }
+ //14.5
+ err = tspIf5->UnregisterLocalAddressedClientObserver(TUid::Uid(300));
+ if( err != KErrNone)
+ {
+ stifLog->Log(_L("test case failed: UnregisterLocalAddressedClientObserver return error = %d\n"), err);
+ console->Printf(_L("test case failed: UnregisterLocalAddressedClientObserver return error = %d\n"), err);
+ return err;
+ }
+
+ stifLog->Log(KTTestNumberPassed, 14);
+ console->Printf(KTTestNumberPassed,14);
+ return KErrNone;
+ }
+
+
+LOCAL_C void MainL()
+ {
+ //
+ // add your program code here, example code below
+ //
+ // create stif logger
+ stifLog = CStifLogger::NewL( KutremcontspcontrollerLogPath,
+ KutremcontspcontrollerLogFile);
+ _LIT( KLogStart, "utremcontspcontroller logging starts!" );
+ stifLog->Log( KLogStart );
+ TInt err;
+ TRAP(err, TestSetupL());
+ if( err==KErrNone )
+ {
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test01());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test02());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test03());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test04());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test05());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test06());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test07());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test08());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test09());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test10());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test11());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test12());
+ RUN_TEST_CASE(testCasesTotal, testCasesPassed, Test14());
+ }
+ TestTearDown();
+ stifLog->Log(_L("=========================================\n"));
+ stifLog->Log(_L("Test Run Summary:\n"));
+ stifLog->Log(_L("Test cases total: %d\n"), testCasesTotal);
+ stifLog->Log(_L("Test cases Passed: %d\n"), testCasesPassed);
+ stifLog->Log(_L("=========================================\n"));
+ delete stifLog;
+ }
+
+LOCAL_C void DoStartL()
+ {
+ // Create active scheduler (to run active objects)
+ CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
+ CleanupStack::PushL(scheduler);
+ CActiveScheduler::Install(scheduler);
+
+ MainL();
+
+ // Delete active scheduler
+ CleanupStack::PopAndDestroy(scheduler);
+ }
+
+// Global Functions
+
+GLDEF_C TInt E32Main()
+ {
+ // Create cleanup stack
+ __UHEAP_MARK;
+ CTrapCleanup* cleanup = CTrapCleanup::New();
+
+ // Create output console
+ TRAPD(createError, console = Console::NewL(KTextConsoleTitle, TSize(
+ KConsFullScreen, KConsFullScreen)));
+ if (createError)
+ return createError;
+
+ // Run application code inside TRAP harness, wait keypress when terminated
+ TRAPD(mainError, DoStartL());
+ if (mainError)
+ console->Printf(KTextFailed, mainError);
+ console->Printf(KTextPressAnyKey);
+ //console->Getch();
+
+ delete console;
+ delete cleanup;
+ __UHEAP_MARKEND;
+ return KErrNone;
+ }
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/Bwins/ut_atspu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/Bwins/ut_atspu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,4 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCTestModuleBase@@XZ @ 1 NONAME ; class CTestModuleBase * __cdecl LibEntryL(void)
+ ?SetRequirements@@YAHAAPAVCTestModuleParam@@AAK@Z @ 2 NONAME ; int __cdecl SetRequirements(class CTestModuleParam * &,unsigned long &)
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/eabi/ut_atspu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/eabi/ut_atspu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,8 @@
+EXPORTS
+ _Z9LibEntryLv @ 1 NONAME
+ _Z15SetRequirementsRP16CTestModuleParamRm @ 2 NONAME
+ _ZTI20CRemConTspController @ 3 NONAME
+ _ZTV20CRemConTspController @ 4 NONAME
+ _ZTI21CUt_AtspTspEventsStub @ 5 NONAME
+ _ZTV21CUt_AtspTspEventsStub @ 6 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,31 @@
+/*
+* 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 "../ut_atspaudioproperty/group/bld.inf"
+
+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_TESTEXPORTS
+
+PRJ_TESTMMPFILES
+ut_atsp.mmp
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/ut_atsp.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/ut_atsp.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,52 @@
+/*TYPE STIFUNIT*/
+/*
+* 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: MMP file for STIF Test Framework's STIFUnit test module.
+*
+*/
+
+#include
+
+SMPSAFE
+
+TARGET ut_atsp.dll
+TARGETTYPE dll
+UID 0x1000008D 0x2002CAD0
+
+CAPABILITY ALL -TCB
+
+DEFFILE ut_atsp.def
+
+USERINCLUDE ../inc
+USERINCLUDE ../../../inc
+SYSTEMINCLUDE /epoc32/include/mmf/common
+OS_LAYER_SYSTEMINCLUDE
+MW_LAYER_SYSTEMINCLUDE
+
+SOURCEPATH ../src
+SOURCE ut_atsp.cpp
+SOURCE ut_atspcases.cpp
+SOURCE mockremcontspcontroller.cpp
+SOURCE ut_atsptspeventsstub.cpp
+
+SOURCEPATH ../../../src
+SOURCE remconeventtable.cpp
+SOURCE remconidlelistener.cpp
+SOURCE tsptriggerevents.cpp
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY ws32.lib
+
+LANG SC
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/ut_atsp.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/group/ut_atsp.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,32 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+; Installation file for STIF
+;
+
+; Languages
+&EN
+
+; Provide value for uid
+#{"STIF"},(0x2002CAD0),1,1,0,TYPE=SA
+
+; Localised Vendor name
+%{"Nokia"}
+
+; Unique Vendor name
+:"Nokia"
+
+; Install files
+"\epoc32\release\armv5\udeb\ut_atsp.dll" - "!:\Sys\Bin\ut_atsp.dll"
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/inc/mockremcontspcontroller.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/inc/mockremcontspcontroller.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,74 @@
+/*
+* 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: This file contains a mock CRemConTspControllerNoError declaration whose CreateAfterIdleL can return different value according the parameter passed by NewL.
+*
+*/
+#ifndef MOCK_CREMCONTSPCONTROLLER_H
+#define MOCK_CREMCONTSPCONTROLLER_H
+
+// INCLUDES
+#include
+#include "remconidlelistener.h"
+
+// DATA TYPES
+enum MockControllerCtlValue
+ {
+ ECorrect = 0,
+ ELeaveNoChange,
+ ELeaveChange
+ };
+
+// CLASS DECLARATION
+
+/**
+* Controls delivering of commands between Series 60 components and remote
+* targets.
+*/
+class CRemConTspController : public CBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CRemConTspController* NewL(MockControllerCtlValue aCtlValue);
+
+ /**
+ * Destructor.
+ */
+ virtual ~CRemConTspController();
+
+ public: // Functions from base classes
+
+ void CreateAfterIdleL();
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CRemConTspController(MockControllerCtlValue aCtlValue);
+
+ protected: // Data
+
+ void ConstructL();
+
+ private: // Data
+ // owned
+ CRemConIdleListener* iIdle;
+
+ MockControllerCtlValue iCtlValue;
+ };
+
+#endif // MOCK_CREMCONTSPCONTROLLER_H
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/inc/ut_atsptspeventsstub.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/inc/ut_atsptspeventsstub.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,54 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: The stub for testing tsp events
+*
+*/
+
+#ifndef UT_ATSPTSPEVENTSSTUB_H
+#define UT_ATSPTSPEVENTSSTUB_H
+
+#include
+#include "tsptriggerevents.h"
+
+class CUt_AtspTspEventsStub
+ : public CTimer,
+ public MTspRulesTriggerObserver
+ {
+public: // Constructors and destructor
+ static CUt_AtspTspEventsStub* NewL();
+ ~CUt_AtspTspEventsStub();
+
+public: // Issue test event
+ void IssueAudioPropertyL();
+ void IssueTspPropertyL();
+ void IssueWsEventL(const TInt aType);
+public: // From MTspRulesTriggerObserver
+ void MtrtoEvaluateRoutingRules();
+
+protected: // From CTimer
+ void RunL();
+ void DoCancel();
+
+private: // Constructors
+ CUt_AtspTspEventsStub();
+ void ConstructL();
+
+public: // Data
+ TBool iIsRunLCalled;
+ TBool iIsTimerElapsed;
+
+private:
+ };
+
+#endif /* UT_ATSPTSPEVENTSSTUB_H */
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/mockremcontspcontroller.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/mockremcontspcontroller.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,87 @@
+/*
+* 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: This file contains a mock CRemConTspControllerNoError implementation whose CreateAfterIdleL can return different value according the parameter passed by NewL.
+*
+*/
+
+#include "mockremcontspcontroller.h"
+
+// -----------------------------------------------------------------------------
+// CRemConTspController::CRemConTspController
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+
+CRemConTspController::CRemConTspController(MockControllerCtlValue aCtlValue) : iCtlValue(aCtlValue)
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConTspController::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CRemConTspController* CRemConTspController::NewL(MockControllerCtlValue aCtlValue)
+ {
+ CRemConTspController* self = new( ELeave ) CRemConTspController(aCtlValue);
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+void CRemConTspController::ConstructL()
+ {
+ iIdle = CRemConIdleListener::NewL(*this);
+ }
+
+// Destructor
+CRemConTspController::~CRemConTspController()
+ {
+ if( iIdle )
+ {
+ delete iIdle;
+ iIdle = NULL;
+ }
+ }
+
+// -----------------------------------------------------------------------------
+// CRemConTspController::CreateAfterIdleL
+// Define the contexts when idle state has been loaded.
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+void CRemConTspController::CreateAfterIdleL()
+ {
+ if (iCtlValue == ECorrect)
+ {
+ return;
+ }
+
+ if (iCtlValue == ELeaveNoChange)
+ {
+ User::Leave(KErrNoMemory);
+ }
+
+ if (iCtlValue == ELeaveChange)
+ {
+ // delete iIdle now, so that CRemConIdleListener won't call this method again if a leave occurs hereafter
+ if( iIdle )
+ {
+ delete iIdle;
+ iIdle = NULL;
+ }
+ }
+ }
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atsp.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atsp.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,124 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: This file contains STIFUnit module implementation.
+*
+*/
+
+/******************************************************************************/
+/*
+ *
+ * Test module configuration
+*/
+
+// Version
+#define TEST_MODULE_VERSION_MAJOR 0
+#define TEST_MODULE_VERSION_MINOR 0
+#define TEST_MODULE_VERSION_BUILD 0
+
+// Uncomment following defines, if you want to provide implementation
+// of enlisted virtual methods of test module.
+// Implementation part is located at the end of this file.
+//#define STIFUNIT_OOMTESTQUERYL
+//#define STIFUNIT_OOMTESTINITIALIZEL
+//#define STIFUNIT_OOMHANDLEWARNINGL
+//#define STIFUNIT_OOMTESTFINALIZEL
+// Uncomment following define, if you want to increase heap or stack size.
+// #define STIFUNIT_SETHEAPANDSTACKSIZE
+/******************************************************************************/
+
+
+/*
+ * Test module internals. Please do not edit them.
+*/
+
+// Includes
+#include
+
+// Literals
+_LIT( KUnitLogPath, "\\logs\\testframework\\ut_atsp\\" );
+_LIT( KUnitLogFile, "ut_atsp.txt" );
+_LIT( KLogStart, "ut_atsp logging starts!" );
+
+// Defines
+#define STIF_UNIT_TEST_CASES "../src/ut_atspCases.cpp"
+#define STIF_UNIT_MODULE_CLASS_NAME Cut_atsp
+#define STIF_UNIT_MODULE_NAME _L("ut_atsp.dll")
+
+// Include STIF unit generic file
+#include
+
+/*
+ * Implementation of setHeapAndStack virtual methods.
+ * To changes heap and stack size provide new values to iTestThreadStackSize, iTestThreadMinHeap and iTestThreadMaxHeap.
+*/
+
+#ifdef STIFUNIT_SETHEAPANDSTACKSIZE
+EXPORT_C TInt SetRequirements( CTestModuleParam*& aTestModuleParam,
+ TUint32& aParameterValid )
+ {
+ aParameterValid = KStifTestModuleParameterChanged;
+ CTestModuleParamVer01* param = CTestModuleParamVer01::NewL();
+ // Stack size
+ param->iTestThreadStackSize= 16384; // 16K stack
+ // Heap sizes
+ param->iTestThreadMinHeap = 4096; // 4K heap min
+ param->iTestThreadMaxHeap = 1048576;// 1M heap max
+
+ return KErrNone;
+ }
+#undef STIFUNIT_SETHEAPANDSTACKSIZE
+#endif
+
+/*
+ * User implementation of OOM virtual methods.
+ * Providing own implementation requires uncommenting defines at the
+ * beginnig of this file.
+*/
+#ifdef STIFUNIT_OOMTESTQUERYL
+TBool Cut_atsp::OOMTestQueryL( const TFileName& /*aTestCaseFile*/,
+ const TInt aCaseNumber,
+ TOOMFailureType& aFailureType,
+ TInt& aFirstMemFailure,
+ TInt& aLastMemFailure)
+ {
+ }
+#undef STIFUNIT_OOMTESTQUERYL
+#endif
+
+#ifdef STIFUNIT_OOMTESTINITIALIZEL
+void Cut_atsp::OOMTestInitializeL( const TFileName& /*aTestCaseFile*/,
+ const TInt /*aCaseNumber*/ )
+ {
+ }
+#undef STIFUNIT_OOMTESTINITIALIZEL
+#endif
+
+#ifdef STIFUNIT_OOMHANDLEWARNINGL
+void Cut_atsp::OOMHandleWarningL( const TFileName& /*aTestCaseFile*/,
+ const TInt /*aCaseNumber*/,
+ TInt& /*aFailNextValue*/)
+ {
+ }
+#undef STIFUNIT_OOMHANDLEWARNINGL
+#endif
+
+#ifdef STIFUNIT_OOMTESTFINALIZEL
+void Cut_atsp::OOMTestFinalizeL( const TFileName& /*aTestCaseFile*/,
+ const TInt /*aCaseNumber*/ )
+ {
+ }
+#undef STIFUNIT_OOMTESTFINALIZEL
+#endif
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atspcases.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atspcases.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,681 @@
+/*
+* 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: This file contains STIFUnit implementation.
+*
+*/
+
+/**
+ * STIF_UNIT_INCLUDE SECTION - put all #includes between STIF_UNIT_INCLUDE_SECTION
+ * and STIF_UNIT_INCLUDE_SECTION_END
+ */
+#ifdef STIF_UNIT_INCLUDE_SECTION
+#include "remconeventtable.h"
+#include "mockremcontspcontroller.h"
+#include "tsptriggerevents.h"
+#include "ut_atsptspeventsstub.h"
+
+#include
+
+#endif //STIF_UNIT_INCLUDE_SECTION_END
+
+/**
+ * GLOBAL VARIABLES SECTION
+ */
+#ifdef TEST_VAR_DECLARATIONS
+ CRemConEventTable* table;
+ CTspTriggerEventsWatcher* watcher;
+ CUt_AtspTspEventsStub* tspstub;
+ CActiveScheduler* scheduler;
+ static const TInt KDefaultWaitTimeInMicroSeconds = 5000000;
+#endif
+/**
+ * END OF GLOBAL VARIABLES SECTION
+ */
+
+
+/**
+ * TEST CASES SECTION
+ */
+#ifdef TEST_CASES
+/**
+ * STIF_SETUP defines activities needed before every test case.
+ */
+STIF_SETUP
+{
+ // Install active scheduler at start up
+ scheduler = new (ELeave) CActiveScheduler();
+ CleanupStack::PushL(scheduler);
+ CActiveScheduler::Install(scheduler);
+}
+
+/**
+ * STIF_TEARDOWN defines activities needed after every test case
+ */
+STIF_TEARDOWN
+{
+ // Delete active scheduler at last
+ CActiveScheduler::Install(NULL);
+ CleanupStack::PopAndDestroy(scheduler);
+}
+
+/**
+ * STIF_TESTDEFINE defines a test case
+ *
+ */
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-001
+ * @SYMTestCaseDesc Make sure TableNum is fix after construction.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 5.
+ * 2. TableNum() should return 5.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. TableNum() returns 5.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-001)
+{
+ TInt tableNum = 5;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ STIF_ASSERT_EQUALS(table->TableNum(), tableNum);
+ STIF_LOG("TableNum() returned correct table number.");
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-002
+ * @SYMTestCaseDesc Add different kinds of remote control events into event table.
+ * Check whether those events are really in event table. Check whether unadded events are not in event table.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 1.
+ * 2. Add ERemConEvent into event table.
+ * 3. Add ERemConExtEventCall into event table.
+ * 4. Add ERemConExtEventPoc into event table.
+ * 5. Add ERemConExtEventSync into event table.
+ * 6. Add another ERemConEvent into event table.
+ * 7. Add another ERemConExtEventCall into event table.
+ * 8. Add another ERemConExtEventPoc into event table.
+ * 9. Add another ERemConExtEventSync into event table.
+ * 10. Check ERemConEvent in event table.
+ * 11. Check ERemConExtEventCall in event table.
+ * 12. Check ERemConExtEventPoc in event table.
+ * 13. Check ERemConExtEventSync in event table.
+ * 14. Check another ERemConEvent in event table.
+ * 15. Check another ERemConExtEventCall in event table.
+ * 16. Check another ERemConExtEventPoc in event table.
+ * 17. Check another ERemConExtEventSync in event table.
+ * 18. Check unadded events are not in event table.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. An ERemConEvent was added into event table.
+ * 3. An ERemConExtEventCall was added into event table.
+ * 4. An ERemConExtEventPoc was added into event table.
+ * 5. An ERemConExtEventSync was added into event table.
+ * 6. Another ERemConEvent was added into event table.
+ * 7. Another ERemConExtEventCall was added into event table.
+ * 8. Another ERemConExtEventPoc was added into event table.
+ * 9. Another ERemConExtEventSync was added into event table.
+ * 10. ERemConEvent was in event table.
+ * 11. ERemConExtEventCall was in event table.
+ * 12. ERemConExtEventPoc was in event table.
+ * 13. ERemConExtEventSync was in event table.
+ * 14. Another ERemConEvent was in event table.
+ * 15. Another ERemConExtEventCall was in event table.
+ * 16. Another ERemConExtEventPoc was in event table.
+ * 17. Another ERemConExtEventSync was in event table.
+ * 18. Unadded events are not in event table.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-002)
+{
+ // 1. Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ // 2. Add ERemConEvent into event table.
+ // 3. Add ERemConExtEventCall into event table.
+ // 4. Add ERemConExtEventPoc into event table.
+ // 5. Add ERemConExtEventSync into event table.
+ TInt eventValue = 41;
+ table->AddRemConEventToTable(eventValue, CRemConEventTable::ERemConEvent);
+ table->AddRemConEventToTable(eventValue, CRemConEventTable::ERemConExtEventCall);
+ table->AddRemConEventToTable(eventValue, CRemConEventTable::ERemConExtEventPoc);
+ table->AddRemConEventToTable(eventValue, CRemConEventTable::ERemConExtEventSync);
+
+ // 6. Add another ERemConEvent into event table.
+ // 7. Add another ERemConExtEventCall into event table.
+ // 8. Add another ERemConExtEventPoc into event table.
+ // 9. Add another ERemConExtEventSync into event table.
+ TInt eventValue2 = 40;
+ table->AddRemConEventToTable(eventValue2, CRemConEventTable::ERemConEvent);
+ table->AddRemConEventToTable(eventValue2, CRemConEventTable::ERemConExtEventCall);
+ table->AddRemConEventToTable(eventValue2, CRemConEventTable::ERemConExtEventPoc);
+ table->AddRemConEventToTable(eventValue2, CRemConEventTable::ERemConExtEventSync);
+
+ // 10. Check ERemConEvent in event table.
+ // 11. Check ERemConExtEventCall in event table.
+ // 12. Check ERemConExtEventPoc in event table.
+ // 13. Check ERemConExtEventSync in event table.
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue, CRemConEventTable::ERemConEvent), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue, CRemConEventTable::ERemConExtEventCall), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue, CRemConEventTable::ERemConExtEventPoc), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue, CRemConEventTable::ERemConExtEventSync), static_cast(ETrue));
+
+ // 14. Check another ERemConEvent in event table.
+ // 15. Check another ERemConExtEventCall in event table.
+ // 16. Check another ERemConExtEventPoc in event table.
+ // 17. Check another ERemConExtEventSync in event table.
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue2, CRemConEventTable::ERemConEvent), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue2, CRemConEventTable::ERemConExtEventCall), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue2, CRemConEventTable::ERemConExtEventPoc), static_cast(ETrue));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue2, CRemConEventTable::ERemConExtEventSync), static_cast(ETrue));
+
+ // 18. Check unadded events are not in event table.
+ TInt unaddedEventValue = 39;
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(unaddedEventValue, CRemConEventTable::ERemConEvent), static_cast(EFalse));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(unaddedEventValue, CRemConEventTable::ERemConExtEventCall), static_cast(EFalse));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(unaddedEventValue, CRemConEventTable::ERemConExtEventPoc), static_cast(EFalse));
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(unaddedEventValue, CRemConEventTable::ERemConExtEventSync), static_cast(EFalse));
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-003
+ * @SYMTestCaseDesc Add invalid remote control events into event table. Check whether invalid events exists in event table.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Add invalid remote control events into event table.
+ * 2. Check whether invalid events exist in event table.
+ * @SYMTestExpectedResults 1. There isn't any crash and leave.
+ * 2. Invalid events are not in event table.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-003)
+{
+ // Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ // 1. Add invalid remote control events into event table.
+ TInt eventValue = 41;
+ CRemConEventTable::RemConEventType invalidEventType = static_cast(10);
+ table->AddRemConEventToTable(eventValue, invalidEventType);
+
+ // 2. Check whether invalid events exist in event table.
+ STIF_ASSERT_EQUALS(table->IsRemConEventInTable(eventValue, invalidEventType), static_cast(EFalse));
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-004
+ * @SYMTestCaseDesc Try to add valid rules, get rules.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 1.
+ * 2. Get rules list from event table.
+ * 3. Check EActiveAudio not in the rules list.
+ * 4. Check EForegroundApplication not in the rules list.
+ * 5. Check EDefaultApplicationGroup not in the rules list.
+ * 6. Check ELastPlayedMediaApplication not in the rules list.
+ * 7. Check ELaunchDefaultApp not in the rules list.
+ * 8. Add EActiveAudio into event table.
+ * 9. Add EForegroundApplication into event table.
+ * 10. Add EDefaultApplicationGroup into event table.
+ * 11. Add ELastPlayedMediaApplication into event table.
+ * 12. Add ELaunchDefaultApp event table.
+ * 13. Get rules list from event table.
+ * 14. Check EActiveAudio in the rules list.
+ * 15. Check EForegroundApplication in the rules list.
+ * 16. Check EDefaultApplicationGroup in the rules list.
+ * 17. Check ELastPlayedMediaApplication in the rules list.
+ * 18. Check ELaunchDefaultApp in the rules list.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. Rules list was gotten.
+ * 3. EActiveAudio was not in the rules list.
+ * 4. EForegroundApplication was not in the rules list.
+ * 5. EDefaultApplicationGroup was not in the rules list.
+ * 6. ELastPlayedMediaApplication was not in the rules list.
+ * 7. ELaunchDefaultApp was not in the rules list.
+ * 8. An EActiveAudio was added into event table.
+ * 9. An EForegroundApplication was added into event table.
+ * 10. An EDefaultApplicationGroup was added into event table.
+ * 11. An ELastPlayedMediaApplication was added into event table.
+ * 12. An ELaunchDefaultApp was added into event table.
+ * 13. Rules list was gotten.
+ * 14. EActiveAudio was in the rules list.
+ * 15. EForegroundApplication was in the rules list.
+ * 16. EDefaultApplicationGroup was in the rules list.
+ * 17. ELastPlayedMediaApplication was in the rules list.
+ * 18. ELaunchDefaultApp was in the rules list.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-004)
+{
+ // 1. Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ // 2. Get rules list from event table.
+ RArray rulesForThisTable;
+ table->GetRulesForThisTable(rulesForThisTable);
+
+ // 3. Check EActiveAudio not in the rules list.
+ // 4. Check EForegroundApplication not in the rules list.
+ // 5. Check EDefaultApplicationGroup not in the rules list.
+ // 6. Check ELastPlayedMediaApplication not in the rules list.
+ // 7. Check ELaunchDefaultApp not in the rules list.
+ STIF_ASSERT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EActiveAudio), KErrNotFound);
+ STIF_ASSERT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EForegroundApplication), KErrNotFound);
+ STIF_ASSERT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EDefaultApplicationGroup), KErrNotFound);
+ STIF_ASSERT_EQUALS(rulesForThisTable.Find(CRemConEventTable::ELastPlayedMediaApplication), KErrNotFound);
+ STIF_ASSERT_EQUALS(rulesForThisTable.Find(CRemConEventTable::ELaunchDefaultApp), KErrNotFound);
+
+ // 8. Add EActiveAudio into event table.
+ // 9. Add EForegroundApplication into event table.
+ // 10. Add EDefaultApplicationGroup into event table.
+ // 11. Add ELastPlayedMediaApplication into event table.
+ // 12. Add ELaunchDefaultApp event table.
+ table->AddRuleForThisTable(CRemConEventTable::EActiveAudio);
+ table->AddRuleForThisTable(CRemConEventTable::EForegroundApplication);
+ table->AddRuleForThisTable(CRemConEventTable::EDefaultApplicationGroup);
+ table->AddRuleForThisTable(CRemConEventTable::ELastPlayedMediaApplication);
+ table->AddRuleForThisTable(CRemConEventTable::ELaunchDefaultApp);
+
+ // 13. Get rules list from event table.
+ rulesForThisTable.Reset();
+ table->GetRulesForThisTable(rulesForThisTable);
+
+ // 14. Check EActiveAudio in the rules list.
+ // 15. Check EForegroundApplication in the rules list.
+ // 16. Check EDefaultApplicationGroup in the rules list.
+ // 17. Check ELastPlayedMediaApplication in the rules list.
+ // 18. Check ELaunchDefaultApp in the rules list.
+ STIF_ASSERT_NOT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EActiveAudio), KErrNotFound);
+ STIF_ASSERT_NOT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EForegroundApplication), KErrNotFound);
+ STIF_ASSERT_NOT_EQUALS(rulesForThisTable.Find(CRemConEventTable::EDefaultApplicationGroup), KErrNotFound);
+ STIF_ASSERT_NOT_EQUALS(rulesForThisTable.Find(CRemConEventTable::ELastPlayedMediaApplication), KErrNotFound);
+ STIF_ASSERT_NOT_EQUALS(rulesForThisTable.Find(CRemConEventTable::ELaunchDefaultApp), KErrNotFound);
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-005
+ * @SYMTestCaseDesc Try to add default application, get default application.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 1.
+ * 2. Get default application list from event table.
+ * 3. Check the default application info not in the rules list.
+ * 4. Add a default application into event table.
+ * 5. Get default application list from event table.
+ * 6. Check default application info is right in the rules list.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. Default application list was gotten.
+ * 3. The default application info was not in the rules list.
+ * 4. A default application was added into event table.
+ * 5. Default application list was gotten.
+ * 6. The default application info in the list is right.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-005)
+{
+ // 1. Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ TInt defaultApplication = 0x100058B3;
+
+ // 2. Get default application list from event table.
+ RArray defaultApplicationsForThisTable;
+ table->GetDefaultApplicationsForTable(defaultApplicationsForThisTable);
+
+ // 3. Check the default application info not in the rules list.
+ STIF_ASSERT_EQUALS(defaultApplicationsForThisTable.Find(defaultApplication), KErrNotFound);
+
+ // 4. Add a default application into event table.
+ table->AddDefaultApplicationForThisTable(defaultApplication);
+
+ // 5. Get default application list from event table.
+ defaultApplicationsForThisTable.Reset();
+ table->GetDefaultApplicationsForTable(defaultApplicationsForThisTable);
+
+ // 6. Check default application info is right in the rules list.
+ STIF_ASSERT_NOT_EQUALS(defaultApplicationsForThisTable.Find(defaultApplication), KErrNotFound);
+
+ CleanupStack::PopAndDestroy();
+}
+
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-006
+ * @SYMTestCaseDesc Try to add default launch application, get the default launch application.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 1.
+ * 2. Add a default launch application into event table.
+ * 3. Get default launch application from event table.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. The default launch application was set into event table.
+ * 3. The default launch application uid is right.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-006)
+{
+ // 1. Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ TInt32 defaultLaunchApplication = 0x100058B3;
+ // 2. Add a default launch application into event table.
+ table->AddDefaultLaunchAppForThisTable(defaultLaunchApplication);
+
+ // 3. Get default launch application from event table.
+ TUid retUid;
+ table->GetDefaultLaunchAppForTable(retUid);
+ STIF_ASSERT_EQUALS(retUid.iUid, defaultLaunchApplication);
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-EVENTTABLE-007
+ * @SYMTestCaseDesc Try to add transparent application, get the transparent application.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConEventTable object with table number as 1.
+ * 2. Add a transparent application into event table.
+ * 3. Get transparent application list from event table.
+ * 4. Check transparent application info is right in the list.
+ * 5. Check unadded transparent application info is not in the list.
+ * @SYMTestExpectedResults 1. CRemConEventTable object was successfully constructed.
+ * 2. A transparent application was added into event table.
+ * 3. Transparent application list was gotten.
+ * 4. The transparent application info in the list is right.
+ * 5. Unadded transparent application info is not in the list.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-EVENTTABLE-007)
+{
+ // 1. Construct a CRemConEventTable object with table number as 1.
+ TInt tableNum = 1;
+ table = CRemConEventTable::NewL(tableNum);
+ CleanupStack::PushL(table);
+
+ TInt transparentApplication = 0x100058B3;
+ TInt unaddedApplication = 0x100058B4;
+ // 2. Add a transparent application into event table.
+ table->AddTransparentApplicationForThisTable(transparentApplication);
+
+ // 3. Get transparent application list from event table.
+ RArray transparentApplicationsForThisTable;
+ table->GetTransparentApplicationsForTable(transparentApplicationsForThisTable);
+
+ // 4. Check transparent application info is right in the list.
+ STIF_ASSERT_NOT_EQUALS(transparentApplicationsForThisTable.Find(transparentApplication), KErrNotFound);
+
+ // 5. Check unadded transparent application info is not in the list.
+ STIF_ASSERT_EQUALS(transparentApplicationsForThisTable.Find(unaddedApplication), KErrNotFound);
+
+ CleanupStack::PopAndDestroy();
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-IDLELISTENER-001
+ * @SYMTestCaseDesc Create CRemConIdleListener with mock CRemConTspController. CreateAfterIdleL no error.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConIdleListener object with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL returned with no error.
+ * 3. Destruct CRemConIdleListener object.
+ * @SYMTestExpectedResults 1. A CRemConIdleListener object was constructed with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL returned with no error.
+ * 3. The CRemConIdleListener object was destructed.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-IDLELISTENER-001)
+{
+ CRemConTspController* tspController = CRemConTspController::NewL(ECorrect);
+
+ delete tspController;
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-IDLELISTENER-002
+ * @SYMTestCaseDesc Create CRemConIdleListener with mock CRemConTspController. CreateAfterIdleL leaves with deleteInd not changed.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConIdleListener object with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL leaved with deleteInd not changed.
+ * 3. Destruct CRemConIdleListener object.
+ * @SYMTestExpectedResults 1. A CRemConIdleListener object was constructed with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL leaved with deleteInd not changed.
+ * 3. The CRemConIdleListener object was destructed.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-IDLELISTENER-002)
+{
+ CRemConTspController* tspController = CRemConTspController::NewL(ELeaveNoChange);
+
+ delete tspController;
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-IDLELISTENER-003
+ * @SYMTestCaseDesc Create CRemConIdleListener with mock CRemConTspController. CreateAfterIdleL leaves with deleteInd changed to ETrue.
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Construct a CRemConIdleListener object with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL leaved with deleteInd changed to ETrue.
+ * 3. Destruct CRemConIdleListener object.
+ * @SYMTestExpectedResults 1. A CRemConIdleListener object was constructed with mock CRemConTspController.
+ * 2. CRemConIdleListener::CreateAfterIdleL leaved with deleteInd changed to ETrue.
+ * 3. The CRemConIdleListener object was destructed.
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-IDLELISTENER-003)
+{
+ CRemConTspController* tspController = CRemConTspController::NewL(ELeaveChange);
+
+ delete tspController;
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-TSPEVENTS-001
+ * @SYMTestCaseDesc Create CTspTriggerEventsWatcher and all observers
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Call CTspTriggerEventsWatcher::NewL() function
+ * 2. Delete the created object
+ * @SYMTestExpectedResults 1. Function returns a CTspTriggerEventsWatcher* pointer. All its members
+ * (iAudioClientObserver; iWsEventsObserver; iClientMapperObserver;)are also created.
+ * 2. The object is deleted, and no memory leak
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-TSPEVENTS-001)
+{
+ TestModuleIf().SetBehavior(CTestModuleIf::ETestLeaksHandles);
+ tspstub = CUt_AtspTspEventsStub::NewL();
+ CleanupStack::PushL(tspstub);
+ watcher = CTspTriggerEventsWatcher::NewL(*tspstub);
+ CleanupStack::PushL(watcher);
+
+ STIF_ASSERT_NOT_NULL(tspstub);
+ STIF_ASSERT_NOT_NULL(watcher);
+ STIF_LOG("CTspTriggerEventsWatcher created successfully");
+
+ CleanupStack::PopAndDestroy(2);
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-TSPEVENTS-002
+ * @SYMTestCaseDesc Event which CTspClientMapperObserver watch is triggered
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Create CTspClientMapperObserver object with parameter a pointer to a MTspRulesTriggerObserver type interface
+ * 2. Trigger a Property change which has property category equals to 0x10200C70
+ * 3. Delete the created object
+ * @SYMTestExpectedResults 1. Object created
+ * 2. MTspRulesTriggerObserver::MtrtoEvaluateRoutingRules() is called by the object
+ * 3. Object deleted
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-TSPEVENTS-002)
+{
+ TestModuleIf().SetBehavior(CTestModuleIf::ETestLeaksHandles);
+ tspstub = CUt_AtspTspEventsStub::NewL();
+ CleanupStack::PushL(tspstub);
+ watcher = CTspTriggerEventsWatcher::NewL(*tspstub);
+ CleanupStack::PushL(watcher);
+
+ STIF_ASSERT_NOT_NULL(tspstub);
+ STIF_ASSERT_NOT_NULL(watcher);
+ STIF_LOG("CTspTriggerEventsWatcher created successfully");
+
+ tspstub->After(TTimeIntervalMicroSeconds32(KDefaultWaitTimeInMicroSeconds));
+ tspstub->IssueTspPropertyL();
+ CActiveScheduler::Start();
+
+ STIF_ASSERT_TRUE(tspstub->iIsRunLCalled);
+ STIF_ASSERT_FALSE(tspstub->iIsTimerElapsed);
+ STIF_LOG("Trigger of tsp client mapper is as expected");
+
+ CleanupStack::PopAndDestroy(2);
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-TSPEVENTS-003
+ * @SYMTestCaseDesc Event which CWsEventsObserver watch is triggered
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Create CWsEventsObserver object with parameter a pointer to a MTspRulesTriggerObserver type interface
+ * 2. Trigger a window server event with type of EEventWindowGroupListChanged
+ * 3. Delete the created object
+ * @SYMTestExpectedResults 1. Object created
+ * 2. MTspRulesTriggerObserver::MtrtoEvaluateRoutingRules() is called by the object
+ * 3. Object deleted
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-TSPEVENTS-003)
+{
+ TestModuleIf().SetBehavior(CTestModuleIf::ETestLeaksHandles);
+ tspstub = CUt_AtspTspEventsStub::NewL();
+ CleanupStack::PushL(tspstub);
+ watcher = CTspTriggerEventsWatcher::NewL(*tspstub);
+ CleanupStack::PushL(watcher);
+
+ STIF_ASSERT_NOT_NULL(tspstub);
+ STIF_ASSERT_NOT_NULL(watcher);
+ STIF_LOG("CTspTriggerEventsWatcher created successfully");
+
+ tspstub->After(TTimeIntervalMicroSeconds32(KDefaultWaitTimeInMicroSeconds));
+ tspstub->IssueWsEventL(EEventWindowGroupListChanged);
+ CActiveScheduler::Start();
+
+ STIF_ASSERT_TRUE(tspstub->iIsRunLCalled);
+ STIF_ASSERT_FALSE(tspstub->iIsTimerElapsed);
+ STIF_LOG("Trigger of ws event is as expected");
+
+ CleanupStack::PopAndDestroy(2);
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-TSPEVENTS-004
+ * @SYMTestCaseDesc Event which CWsEventsObserver watch is triggered, but not interested type
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Create CWsEventsObserver object with parameter a pointer to a MTspRulesTriggerObserver type interface
+ * 2. Trigger a window server event which type is not EEventWindowGroupListChanged
+ * 3. Delete the created object
+ * @SYMTestExpectedResults 1. Object created
+ * 2. RunL of CWsEventsObserver is called, but MTspRulesTriggerObserver::MtrtoEvaluateRoutingRules() is not called by the object
+ * 3. Object deleted
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-TSPEVENTS-004)
+{
+ TestModuleIf().SetBehavior(CTestModuleIf::ETestLeaksHandles);
+ tspstub = CUt_AtspTspEventsStub::NewL();
+ CleanupStack::PushL(tspstub);
+ watcher = CTspTriggerEventsWatcher::NewL(*tspstub);
+ CleanupStack::PushL(watcher);
+
+ STIF_ASSERT_NOT_NULL(tspstub);
+ STIF_ASSERT_NOT_NULL(watcher);
+ STIF_LOG("CTspTriggerEventsWatcher created successfully");
+
+ tspstub->After(TTimeIntervalMicroSeconds32(KDefaultWaitTimeInMicroSeconds));
+ tspstub->IssueWsEventL(EEventWindowVisibilityChanged);
+ CActiveScheduler::Start();
+
+ STIF_ASSERT_FALSE(tspstub->iIsRunLCalled);
+ STIF_ASSERT_TRUE(tspstub->iIsTimerElapsed);
+ STIF_LOG("Trigger of not cared ws event is as expected");
+
+ CleanupStack::PopAndDestroy(2);
+}
+
+/**
+ * @SYMTestCaseID GAPS-ATSP-TSPEVENTS-005
+ * @SYMTestCaseDesc Event which CActiveAudioClientObserver watch is triggered
+ * @SYMTestPriority Medium
+ * @SYMTestActions 1. Create CActiveAudioClientObserver object with parameter a pointer to a MTspRulesTriggerObserver type interface
+ * 2. Trigger a Property change which has property category equals to 0x101F457f
+ * 3. Delete the created object
+ * @SYMTestExpectedResults 1. Object created
+ * 2. MTspRulesTriggerObserver::MtrtoEvaluateRoutingRules() is called by the object
+ * 3. Object deleted
+ * @SYMTestType Unit Test
+ * @SYMCreationDate 20-07-2010
+ */
+STIF_TESTDEFINE(GAPS-ATSP-TSPEVENTS-005)
+{
+ TestModuleIf().SetBehavior(CTestModuleIf::ETestLeaksHandles);
+ tspstub = CUt_AtspTspEventsStub::NewL();
+ CleanupStack::PushL(tspstub);
+ CActiveAudioClientObserver* audioObserver = CActiveAudioClientObserver::NewL(*tspstub);
+ CleanupStack::PushL(audioObserver);
+
+ STIF_ASSERT_NOT_NULL(tspstub);
+ STIF_ASSERT_NOT_NULL(watcher);
+ STIF_LOG("CTspTriggerEventsWatcher created successfully");
+
+ tspstub->After(TTimeIntervalMicroSeconds32(KDefaultWaitTimeInMicroSeconds));
+ tspstub->IssueAudioPropertyL();
+ CActiveScheduler::Start();
+
+ STIF_ASSERT_TRUE(tspstub->iIsRunLCalled);
+ STIF_ASSERT_FALSE(tspstub->iIsTimerElapsed);
+ STIF_LOG("Trigger of audio client mapper is as expected");
+
+ CleanupStack::PopAndDestroy(2);
+}
+
+#endif
+/**
+ * END OF TEST CASES SECTION
+ */
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atsptspeventsstub.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/src/ut_atsptspeventsstub.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,114 @@
+/*
+* 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: The stub for testing tsp events
+*
+*/
+
+#include "ut_atsptspeventsstub.h"
+#include "tsptriggerevents.h"
+
+#include
+#include
+
+CUt_AtspTspEventsStub* CUt_AtspTspEventsStub::NewL()
+ {
+ CUt_AtspTspEventsStub* self = new( ELeave ) CUt_AtspTspEventsStub();
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop();
+ return self;
+ }
+
+CUt_AtspTspEventsStub::~CUt_AtspTspEventsStub()
+ {
+ Cancel();
+ }
+
+CUt_AtspTspEventsStub::CUt_AtspTspEventsStub()
+ : CTimer(CActive::EPriorityStandard), iIsRunLCalled(EFalse), iIsTimerElapsed(EFalse)
+ {
+ }
+
+void CUt_AtspTspEventsStub::ConstructL()
+ {
+ CTimer::ConstructL();
+ CActiveScheduler::Add(this);
+ }
+
+void CUt_AtspTspEventsStub::IssueAudioPropertyL()
+ {
+ _LIT(KAppName, "ut_atspaudioproperty.exe");
+ RProcess process;
+ TInt error = process.Create(KAppName, KNullDesC);
+ User::LeaveIfError(error);
+ CleanupClosePushL(process);
+ TRequestStatus status;
+ process.Rendezvous(status);
+ process.Resume();
+ User::WaitForRequest(status);
+ User::LeaveIfError(status.Int());
+
+ CleanupStack::PopAndDestroy();
+ }
+
+void CUt_AtspTspEventsStub::IssueTspPropertyL()
+ {
+ const TUid KTspClientMapperProperty = { 0x10200C70 };
+ const TUint32 KTspClientMapperKeyPlaying = 0x00000001;
+
+ RProperty myProperty;
+ CleanupClosePushL(myProperty);
+ // The value of the property
+ TUint16 array[4] = {10,20,30,40};
+ TBuf16<10> buf;
+ buf.Copy(&array[0],sizeof(array));
+
+ // Attach and set the property
+ User::LeaveIfError(myProperty.Attach(KTspClientMapperProperty, KTspClientMapperKeyPlaying, EOwnerThread));
+ User::LeaveIfError(myProperty.Set(buf));
+
+ // CLose the property
+ CleanupStack::PopAndDestroy();
+ }
+
+void CUt_AtspTspEventsStub::IssueWsEventL(const TInt aType)
+ {
+ RWsSession ws;
+ User::LeaveIfError(ws.Connect());
+ CleanupClosePushL(ws);
+
+ TWsEvent event;
+ event.SetType(aType);
+ ws.SendEventToAllWindowGroups(event);
+
+ ws.Finish();
+ CleanupStack::PopAndDestroy(&ws);
+ }
+
+void CUt_AtspTspEventsStub::MtrtoEvaluateRoutingRules()
+ {
+ iIsRunLCalled = ETrue;
+ CActiveScheduler::Stop();
+ }
+
+void CUt_AtspTspEventsStub::RunL()
+ {
+ iIsTimerElapsed = ETrue;
+ CActiveScheduler::Stop();
+ }
+
+void CUt_AtspTspEventsStub::DoCancel()
+ {
+ CTimer::DoCancel();
+ }
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,22 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: The test application to issue audio property with specified sid.
+*
+*/
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_MMPFILES
+ut_atspaudioproperty.mmp
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/group/ut_atspaudioproperty.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/group/ut_atspaudioproperty.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,35 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: The test application to issue audio property with specified sid.
+*
+*/
+
+TARGET ut_atspaudioproperty.exe
+TARGETTYPE exe
+UID 0 0xA89FA86B
+SECUREID 0x101F457f
+
+USERINCLUDE ..\inc
+OS_LAYER_SYSTEMINCLUDE
+MW_LAYER_SYSTEMINCLUDE
+SYSTEMINCLUDE \epoc32\include\mmf\common
+
+SOURCEPATH ..\src
+SOURCE ut_atspaudioproperty.cpp
+
+LIBRARY euser.lib
+
+#ifdef ENABLE_ABIV2_MODE
+DEBUGGABLE_UDEBONLY
+#endif
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/inc/ut_atspaudioproperty.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/inc/ut_atspaudioproperty.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,30 @@
+/*
+* 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: The test application to issue audio property with specified sid.
+*
+*/
+
+#ifndef UT_ATSPAUDIOPROPERTY_H
+#define UT_ATSPAUDIOPROPERTY_H
+
+// Include Files
+
+#include
+
+// Function Prototypes
+
+GLDEF_C TInt E32Main();
+
+#endif // UT_ATSPAUDIOPROPERTY_H
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/src/ut_atspaudioproperty.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/advancedtspcontroller/tsrc/ut_atsp/ut_atspaudioproperty/src/ut_atspaudioproperty.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,97 @@
+/*
+* 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: The test application to issue audio property with specified sid.
+*
+*/
+
+// Include Files
+
+#include "ut_atspaudioproperty.h"
+#include
+#include
+#include // Console
+
+#include
+#include
+
+// Constants
+
+_LIT(KTextConsoleTitle, "Console");
+_LIT(KTextFailed, " failed, leave code = %d");
+
+// Global Variables
+
+LOCAL_D CConsoleBase* console; // write all messages to this
+
+
+// Local Functions
+
+LOCAL_C void MainL()
+ {
+ RProperty myProperty;
+ CleanupClosePushL(myProperty);
+ // The value of the property
+ TUint16 array[4] = {10,20,30,40};
+ TBuf16<10> buf;
+ buf.Copy(&array[0],sizeof(array));
+
+ // Attach and set the property
+ User::LeaveIfError(myProperty.Attach(KPSUidMMFAudioServer, KAudioPolicyApplicationAudioStatePlaying, EOwnerThread));
+ User::LeaveIfError(myProperty.Set(buf));
+
+ // CLose the property
+ CleanupStack::PopAndDestroy();
+ }
+
+LOCAL_C void DoStartL()
+ {
+ // Create active scheduler (to run active objects)
+ CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
+ CleanupStack::PushL(scheduler);
+ CActiveScheduler::Install(scheduler);
+
+ MainL();
+
+ // Delete active scheduler
+ CleanupStack::PopAndDestroy(scheduler);
+ }
+
+// Global Functions
+
+GLDEF_C TInt E32Main()
+ {
+ // Create cleanup stack
+ __UHEAP_MARK;
+ CTrapCleanup* cleanup = CTrapCleanup::New();
+
+ // Create output console
+ TRAPD(createError, console = Console::NewL(KTextConsoleTitle, TSize(
+ KConsFullScreen, KConsFullScreen)));
+ if (createError)
+ {
+ delete cleanup;
+ return createError;
+ }
+
+ // Run application code inside TRAP harness, wait keypress when terminated
+ TRAPD(mainError, DoStartL());
+ if (mainError)
+ console->Printf(KTextFailed, mainError);
+
+ delete console;
+ delete cleanup;
+ __UHEAP_MARKEND;
+ return KErrNone;
+ }
+
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/hbdeviceinputdialogplugin/hbdeviceinputdialogplugin.pro
--- a/coreapplicationuis/hbdeviceinputdialogplugin/hbdeviceinputdialogplugin.pro Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/hbdeviceinputdialogplugin/hbdeviceinputdialogplugin.pro Thu Oct 07 06:25:45 2010 +0300
@@ -52,8 +52,7 @@
BLD_INF_RULES.prj_exports += \
"$${LITERAL_HASH}include " \
"qmakepluginstubs/HbDeviceInputDialogPlugin.qtplugin /epoc32/data/z/pluginstub/HbDeviceInputDialogPlugin.qtplugin"\
- ".\rom\hbdeviceinputdialogplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(hbdeviceinputdialogplugin.iby)" \
- ".\rom\hbdeviceinputdialogplugin_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(hbdeviceinputdialogplugin_resources.iby)"
+ ".\rom\hbdeviceinputdialogplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(hbdeviceinputdialogplugin.iby)"
}
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin_resources.iby
--- a/coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin_resources.iby Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
- * All rights reserved.
- * This component and the accompanying materials are made available
- * under the terms of "Eclipse Public License v1.0"
- * which accompanies this distribution, and is available
- * at the URL "http://www.eclipse.org/legal/epl-v10.html".
- *
- * Initial Contributors:
- * Nokia Corporation - initial contribution.
- *
- * Contributors:
- *
- * Description:
- *
- */
-
-#ifndef __HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__
-#define __HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__
-
-//this iby is required for language specific things to be exported to Language iby layer
-#include
-
-data=DATAZ_\QT_TRANSLATIONS_DIR\device_input_dialog.qm QT_TRANSLATIONS_DIR\device_input_dialog.qm
-
-
-#endif //__HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/pluginlauncher/pluginlauncher.pro
--- a/coreapplicationuis/powersaveutilities/pluginlauncher/pluginlauncher.pro Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-#
-# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-# All rights reserved.
-# This component and the accompanying materials are made available
-# under the terms of "Eclipse Public License v1.0"
-# which accompanies this distribution, and is available
-# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
-# Initial Contributors:
-# Nokia Corporation - initial contribution.
-#
-# Contributors:
-#
-# Description: cpframework source files
-#
-
-TEMPLATE = app
-TARGET = CpPsmPluginLauncher
-DEPENDPATH += .
-INCLUDEPATH += .
-
-HEADERS += src/*.h
-SOURCES += src/*.cpp
-
-CONFIG += hb
-CONFIG += no_icon
-
-MOC_DIR = moc
-OBJECT_DIR = obj
-RCC_DIR = rcc
-
-symbian: {
- TARGET.UID3 = 0x2002DD0C
- INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE
- TARGET.CAPABILITY = ReadDeviceData WriteDeviceData
- TARGET.EPOCALLOWDLLDATA = 1
-}
-
-LIBS += -lcpframework
-BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \
- "rom/pluginlauncher.iby CORE_MW_LAYER_IBY_EXPORT_PATH(pluginlauncher.iby)"
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/pluginlauncher/rom/pluginlauncher.iby
--- a/coreapplicationuis/powersaveutilities/pluginlauncher/rom/pluginlauncher.iby Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-file=ABI_DIR\BUILD_DIR\CpPsmPluginLauncher.exe \sys\bin\CpPsmPluginLauncher.exe
-CP_UPGRADABLE_APP_REG_RSC(CpPsmPluginLauncher)
-S60_APP_RESOURCE(CpPsmPluginLauncher)
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/pluginlauncher/src/main.cpp
--- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/main.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0""
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#include
-#include
-#include
-#include
-#include "mainview.h"
-#include
-
-int main(int argc, char **argv)
-{
- RDebug::Print( _L("plugin launcher main begin ") );
- HbApplication app(argc, argv);
-
- HbMainWindow mainWindow;
- MainView *mainView = new MainView();
- mainWindow.addView(mainView);
- mainWindow.show();
- RDebug::Print( _L("plugin launcher main end") );
- return app.exec();
-}
-
-//End of File
-
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.cpp
--- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.cpp Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0""
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-#include "mainview.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-
-MainView::MainView(QGraphicsItem *parent/* = 0*/)
-: HbView(parent)
-{
- RDebug::Print( _L("plugin launcher MainView begin ") );
- init();
- RDebug::Print( _L("plugin launcher MainView end ") );
-}
-
-MainView::~MainView()
-{
-RDebug::Print( _L("plugin launcher MainView desructor ") );
-}
-
-void MainView::init()
-{
- RDebug::Print( _L("plugin launcher MainView init begin ") );
- launchInProcessProfileView();
- RDebug::Print( _L("plugin launcher MainView init end ") ) ;
-}
-
-void MainView::launchInProcessProfileView()
-{
- RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView begin ") );
- //static function which launches the psmplugin view
- CpPluginLauncher::launchSettingView("C:/resource/qt/plugins/controlpanel/cppsmplugin.dll","psm_view");
- RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView end "));
-}
-
-
-
-//End of File
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.h
--- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.h Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0""
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-#ifndef MAINVIEW_H
-#define MAINVIEW_H
-
-#include
-
-class MainView : public HbView
-{
- Q_OBJECT
-public:
- explicit MainView(QGraphicsItem *parent = 0);
- virtual ~MainView();
-private:
- void init();
-private slots:
- void launchInProcessProfileView();
-private:
- Q_DISABLE_COPY(MainView)
-};
-
-#endif
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/powersaveutilities.pro
--- a/coreapplicationuis/powersaveutilities/powersaveutilities.pro Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/powersaveutilities/powersaveutilities.pro Thu Oct 07 06:25:45 2010 +0300
@@ -19,8 +19,7 @@
symbian: {
:BLD_INF_RULES.prj_mmpfiles += $$LITERAL_HASH"include \"bsutil/group/bld.inf\""
SUBDIRS = cppsmplugin \
- psmindicatorplugin \
- pluginlauncher
-
+ psmindicatorplugin
+
}
CONFIG += ordered
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/psmindicatorplugin/inc/psmindicator.h
--- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/inc/psmindicator.h Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/powersaveutilities/psmindicatorplugin/inc/psmindicator.h Thu Oct 07 06:25:45 2010 +0300
@@ -26,6 +26,7 @@
#include
#include
#include
+#include
/**
@@ -63,17 +64,20 @@
QString iDisplayName;
QString iIcon;
- QProcess iProcess;
QStringList iIndicatorTypes;
HbTranslator *iTrans;
private slots:
- void processError(QProcess::ProcessError err); // handler for error codes
-
+
+
+ void closeSettingView();
private:
Q_DISABLE_COPY(PsmIndicatorPlugin)
int mError;
+ //Qthighway methodology
+ XQApplicationManager mAppMgr;
+ XQAiwRequest *mRequest;
};
#endif // PSMINDICATOR_H
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/psmindicatorplugin/psmindicatorplugin.pro
--- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/psmindicatorplugin.pro Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/powersaveutilities/psmindicatorplugin/psmindicatorplugin.pro Thu Oct 07 06:25:45 2010 +0300
@@ -33,7 +33,7 @@
pluginstub.sources = psmindicatorplugin.dll
pluginstub.path = /resource/plugins/indicators
DEPLOYMENT += pluginstub
- LIBS += -lcpframework
+ LIBS += -lcpframework -lxqservice
}
BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/powersaveutilities/psmindicatorplugin/src/psmindicator.cpp
--- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/src/psmindicator.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/powersaveutilities/psmindicatorplugin/src/psmindicator.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -26,6 +26,10 @@
#include
#include
#include
+#include
+#include
+#include
+#include
Q_EXPORT_PLUGIN(PsmIndicatorPlugin)
@@ -33,7 +37,7 @@
QString KPsm = "PSM";
QString KCharging = "Charging";
-PsmIndicatorPlugin::PsmIndicatorPlugin():HbIndicatorInterface(IndicatorType,HbIndicatorInterface::NotificationCategory,InteractionActivated)
+PsmIndicatorPlugin::PsmIndicatorPlugin():HbIndicatorInterface(IndicatorType,HbIndicatorInterface::NotificationCategory,InteractionActivated),mRequest(NULL)
{
RDebug::Print( _L("PsmIndicatorPlugin constructor begin ") );
iIndicatorTypes << "com.nokia.hb.powersavemodeplugin/1.0";
@@ -107,15 +111,44 @@
RDebug::Print( _L("PsmIndicatorPlugin handleinteraction begin "));
if (type == InteractionActivated)
{
- RDebug::Print( _L("PsmIndicatorPlugin handleinteraction inside interactionactivated ") );
- QObject::connect( &iProcess, SIGNAL(error(QProcess::ProcessError)),
- this, SLOT(processError(QProcess::ProcessError)));
-
- // Launch the process to show the view.
- iProcess.start("CpPsmPluginLauncher");
- handled = true;
+ RDebug::Print( _L("PsmIndicatorPlugin handleinteractiontype interactionactivated ") );
+ //Qthighway methodology
+ if (mRequest)
+ {
+ delete mRequest;
+ mRequest = NULL;
+ }
+
+ mRequest = mAppMgr.create("com.nokia.symbian.ICpPluginLauncher", "launchSettingView(QString,QVariant)", false);
+
+ if (!mRequest)
+ {
+ return handled;
+ }
+
+
+
+ // Set arguments for request
+ QList args;
+ args << QVariant( "cppsmplugin.dll" );
+ args << QVariant ( "psm_view" );
+ mRequest->setArguments(args);
+
+ mRequest->setSynchronous(false);
+
+ QTimer::singleShot(20* 1000, this, SLOT(closeSettingView()));
+
+ // Make the request
+ if (!mRequest->send())
+ {
+ //report error
+ RDebug::Print( _L("PsmIndicatorPlugin handleinteraction error launching the psmview "));
+ }
+
+
+ handled = true;
- }
+ }
RDebug::Print( _L("PsmIndicatorPlugin handleinteraction end ") );
return handled;
}
@@ -172,7 +205,7 @@
else
{
RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest requestactivate charging ") );
- iDisplayName.append(hbTrId("txt_power_management_dblist_charging"));
+ iDisplayName.append(hbTrId("txt_powermgt_dblist_charging"));
iIcon.append(QString("qtg_mono_flash_charging"));
}
@@ -199,26 +232,10 @@
}
-// ----------------------------------------------------------------------------
-// psmIndicator::processError
-// handle the error conditions returned by the QProcess.
-// ----------------------------------------------------------------------------
-
-void PsmIndicatorPlugin::processError(QProcess::ProcessError err)
- {
- RDebug::Print( _L("PsmIndicatorPlugin processerror begin "));
- switch (err)
- {
- case QProcess::FailedToStart:
- case QProcess::Crashed:
- case QProcess::Timedout:
- case QProcess::ReadError:
- case QProcess::WriteError:
- case QProcess::UnknownError:
- break;
- default:
- break;
- }
+void PsmIndicatorPlugin::closeSettingView()
+{
+ if (mRequest) {
+ delete mRequest;
+ mRequest = NULL;
}
-
-
+}
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/src/ClockRFSPluginTestModule.cpp
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/src/ClockRFSPluginTestModule.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/ClockRFSPluginTestModule/src/ClockRFSPluginTestModule.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -167,6 +167,7 @@
// Delete resources allocated from test methods
Delete();
+ REComSession::FinalClose();
// Delete logger
delete iLog;
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/conf/msgcentrerfsplugintest.cfg
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/conf/msgcentrerfsplugintest.cfg Wed Sep 29 15:24:56 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,244 +0,0 @@
-[Define]
-KMessageCentreRfsPluginUid 537013634
-ENormalRfs 0
-EDeepRfs 1
-EInitRfs 2
-EFooRfs -1
-[Enddefine]
-
-[StifSettings]
-CheckHeapBalance=on
-[EndStifSettings]
-
-[Test]
-title MessageCentreRFSPlugin create and destroy
-create msgcentrerfsplugintest testClass
-print About to create plugin
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-pause 100
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin normal RFS
-create msgcentrerfsplugintest testClass
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings ENormalRfs
-print Normal rfs done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin deep RFS
-create msgcentrerfsplugintest testClass
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EDeepRfs
-print Deep rfs done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin init RFS
-create msgcentrerfsplugintest testClass
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EInitRfs
-print Init rfs done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin foo RFS
-create msgcentrerfsplugintest testClass
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EFooRfs
-print Foo rfs done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin normal RFS get script
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass GetScript ENormalRfs
-print Get script done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin deep RFS get script
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass GetScript EDeepRfs
-print Get script done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin init RFS get script
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass GetScript EInitRfs
-print Get script done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin foo RFS get script
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass GetScript EFooRfs
-print Get script done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin normal RFS custom cmd
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass ExecuteCustomCommand ENormalRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin deep RFS custom cmd
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass ExecuteCustomCommand EDeepRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin init RFS custom cmd
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass ExecuteCustomCommand EInitRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin foo RFS custom cmd
-create msgcentrerfsplugintest testClass
-print About to normal rfs
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass ExecuteCustomCommand EFooRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-
-[Test]
-title MessageCentreRFSPlugin normal RFS full seq
-create msgcentrerfsplugintest testClass
-print About to do seq
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings ENormalRfs
-print Rfs done
-testClass GetScript ENormalRfs
-print Get script done
-testClass ExecuteCustomCommand ENormalRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin deep RFS full seq
-create msgcentrerfsplugintest testClass
-print About to do seq
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EDeepRfs
-print Rfs done
-testClass GetScript EDeepRfs
-print Get script done
-testClass ExecuteCustomCommand EDeepRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin init RFS full seq
-create msgcentrerfsplugintest testClass
-print About to do seq
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EInitRfs
-print Rfs done
-testClass GetScript EInitRfs
-print Get script done
-testClass ExecuteCustomCommand EInitRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
-
-[Test]
-title MessageCentreRFSPlugin foo RFS full seq
-create msgcentrerfsplugintest testClass
-print About to do seq
-testClass CreatePlugin KMessageCentreRfsPluginUid
-print Plugin created
-testClass RestoreFactorySettings EFooRfs
-print Rfs done
-testClass GetScript EFooRfs
-print Get script done
-testClass ExecuteCustomCommand EFooRfs
-print Cmd done
-testClass DestroyPlugin
-print Plugin destroyed
-delete testClass
-[Endtest]
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/conf/ui_msgcentrerfsplugintest.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/conf/ui_msgcentrerfsplugintest.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,244 @@
+[Define]
+KMessageCentreRfsPluginUid 537013634
+ENormalRfs 0
+EDeepRfs 1
+EInitRfs 2
+EFooRfs -1
+[Enddefine]
+
+[StifSettings]
+CheckHeapBalance=on
+[EndStifSettings]
+
+[Test]
+title MessageCentreRFSPlugin create and destroy
+create msgcentrerfsplugintest testClass
+print About to create plugin
+testClass CreatePlugin
+print Plugin created
+pause 100
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin normal RFS
+create msgcentrerfsplugintest testClass
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings ENormalRfs
+print Normal rfs done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin deep RFS
+create msgcentrerfsplugintest testClass
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EDeepRfs
+print Deep rfs done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin init RFS
+create msgcentrerfsplugintest testClass
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EInitRfs
+print Init rfs done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin foo RFS
+create msgcentrerfsplugintest testClass
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EFooRfs
+print Foo rfs done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin normal RFS get script
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass GetScript ENormalRfs
+print Get script done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin deep RFS get script
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass GetScript EDeepRfs
+print Get script done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin init RFS get script
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass GetScript EInitRfs
+print Get script done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin foo RFS get script
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass GetScript EFooRfs
+print Get script done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin normal RFS custom cmd
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass ExecuteCustomCommand ENormalRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin deep RFS custom cmd
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass ExecuteCustomCommand EDeepRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin init RFS custom cmd
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass ExecuteCustomCommand EInitRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin foo RFS custom cmd
+create msgcentrerfsplugintest testClass
+print About to normal rfs
+testClass CreatePlugin
+print Plugin created
+testClass ExecuteCustomCommand EFooRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+
+[Test]
+title MessageCentreRFSPlugin normal RFS full seq
+create msgcentrerfsplugintest testClass
+print About to do seq
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings ENormalRfs
+print Rfs done
+testClass GetScript ENormalRfs
+print Get script done
+testClass ExecuteCustomCommand ENormalRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin deep RFS full seq
+create msgcentrerfsplugintest testClass
+print About to do seq
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EDeepRfs
+print Rfs done
+testClass GetScript EDeepRfs
+print Get script done
+testClass ExecuteCustomCommand EDeepRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin init RFS full seq
+create msgcentrerfsplugintest testClass
+print About to do seq
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EInitRfs
+print Rfs done
+testClass GetScript EInitRfs
+print Get script done
+testClass ExecuteCustomCommand EInitRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
+
+[Test]
+title MessageCentreRFSPlugin foo RFS full seq
+create msgcentrerfsplugintest testClass
+print About to do seq
+testClass CreatePlugin
+print Plugin created
+testClass RestoreFactorySettings EFooRfs
+print Rfs done
+testClass GetScript EFooRfs
+print Get script done
+testClass ExecuteCustomCommand EFooRfs
+print Cmd done
+testClass DestroyPlugin
+print Plugin destroyed
+delete testClass
+[Endtest]
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -25,8 +25,8 @@
../init/msgcentrerfsplugintest.ini /epoc32/winscw/c/testframework/testframework.ini
../init/msgcentrerfsplugintest.ini /epoc32/data/z/system/data/TestFramework.ini
-../conf/msgcentrerfsplugintest.cfg /epoc32/winscw/c/testframework/msgcentrerfsplugintest.cfg
-../conf/msgcentrerfsplugintest.cfg /epoc32/data/z/system/data/msgcentrerfsplugintest.cfg
+../conf/ui_msgcentrerfsplugintest.cfg /epoc32/winscw/c/testframework/ui_msgcentrerfsplugintest.cfg
+../conf/ui_msgcentrerfsplugintest.cfg /epoc32/data/z/system/data/ui_msgcentrerfsplugintest.cfg
../rom/msgcentrerfsplugintest.iby CORE_MW_LAYER_IBY_EXPORT_PATH(msgcentrerfsplugintest.iby)
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/msgcentrerfsplugintest.mmp
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/msgcentrerfsplugintest.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/group/msgcentrerfsplugintest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-10 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -33,5 +33,6 @@
LIBRARY euser.lib
LIBRARY ecom.lib
-LIBRARY stiftestinterface.lib
+LIBRARY StifTestInterface.lib
+LIBRARY StifTestEngine.lib
LIBRARY flogger.lib
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/msgcentrerfsplugintest.h
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/msgcentrerfsplugintest.h Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/msgcentrerfsplugintest.h Thu Oct 07 06:25:45 2010 +0300
@@ -24,8 +24,11 @@
#pragma once
#endif
-#include
#include "trace.h"
+#include
+#include
+#include
+#include
// CONSTANTS
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/traceconfiguration.hrh
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/traceconfiguration.hrh Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/inc/traceconfiguration.hrh Thu Oct 07 06:25:45 2010 +0300
@@ -53,6 +53,8 @@
#undef FUNC_TRACE
#endif
+#define FUNC_TRACE
+
/**
* Timestamp tracing on
*/
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/init/msgcentrerfsplugintest.ini Thu Oct 07 06:25:45 2010 +0300
@@ -1,26 +1,8 @@
#
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-# All rights reserved.
-# This component and the accompanying materials are made available
-# under the terms of the License "Eclipse Public License v1.0"
-# which accompanies this distribution, and is available
-# at the URL "http://www.eclipse.org/legal/epl-v10.html".
-#
-# Initial Contributors:
-# Nokia Corporation - initial contribution.
-#
-# Contributors:
-#
-# Description: This is STIFTestFramework initialization file
-#
-#
-
-
+# This is STIF 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:
@@ -40,6 +22,8 @@
# - 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'.
+# + XML, Test report will be xml type, for example 'TestReport.xml'.
+# Note, that xml format is available only when output is set to FILE.
#
# - File output indicates output source of the test report.
# + FILE, Test report logging to file.
@@ -47,24 +31,47 @@
#
# - 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
+# + APPEND, Continue logging after the old Test report information if
# report exist.
+# - Sets a device reset module's dll name(Reboot).
+# + If Nokia specific reset module is not available or it is not correct one
+# StifHWResetStub module may use as a template for user specific reset
+# module.
+# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation
+# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02
+#
[Engine_Defaults]
-TestReportMode= FullReport # Possible values are:
- # 'Summary', 'Environment', 'TestCases' or 'FullReport'
+TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment',
+ # 'TestCases' or 'FullReport'
-CreateTestReport= YES # Possible values: YES or NO
+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
+TestReportFormat= TXT # Possible values: TXT, HTML or XML
+TestReportOutput= FILE # Possible values: FILE or RDEBUG
+TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+
+DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting
+DisableMeasurement= stifmeasurementdisablenone # Possible values are:
+ # 'stifmeasurementdisablenone', 'stifmeasurementdisableall'
+ # 'stifmeasurementplugin01', 'stifmeasurementplugin02',
+ # 'stifmeasurementplugin03', 'stifmeasurementplugin04',
+ # 'stifmeasurementplugin05' or 'stifbappeaprofiler'
+
+Timeout= 0 # Default timeout value for each test case. In milliseconds
+UITestingSupport= YES # Possible values: YES or NO
+#SeparateProcesses= YES # Possible values: YES or NO (default: NO)
[End_Defaults]
+
+[New_Module]
+ModuleName= testscripter
+TestCaseFile= Z:\TestFramework\ui_msgcentrerfsplugintest.cfg
+[End_Module]
# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@@ -75,11 +82,11 @@
# tags. Module name is specified after ModuleName= tag, like
# ModuleName= XXXXXXXXX
# Modules might have initialisation file, specified as
-# IniFile= YYYYYY
+# IniFile= c:\testframework\YYYYYY
# Modules might have several configuration files, like
-# TestCaseFile= NormalCases.txt
-# TestCaseFile= SmokeCases.txt
-# TestCaseFile= ManualCases.txt
+# TestCaseFile= c:\testframework\NormalCases.txt
+# TestCaseFile= c:\testframework\SmokeCases.txt
+# TestCaseFile= c:\testframework\ManualCases.txt
# (TestCaseFile is synonym for old term ConfigFile)
@@ -89,10 +96,6 @@
# In the simplest case it is enough to specify only the
# name of the test module when adding new test module
-[New_Module]
-ModuleName= TestScripter
-TestCaseFile= Z:\testframework\msgcentrerfsplugintest.cfg
-[End_Module]
# Load testmoduleXXX, optionally with initialization file and/or test case files
@@ -100,12 +103,12 @@
#ModuleName= testmodulexxx
#TestModuleXXX used initialization file
-#IniFile= init.txt
+#IniFile= c:\testframework\init.txt
#TestModuleXXX used configuration file(s)
-#TestCaseFile= testcases1.cfg
-#TestCaseFile= testcases2.cfg
-#TestCaseFile= manualtestcases.cfg
+#TestCaseFile= c:\testframework\testcases1.cfg
+#TestCaseFile= c:\testframework\testcases2.cfg
+#TestCaseFile= c:\testframework\manualtestcases.cfg
#[End_Module]
# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@@ -113,7 +116,7 @@
# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-# Set STIFTestFramework logging overwrite parameters for Logger.
+# Set STIF 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.
#
@@ -158,34 +161,59 @@
# + 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
+# + 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.
#
+# - Will write log file in unicode format.
+# + YES, Log file will be written in unicode format
+# + NO, Log will be written as normal, not unicode, file.
+#
[Logger_Defaults]
-#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
+#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
+#NOTE: TestEngine and TestServer logging settings cannot change here
-#CreateLogDirectories= YES # Possible values: YES or NO
+#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
+#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
+#HardwareFormat= HTML # Possible values: TXT or HTML
+#HardwareOutput= FILE # Possible values: FILE or RDEBUG
-#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+#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
+#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
+#FileUnicode= YES # Possible values: YES or NO
+#AddTestCaseTitle= YES # Possible values: YES or NO
[End_Logger_Defaults]
# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set filters to be used by ConsoleUI.
+# If you want to use filter with ConsoleUI, simply remove comments
+# from section below and provide valid filter entries.
+# Each filter line has to start with "filter= " keyword.
+# Filter can contain special wildcard characters:
+# * which stands for none or any literal;
+# ? which stands for single character.
+# Filters are not case-sensitive.
+
+#[Filters]
+#filter= *math*
+#filter= *radio*
+#[End_Filters]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
# End of file
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/rom/msgcentrerfsplugintest.iby
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/rom/msgcentrerfsplugintest.iby Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/rom/msgcentrerfsplugintest.iby Thu Oct 07 06:25:45 2010 +0300
@@ -22,7 +22,7 @@
//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini
-data=\epoc32\data\z\system\data\msgcentrerfsplugintest.cfg \testframework\msgcentrerfsplugintest.cfg
+data=\epoc32\data\z\system\data\ui_msgcentrerfsplugintest.cfg \testframework\ui_msgcentrerfsplugintest.cfg
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/src/msgcentrerfsplugintest.cpp
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/src/msgcentrerfsplugintest.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/msgcentrerfsplugintest/src/msgcentrerfsplugintest.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -126,16 +126,13 @@
TInt CMsgCentreRfsPluginTest::CreatePlugin( CStifItemParser& aItem )
{
FUNC_LOG;
+
+ STIF_ASSERT_NOT_LEAVES(iPlugin = CRFSPlugin::NewL( TUid::Uid( 0x20022D82 ) ) );
+ STIF_ASSERT_NOT_NULL( iPlugin );
+
+ return KErrNone;
- TUint uid(0);
- TInt ret = aItem.GetNextInt( uid );
- if ( ret == KErrNone )
- {
- TRAP(ret, iPlugin = CRFSPlugin::NewL( TUid::Uid( uid ) ) );
- }
- ERROR( ret, "Create plugin failed");
- LOG_1("CreatePlugin %d", ret);
- return ret;
+
}
// ---------------------------------------------------------
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp
--- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/group/secureformattertest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-10 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -38,8 +38,6 @@
LIBRARY efsrv.lib
LIBRARY euser.lib
-LIBRARY stiftestinterface.lib
+LIBRARY StifTestInterface.lib
MACRO __FUNC_TRACE__
-
-UNPAGED
diff -r 1505405bc645 -r b01c07dfcf84 coreapplicationuis/sensordatacompensatorplugin/tsrc/sensordatacompensatorplgtest/group/sensordatacompensatorplgtest.mmp
--- a/coreapplicationuis/sensordatacompensatorplugin/tsrc/sensordatacompensatorplgtest/group/sensordatacompensatorplgtest.mmp Wed Sep 29 15:24:56 2010 +0300
+++ b/coreapplicationuis/sensordatacompensatorplugin/tsrc/sensordatacompensatorplgtest/group/sensordatacompensatorplgtest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-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"
@@ -34,5 +34,5 @@
MW_LAYER_SYSTEMINCLUDE
LIBRARY euser.lib
-LIBRARY stiftestinterface.lib
+LIBRARY StifTestInterface.lib
diff -r 1505405bc645 -r b01c07dfcf84 package_definition.xml
--- a/package_definition.xml Wed Sep 29 15:24:56 2010 +0300
+++ b/package_definition.xml Thu Oct 07 06:25:45 2010 +0300
@@ -162,8 +162,7 @@
-
-
+
@@ -209,6 +208,9 @@
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/SplashScreen/src/SplashScreen.cpp
--- a/startupservices/SplashScreen/src/SplashScreen.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/startupservices/SplashScreen/src/SplashScreen.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -391,6 +391,8 @@
CWindow::ConstructL(aRect, aParent);
TParse* fp = new(ELeave) TParse();
+ CleanupStack::PushL( fp );
+
fp->Set(KSplashBitmapName, &KDC_APP_BITMAP_DIR, NULL);
TRACES1("CMainWindow::ConstructL(): Load Bitmap from %S", &fp->FullName());
@@ -414,7 +416,8 @@
TRACES("CMainWindow::ConstructL(): Image not found");
}
- delete fp;
+
+ CleanupStack::PopAndDestroy(fp);
TRACES("CMainWindow::ConstructL(): End");
}
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/src/StartupAppUi.cpp
--- a/startupservices/Startup/src/StartupAppUi.cpp Wed Sep 29 15:24:56 2010 +0300
+++ b/startupservices/Startup/src/StartupAppUi.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -854,6 +854,7 @@
iOfflineModeQueryShown = ETrue;
CHbDeviceMessageBoxSymbian *aMessageBox = NULL;
aMessageBox = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EQuestion);
+ CleanupStack::PushL(aMessageBox);
_LIT(KText, "Continue using phone in Offline mode?");
aMessageBox->SetTextL(KText);
_LIT(KAcceptText, "Yes");
@@ -864,6 +865,8 @@
//define the selection button to hold user's option choice
CHbDeviceMessageBoxSymbian::TButtonId selection;
selection = aMessageBox->ExecL();
+
+ CleanupStack::PopAndDestroy(aMessageBox);
if ( selection == CHbDeviceMessageBoxSymbian::EAcceptButton )
{
TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode query: YES -> Boot to Offline");
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,29 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Build information file for sf/mw/appsupport/startupservices/Startup/syserrcmd/tsrc tests.
+*
+*/
+
+#include
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_TESTEXPORTS
+
+PRJ_MMPFILES
+#include "../syserrcmdtest/group/bld.inf"
+#include "../syserrcmdtestsstub/group/bld.inf"
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/inc/syserrcmdtestsstub.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/inc/syserrcmdtestsstub.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,44 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Declaration of SsmLangSelCmdTestStub class.
+*
+*/
+
+#ifndef SYSERRCMDTESTSSTUB_H
+#define SYSERRCMDTESTSSTUB_H
+
+#include
+
+class CSsmCustomCommandEnv;
+class RFs;
+/**
+* Stub class for syserrcmd tests
+*
+*/
+NONSHARABLE_CLASS( SysErrCmdTestsStub )
+ {
+public:
+ /**
+ * Methods for mapping p&s, cenrep and feature Uids
+ *
+ * @param aUid The Uid to map
+ * @return The mapped Uid
+ */
+
+ IMPORT_C static CSsmCustomCommandEnv* CustomCommandEnvStubL( RFs& aRfs );
+
+ };
+
+#endif // SYSERRCMDTESTSSTUB_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/bwins/syserrcmdtestu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/bwins/syserrcmdtestu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCSysErrCmdTest@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CSysErrCmdTest * LibEntryL(class CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/conf/syserrcmdtest.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/conf/syserrcmdtest.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,79 @@
+[Define]
+// Add general definitions here
+[Enddefine]
+
+[StifSettings]
+// Add stif settings here
+CheckHeapBalance= on
+[EndStifSettings]
+
+// ---------------------------------------------------------------------------
+// Test cases for Create and destroy
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Create and destroy
+create syserrcmdtest testClass
+testClass CreateAndDestroy
+pause 1000
+delete testClass
+[Endtest]
+
+// ---------------------------------------------------------------------------
+// Test cases for init and close
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Init and close
+create syserrcmdtest testClass
+testClass InitAndClose
+pause 1000
+delete testClass
+[Endtest]
+// ---------------------------------------------------------------------------
+// Test cases for execute
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Execute
+create syserrcmdtest testClass
+testClass Execute
+pause 1000
+delete testClass
+[Endtest]
+
+// ---------------------------------------------------------------------------
+// Test cases for execute and cancel
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Execute and cancel
+create syserrcmdtest testClass
+testClass ExecuteCancel
+pause 1000
+delete testClass
+[Endtest]
+
+// ---------------------------------------------------------------------------
+// Test cases for execute after global note
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Execute after global note
+create syserrcmdtest testClass
+testClass ExecuteAfterGlobalNote
+pause 1000
+delete testClass
+[Endtest]
+
+// ---------------------------------------------------------------------------
+// Test cases for execute after Ui service global note
+// ---------------------------------------------------------------------------
+
+[Test]
+title Test Execute after Ui service global note
+create syserrcmdtest testClass
+testClass ExecuteAfterUiServiceGlobalNote
+pause 1000
+delete testClass
+[Endtest]
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/eabi/syserrcmdtestu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/eabi/syserrcmdtestu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,30 @@
+/*
+* 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:
+* Build information file for syserrcmdtest tests.
+*
+*/
+
+#include
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_EXPORTS
+../init/syserrcmdtest.ini /epoc32/winscw/c/testframework/syserrcmdtest.ini
+../conf/syserrcmdtest.cfg /epoc32/winscw/c/testframework/syserrcmdtest.cfg
+
+PRJ_MMPFILES
+syserrcmdtest.mmp
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envrecall.cmd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envrecall.cmd Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,28 @@
+@echo off
+REM Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+REM All rights reserved.
+REM This component and the accompanying materials are made available
+REM under the terms of "Eclipse Public License v1.0"
+REM which accompanies this distribution, and is available
+REM at the URL "http://www.eclipse.org/legal/epl-v10.html".
+REM
+REM Initial Contributors:
+REM Nokia Corporation - initial contribution.
+REM
+REM Contributors:
+REM
+REM Description: Environment setup for ssmlangselcmd tests.
+REM
+REM
+@echo on
+
+
+@echo Recall environment for syserrcmdtest...
+@echo Cleaning up stub...
+pushd ..\..\ssmlangselcmdteststub\group
+call bldmake bldfiles
+call abld test reallyclean -k
+popd
+
+@echo Recall environment for syserrcmdtest... Finished.
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envsetup.cmd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envsetup.cmd Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,28 @@
+@echo off
+REM Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+REM All rights reserved.
+REM This component and the accompanying materials are made available
+REM under the terms of "Eclipse Public License v1.0"
+REM which accompanies this distribution, and is available
+REM at the URL "http://www.eclipse.org/legal/epl-v10.html".
+REM
+REM Initial Contributors:
+REM Nokia Corporation - initial contribution.
+REM
+REM Contributors:
+REM
+REM Description: Environment setup for ssmlangselcmd tests.
+REM
+REM
+@echo on
+
+
+@echo Setup environment for syserrcmdtest...
+@echo Setting up stub...
+pushd ..\..\syserrcmdtestsstub\group
+call bldmake bldfiles
+call abld test reallyclean
+call abld test build
+popd
+@echo Setup environment for syserrcmdtest... Finished.
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,49 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Project definition file for syserrcmdtest.
+*
+*/
+
+#include
+
+TARGET syserrcmdtest.dll
+TARGETTYPE dll
+
+UID 0x1000008D 0x101FB3E7
+VENDORID VID_DEFAULT
+CAPABILITY ALL -TCB
+
+SOURCEPATH ../src
+SOURCE syserrcmdtest.cpp
+
+USERINCLUDE ../inc
+USERINCLUDE ../../inc
+USERINCLUDE ../../../inc
+
+MW_LAYER_SYSTEMINCLUDE
+
+OS_LAYER_SYSTEMINCLUDE
+
+LIBRARY syserrcmd.lib
+LIBRARY syserrcmdtestsstub.lib
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY efsrv.lib
+//LIBRARY aknnotify.lib
+//LIBRARY akncapserverclient.lib
+LIBRARY apparc.lib
+LIBRARY eikcore.lib
+//LIBRARY component_under_test.lib
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,34 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+;Languages
+&EN
+
+#{"syserrcmdtest"},(0x101FB3E7),1,0,0,TYPE=SA
+
+;Localised Vendor name
+%{"syserrcmdtest EN"}
+
+; Vendor name
+: "syserrcmdtest"
+
+"\epoc32\release\armv5\urel\syserrcmdtest.dll"-"c:\sys\bin\syserrcmdtest.dll"
+"..\init\syserrcmdtest.ini"-"c:\testframework\syserrcmdtest.ini"
+"..\conf\syserrcmdtest.cfg"-"c:\testframework\syserrcmdtest.cfg"
+
+; Stub for tests
+"\epoc32\release\armv5\urel\syserrcmdtestsstub.dll"-"c:\sys\bin\syserrcmdtestsstub.dll"
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/asyncrequesthandler.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/asyncrequesthandler.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,220 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+#ifndef ASYNCREQUESTHANDLER_H
+#define ASYNCREQUESTHANDLER_H
+
+// SYSTEM INCLUDE FILES
+#include
+
+// DATA TYPES
+_LIT( KPanicCat, "ASYNCREQUESTHANDLER" );
+
+/** Panic codes */
+enum TArhPanicCodes
+ {
+ EArhNone,
+ EArhRequestPending
+ };
+
+// CLASS DECLARATION
+
+/**
+ * A template class for handling asynchronous requests.
+ *
+ * @lib None.
+ * @since S60 TB9.2
+ */
+template
+NONSHARABLE_CLASS( CAsyncRequestHandler ): public CActive
+ {
+public:
+
+ // TYPE DEFINTIONS
+
+ /** HandleIssueRequest callback */
+ typedef void ( T::*HandleIssueRequest )( TRequestStatus& );
+
+ /** HandleRunL callback */
+ typedef void ( T::*HandleRunL )( TInt );
+
+ /** HandleRunError callback */
+ typedef TInt ( T::*HandleRunError )( TInt );
+
+ /** HandleDoCancel callback */
+ typedef void ( T::*HandleDoCancel )();
+
+ // DATA TYPES
+
+ /** Request type */
+ enum TAsyncRequestType
+ {
+ ERequestOneShot,
+ ERequestContinuous
+ };
+
+public:
+
+ /**
+ * Symbian two phased constructor.
+ *
+ * @since S60 TB9.2
+ * @param None.
+ * @return CAsyncRequestHandler*
+ */
+ static CAsyncRequestHandler* NewL( T& aPtr,
+ HandleIssueRequest aHandleIssueRequest,
+ HandleRunL aHandleRunL,
+ HandleRunError aHandleRunError,
+ HandleDoCancel aHandleDoCancel,
+ TAsyncRequestType aType = ERequestContinuous )
+ {
+ CAsyncRequestHandler* self = CAsyncRequestHandler::NewLC( aPtr,
+ aHandleIssueRequest,
+ aHandleRunL,
+ aHandleRunError,
+ aHandleDoCancel,
+ aType );
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+ /**
+ * Symbian two phased constructor.
+ * Instance is left in the cleanup stack.
+ *
+ * @since S60 TB9.2
+ * @param None.
+ * @return CAsyncRequestHandler*
+ */
+ static CAsyncRequestHandler* NewLC( T& aPtr,
+ HandleIssueRequest aHandleIssueRequest,
+ HandleRunL aHandleRunL,
+ HandleRunError aHandleRunError,
+ HandleDoCancel aHandleDoCancel,
+ TAsyncRequestType aType = ERequestContinuous )
+ {
+ CAsyncRequestHandler* self = new CAsyncRequestHandler( aPtr,
+ aHandleIssueRequest,
+ aHandleRunL,
+ aHandleRunError,
+ aHandleDoCancel,
+ aType );
+ CleanupStack::PushL( self );
+ return self;
+ }
+
+ /**
+ * C++ destructor.
+ */
+ virtual ~CAsyncRequestHandler()
+ {
+ Cancel();
+ }
+
+public: // New methods
+
+ /**
+ * Issues a new request.
+ * Panic will occur if there already is a request pending.
+ *
+ * @since TB9.2
+ * @param None.
+ * @return None.
+ */
+ void IssueRequest()
+ {
+ __ASSERT_DEBUG( !IsActive(),
+ User::Panic( KPanicCat, EArhRequestPending ) );
+
+ // Call the HandleIssueRequest from the template class and set active
+ ( iPtr.*iHandleIssueRequest )( iStatus );
+ SetActive();
+ }
+
+protected: // From base classes
+
+ // @see CActive
+ void RunL()
+ {
+ // Check result and issue request again
+ TInt status = iStatus.Int();
+ if( iType == ERequestContinuous )
+ {
+ IssueRequest();
+ }
+
+ // Call the HandleRunL from the template class
+ ( iPtr.*iHandleRunL )( status );
+ }
+
+ // @see CActive
+ TInt RunError( TInt aError )
+ {
+ // Call the HandleRunError from the template class
+ TInt err = ( iPtr.*iHandleRunError )( aError );
+ return err;
+ }
+
+ // @see CActive
+ void DoCancel()
+ {
+ // Call the HandleDoCancel from the template class
+ ( iPtr.*iHandleDoCancel )();
+ }
+
+private:
+
+ CAsyncRequestHandler( T& aPtr,
+ HandleIssueRequest aHandleIssueRequest,
+ HandleRunL aHandleRunL,
+ HandleRunError aHandleRunError,
+ HandleDoCancel aHandleDoCancel,
+ TAsyncRequestType aType = ERequestContinuous ):
+ CActive( CActive::EPriorityStandard ),
+ iPtr( aPtr ),
+ iHandleIssueRequest( aHandleIssueRequest ),
+ iHandleRunL( aHandleRunL ),
+ iHandleRunError( aHandleRunError ),
+ iHandleDoCancel( aHandleDoCancel ),
+ iType( aType )
+ {
+ CActiveScheduler::Add( this );
+ }
+
+private: // Data
+
+ /** Pointer to the template class */
+ T& iPtr;
+
+ /** HandleIssueRequest function pointer */
+ HandleIssueRequest iHandleIssueRequest;
+
+ /** HandleRunL function pointer */
+ HandleRunL iHandleRunL;
+
+ /** HandleRunError function pointer */
+ HandleRunError iHandleRunError;
+
+ /** HandleDoCancel function pointer */
+ HandleDoCancel iHandleDoCancel;
+
+ /** Request type */
+ TAsyncRequestType iType;
+ };
+
+#endif // ASYNCREQUESTHANDLER_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/syserrcmdtest.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/syserrcmdtest.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,147 @@
+/*
+* 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:
+* Csyserrcmdtest class declaration.
+*
+*/
+
+
+#ifndef SYSERRCMDTEST_H
+#define SYSERRCMDTEST_H
+
+#if defined (_MSC_VER) && (_MSC_VER >= 1000)
+#pragma once
+#endif
+
+// SYSTEM INCLUDES
+#include
+
+#include "asyncrequesthandler.h"
+
+// FORWARD DECLARATIONS
+class TCaseInfo;
+class CSysErrCmdTest;
+class MSsmCustomCommand;
+class CSsmCustomCommandEnv;
+
+// DESCRIPTION
+// This a Test Module interface template
+// that does not really do anything.
+typedef TInt ( CSysErrCmdTest::*TestFunction )( TTestResult& );
+
+NONSHARABLE_CLASS( CSysErrCmdTest ) : public CScriptBase
+ {
+public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CSysErrCmdTest* NewL( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CSysErrCmdTest();
+
+public: // Functions from base classes
+
+ TInt RunMethodL( CStifItemParser& aItem );
+
+protected: // New functions
+
+ TInt CreateAndDestroyL( CStifItemParser& aItem );
+ TInt InitAndCloseL( CStifItemParser& aItem );
+ TInt ExecuteL( CStifItemParser& aItem );
+ TInt ExecuteCancelL( CStifItemParser& aItem );
+ TInt ShowAfterAknGlobalNoteL( CStifItemParser& aItem );
+ TInt ShowAfterUiServerGlobalNoteL( CStifItemParser& aItem );
+
+ /** HandleIssueRequest callback */
+ void HandleIssueRequest( TRequestStatus& );
+
+ /** HandleRunL callback */
+ void HandleRunL( TInt );
+
+ /** HandleRunError callback */
+ TInt HandleRunError( TInt );
+
+ /** HandleDoCancel callback */
+ void HandleDoCancel();
+
+private:
+
+ /**
+ * C++ default constructor.
+ */
+ CSysErrCmdTest( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * By default Symbian OS constructor is private.
+ */
+ void ConstructL();
+
+ /**
+ * Function returning test case name and pointer to test case function
+ */
+ const TCaseInfo Case( const TInt aCaseNumber ) const;
+
+private: // Data
+
+ TestFunction iMethod;
+
+ CAsyncRequestHandler* iExecuteHandler;
+
+ RFs iFs;
+
+ MSsmCustomCommand* iSysErrCmd;
+
+ CSsmCustomCommandEnv* iCustCmdEnvStub;
+
+ TInt iExecutionResult;
+ };
+
+// Function pointer related internal definitions
+
+// Hack around known GCC bug.
+#ifndef __GCC32__
+ #define GETPTR
+#else
+ #define GETPTR &
+#endif
+
+
+// An internal structure containing a test case name and
+// the pointer to function doing the test
+class TCaseInfoInternal
+ {
+ public:
+ const TText* iCaseName;
+ TestFunction iMethod;
+ };
+
+// An internal structure containing a test case name and
+// the pointer to function doing the test
+class TCaseInfo
+ {
+ public:
+ TPtrC iCaseName;
+ TestFunction iMethod;
+
+ TCaseInfo( const TText* a ) : iCaseName( ( TText* ) a )
+ {
+ };
+ };
+
+#endif // SYSERRCMDTEST_H
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/trace.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/trace.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,596 @@
+/*
+* 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:
+* Trace macro definitions.
+*
+*/
+
+#ifndef TRACE_H
+#define TRACE_H
+
+#include // TCleanupItem
+#include "traceconfiguration.hrh"
+
+#ifdef TRACE_INTO_FILE
+#include // RFileLogger
+#else
+#include // RDebug
+#endif
+
+//-----------------------------------------------------------------------------
+// Constants
+//-----------------------------------------------------------------------------
+//
+
+// NOTE!
+// Replace all COMPONENT_NAME occurnaces with your own component / module name.
+
+/**
+* Prefix trace macro to complete tracing with component name.
+* Returns TDesC which can be used directly with RDebug or RFileLogger.
+*/
+#define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[syserrcmdtest]: " L##aMsg )
+
+/**
+* Prefix error trace
+*/
+#define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg )
+
+/**
+* Prefix info trace.
+*/
+#define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg )
+
+/**
+* Prefix macro for strings
+*/
+#define _PREFIX_CHAR( aMsg ) (const char*)"[syserrcmdtest]: " ##aMsg
+
+/**
+* Define needed directories if TRACE_INTO_FILE macro in use
+*/
+#ifdef TRACE_INTO_FILE
+
+ _LIT( KDir, "syserrcmdtest" );
+ _LIT( KFile, "syserrcmdtest_log.txt" );
+ _LIT( KFullPath, "c:\\logs\\syserrcmdtest\\" );
+
+#endif
+
+//-----------------------------------------------------------------------------
+// Error trace macros
+//-----------------------------------------------------------------------------
+//
+#ifdef ERROR_TRACE
+
+ /**
+ * Error trace definitions.
+ */
+ #ifdef TRACE_INTO_FILE
+
+ #define ERROR( aErr, aMsg )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr );\
+ }\
+ }
+ #define ERROR_1( aErr, aMsg, aP1 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1 );\
+ }\
+ }
+ #define ERROR_2( aErr, aMsg, aP1, aP2 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\
+ }\
+ }
+ #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\
+ }\
+ }
+ #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4 );\
+ }\
+ }
+ #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\
+ }\
+ }
+ #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\
+ }\
+ }
+
+ #else//TRACE_INTO_FILE not defined
+
+ #define ERROR( aErr, aMsg )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr );\
+ }\
+ }
+ #define ERROR_1( aErr, aMsg, aP1 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1 );\
+ }\
+ }
+ #define ERROR_2( aErr, aMsg, aP1, aP2 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\
+ }\
+ }
+ #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\
+ }\
+ }
+ #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4 );\
+ }\
+ }
+ #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\
+ }\
+ }
+ #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\
+ {\
+ if( aErr < KErrNone )\
+ {\
+ RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5, aP6 );\
+ }\
+ }
+
+ #endif//TRACE_INTO_FILE
+
+ #define ERROR_GEN( aMsg ) ERROR( KErrGeneral, aMsg )
+ #define ERROR_GEN_1( aMsg, aP1 ) ERROR_1( KErrGeneral, aMsg, aP1 )
+ #define ERROR_GEN_2( aMsg, aP1, aP2 ) ERROR_2( KErrGeneral, aMsg, aP1, aP2 )
+ #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) ERROR_3( KErrGeneral, aMsg, aP1, aP3 )
+ #define ERROR_GEN_4( aMsg, aP1, aP2, aP3, aP4 ) ERROR_4( KErrGeneral, aMsg, aP1, aP3, aP4 )
+ #define ERROR_GEN_5( aMsg, aP1, aP2, aP3, aP4, aP5 ) ERROR_5( KErrGeneral, aMsg, aP1, aP3, aP4, aP5 )
+ #define ERROR_GEN_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 ) ERROR_6( KErrGeneral, aMsg, aP1, aP3, aP4, aP5, aP6 )
+
+#else//ERROR_TRACE not defined
+
+ #define ERROR( aErr, aMsg )
+ #define ERROR_1( aErr, aMsg, aP1 )
+ #define ERROR_2( aErr, aMsg, aP1, aP2 )
+ #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )
+ #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 )
+ #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 )
+ #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )
+
+ #define ERROR_GEN( aMsg )
+ #define ERROR_GEN_1( aMsg, aP1 )
+ #define ERROR_GEN_2( aMsg, aP1, aP2 )
+ #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 )
+ #define ERROR_GEN_4( aMsg, aP1, aP2, aP3, aP4 )
+ #define ERROR_GEN_5( aMsg, aP1, aP2, aP3, aP4, aP5 )
+ #define ERROR_GEN_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )
+
+#endif//ERROR_TRACE
+
+//-----------------------------------------------------------------------------
+// TRAP and trace with error macro
+//-----------------------------------------------------------------------------
+//
+#define TRAP_ERROR( aErr, aFunction )\
+ {\
+ TRAP( aErr, aFunction );\
+ TPtrC8 file( ( TText8* )__FILE__ );\
+ ERROR_2( aErr, "Trapped leave in '%S' line %d", &file, __LINE__);\
+ }
+
+//-----------------------------------------------------------------------------
+// Info trace macros
+//-----------------------------------------------------------------------------
+//
+#ifdef INFO_TRACE
+
+ /**
+ * Info log message definitions.
+ */
+ #ifdef TRACE_INTO_FILE
+
+ #define INFO( aMsg )\
+ {\
+ RFileLogger::Write( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ) );\
+ }
+ #define INFO_1( aMsg, aP1 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1 );\
+ }
+ #define INFO_2( aMsg, aP1, aP2 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2 );\
+ }
+ #define INFO_3( aMsg, aP1, aP2, aP3 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\
+ }
+ #define INFO_4( aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4 );\
+ }
+ #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5 );\
+ }
+ #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\
+ {\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5, aP6 );\
+ }
+
+ #else//TRACE_INTO_FILE not defined
+
+ #define INFO( aMsg )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ) );\
+ }
+ #define INFO_1( aMsg, aP1 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1 );\
+ }
+ #define INFO_2( aMsg, aP1, aP2 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2 );\
+ }
+ #define INFO_3( aMsg, aP1, aP2, aP3 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\
+ }
+ #define INFO_4( aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4 );\
+ }
+ #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5 );\
+ }
+ #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\
+ {\
+ RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5, aP6 );\
+ }
+
+ #endif//TRACE_INTO_FILE
+
+#else//INFO_TRACE not defined
+
+ #define INFO( aMsg )
+ #define INFO_1( aMsg, aP1 )
+ #define INFO_2( aMsg, aP1, aP2 )
+ #define INFO_3( aMsg, aP1, aP2, aP3 )
+ #define INFO_4( aMsg, aP1, aP2, aP3, aP4 )
+ #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 )
+ #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )
+
+#endif//INFO_TRACE
+
+//-----------------------------------------------------------------------------
+// Trace current client thread name and process id
+//-----------------------------------------------------------------------------
+//
+#ifdef CLIENT_TRACE
+
+ #define CLIENT_PROCESS\
+ {\
+ CLIENT_PROCESS_PREFIX( "" );\
+ }
+
+ #define CLIENT_PROCESS_PREFIX( aPrefix )\
+ {\
+ RProcess process;\
+ TPtrC name( process.Name() );\
+ TSecureId sid( process.SecureId() );\
+ TPtrC prefix( _S( aPrefix ) );\
+ if( prefix.Length() )\
+ {\
+ INFO_3( "%S: CLIENT - Name: [%S], Sid: [0x%x]", &prefix, &name, sid.iId );\
+ }\
+ else\
+ {\
+ INFO_2( "CLIENT - Name: [%S], Sid: [0x%x]", &name, sid.iId );\
+ }\
+ process.Close();\
+ }
+
+ #define CLIENT_MESSAGE( aMsg )\
+ {\
+ CLIENT_MESSAGE_PREFIX( "", aMsg );\
+ }
+
+ #define CLIENT_MESSAGE_PREFIX( aPrefix, aMsg )\
+ {\
+ RThread thread;\
+ TInt err = aMsg.Client( thread );\
+ if( err == KErrNone )\
+ {\
+ RProcess process;\
+ err = thread.Process( process );\
+ if( err == KErrNone )\
+ {\
+ TPtrC threadName( thread.Name() );\
+ TUid processUid( process.SecureId() );\
+ TPtrC prefix( _S( aPrefix ) );\
+ if( prefix.Length() )\
+ {\
+ INFO_4( "%S: MSG - Name: [%S], Sid: [0x%x], Message ID: [%d]",\
+ &prefix,\
+ &threadName,\
+ processUid,\
+ aMsg.Function() );\
+ }\
+ else\
+ {\
+ INFO_3( "MSG - Name: [%S], Sid: [0x%x], Message ID: [%d]",\
+ &threadName,\
+ processUid,\
+ aMsg.Function() );\
+ }\
+ }\
+ process.Close();\
+ }\
+ thread.Close();\
+ }
+
+#else
+
+ #define CLIENT_PROCESS
+ #define CLIENT_PROCESS_PREFIX( aPrefix )
+ #define CLIENT_MESSAGE( aMsg )
+ #define CLIENT_MESSAGE_PREFIX( aPrefix, aMsg )
+
+#endif
+
+//-----------------------------------------------------------------------------
+// Function trace macros
+//-----------------------------------------------------------------------------
+//
+#ifdef FUNC_TRACE
+
+ /**
+ * Function logging definitions.
+ */
+ #ifdef TRACE_INTO_FILE
+
+ #define FUNC( aMsg, aP1 )\
+ {\
+ TPtrC8 trace( _S8( aMsg ) );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, trace, aP1 );\
+ }\
+
+ #else//TRACE_INTO_FILE not defined
+
+ #define FUNC( aMsg, aP1 )\
+ {\
+ RDebug::Printf( aMsg, aP1 );\
+ }\
+
+ #endif//TRACE_INTO_FILE
+
+ /**
+ * Function trace helper class.
+ *
+ * NOTE:
+ * LC -methods cannot be trapped. Therefore if LC -method leaves
+ * END trace is used instead of LEAVE trace.
+ * If you have an idea how to round this problem please tell.
+ */
+ _LIT8( KFuncNameTerminator, "(" );
+ _LIT8( KFuncLeavePatternL, "L" );
+ class TFuncLog
+ {
+ public:
+ static void Cleanup( TAny* aPtr )
+ {
+ TFuncLog* self = static_cast< TFuncLog* >( aPtr );
+ self->iLeft = ETrue;
+ FUNC( _PREFIX_CHAR("%S-LEAVE"), &self->iFunc ); // Leave detected
+ }
+ inline TFuncLog( const char* aFunc ) :
+ iFunc( aFunc ? _S8( aFunc ) : _S8("") ),
+ iLeft( EFalse ),
+ iCleanupItem( Cleanup, this ),
+ iCanLeave( EFalse )
+ {
+ TInt pos( iFunc.Find( KFuncNameTerminator ) );
+ if( pos != KErrNotFound )
+ {
+ iFunc.Set( iFunc.Left( pos ) );
+ iCanLeave = !iFunc.Right( KFuncLeavePatternL().Length() ).Compare( KFuncLeavePatternL );
+ if ( iCanLeave )
+ {
+ CleanupStack::PushL( iCleanupItem ); // Ignore warnings
+ }
+ }
+ FUNC( _PREFIX_CHAR("%S-START"), &iFunc );
+ }
+
+ inline ~TFuncLog()
+ {
+ if ( !iLeft )
+ {
+ if ( iCanLeave )
+ {
+ CleanupStack::Pop( this ); // Pop the cleanup item
+ }
+ FUNC( _PREFIX_CHAR("%S-END"), &iFunc ); // Normally finished
+ }
+ }
+
+ private: // Data
+ TPtrC8 iFunc;
+ TBool iLeft;
+ TCleanupItem iCleanupItem;
+ TBool iCanLeave;
+ };
+ #define FUNC_LOG TFuncLog _fl( __PRETTY_FUNCTION__ );
+
+#else//FUNC_TRACE not defined
+
+ #define FUNC_LOG
+
+#endif//FUNC_TRACE
+
+//-----------------------------------------------------------------------------
+// Timestamp trace macros
+//-----------------------------------------------------------------------------
+//
+#ifdef TIMESTAMP_TRACE
+
+ #ifdef TRACE_INTO_FILE
+
+ #define TIMESTAMP( aCaption )\
+ {\
+ TTime t;\
+ t.HomeTime();\
+ TDateTime dt = t.DateTime();\
+ _LIT( KCaption, aCaption );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend,\
+ _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\
+ &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\
+ }
+
+ #else//TRACE_INTO_FILE not defined
+
+ #define TIMESTAMP( aCaption )\
+ {\
+ TTime t;\
+ t.HomeTime();\
+ TDateTime dt = t.DateTime();\
+ _LIT( KCaption, aCaption );\
+ RDebug::Print( _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\
+ &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\
+ }
+
+ #endif//TRACE_INTO_FILE
+
+#else//TIMESTAMP_TRACE not defined
+
+ #define TIMESTAMP( aCaption )
+
+#endif//TIMESTAMP_TRACE
+
+#ifdef HEAP_TRACE
+
+ #ifdef TRACE_INTO_FILE
+
+ #define HEAP( aMsg )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace );\
+ }
+ #define HEAP_1( aMsg, aP1 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1 );\
+ }
+ #define HEAP_2( aMsg, aP1, aP2 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2 );\
+ }
+ #define HEAP_3( aMsg, aP1, aP2, aP3 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3 );\
+ }
+ #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3, aP4 );\
+ }
+
+ #else//TRACE_INTO_FILE not defined
+
+ #define HEAP( aMsg )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace );\
+ }
+ #define HEAP_1( aMsg, aP1 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1 );\
+ }
+ #define HEAP_2( aMsg, aP1, aP2 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2 );\
+ }
+ #define HEAP_3( aMsg, aP1, aP2, aP3 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3 );\
+ }
+ #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 )\
+ {\
+ TInt totalAllocSpace = 0;\
+ User::AllocSize( totalAllocSpace );\
+ RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3, aP4 );\
+ }
+
+ #endif//TRACE_INTO_FILE
+
+#else//HEAP_TRACE not defined
+
+ #define HEAP( aMsg )
+ #define HEAP_1( aMsg, aP1 )
+ #define HEAP_2( aMsg, aP1, aP2 )
+ #define HEAP_3( aMsg, aP1, aP2, aP3 )
+ #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 )
+
+#endif//HEAP_TRACE
+
+#endif
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/traceconfiguration.hrh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/traceconfiguration.hrh Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,79 @@
+/*
+* 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:
+* Trace Macro Configurations.
+*
+*/
+
+
+#ifndef TRACECONFIGURATION_HRH
+#define TRACECONFIGURATION_HRH
+
+//-----------------------------------------------------------------------------
+// Trace definitions
+//-----------------------------------------------------------------------------
+//
+
+/**
+* Error trace enabled
+*/
+#ifdef _DEBUG
+ #define ERROR_TRACE
+#else
+ #undef ERROR_TRACE
+#endif
+
+/**
+* Info trace enabled
+*/
+#ifdef _DEBUG
+ #define INFO_TRACE
+#else
+ #undef INFO_TRACE
+#endif
+
+/**
+* Timestamp tracing on
+*/
+#ifdef _DEBUG
+ #define TIMESTAMP_TRACE
+#else
+ #undef TIMESTAMP_TRACE
+#endif
+
+/**
+* Tracing current client process and thread
+*/
+#ifdef _DEBUG
+ #define CLIENT_TRACE
+#else
+ #undef CLIENT_TRACE
+#endif
+
+/**
+* Function trace enabled
+*/
+#ifdef _DEBUG
+ #define FUNC_TRACE
+#else
+ #undef FUNC_TRACE
+#endif
+
+/**
+* Tracing into file enabled, default RDebug
+*/
+#undef TRACE_INTO_FILE
+
+#endif
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/init/syserrcmdtest.ini
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/init/syserrcmdtest.ini Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,186 @@
+#
+# This is STIFTestFramework initialization file
+# Comment lines start with '#'-character.
+# See STIF TestFramework users guide.doc for instructions
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set following test engine settings:
+# - Set Test Reporting mode. TestReportMode's possible values are:
+# + 'Summary': Summary of the tested test cases.
+# + 'Environment': Hardware and software info.
+# + 'TestCases': Test case report.
+# + 'FullReport': Set of all above ones.
+# + Example 'TestReportMode= Summary TestCases'
+#
+# - CreateTestReport setting controls report creation mode
+# + YES, Test report will created.
+# + NO, No Test report.
+#
+# - File path indicates the base path of the test report.
+# - File name indicates the name of the test report.
+#
+# - File format indicates the type of the test report.
+# + TXT, Test report file will be txt type, for example 'TestReport.txt'.
+# + HTML, Test report will be html type, for example 'TestReport.html'.
+#
+# - File output indicates output source of the test report.
+# + FILE, Test report logging to file.
+# + RDEBUG, Test report logging to using rdebug.
+#
+# - File Creation Mode indicates test report overwriting if file exist.
+# + OVERWRITE, Overwrites if the Test report file exist.
+# + APPEND, Continue logging after the old Test report information if
+# report exist.
+# - Sets a device reset module's dll name(Reboot).
+# + If Nokia specific reset module is not available or it is not correct one
+# StifHWResetStub module may use as a template for user specific reset
+# module.
+# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation
+# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02
+#
+
+[Engine_Defaults]
+
+TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', 'TestCases' or 'FullReport'
+
+CreateTestReport= YES # Possible values: YES or NO
+
+TestReportFilePath= c:\LOGS\TestFramework\
+TestReportFileName= TestReport
+
+TestReportFormat= TXT # Possible values: TXT or HTML
+TestReportOutput= FILE # Possible values: FILE or RDEBUG
+TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+
+DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting
+
+DisableMeasurement= stifmeasurementdisablenone # Possible values are:
+ # 'stifmeasurementdisablenone', 'stifmeasurementdisableall'
+ # 'stifmeasurementplugin01', 'stifmeasurementplugin02',
+ # 'stifmeasurementplugin03', 'stifmeasurementplugin04',
+ # 'stifmeasurementplugin05' or 'stifbappeaprofiler'
+
+[End_Defaults]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Module configurations start
+# Modules are added between module tags
+# tags. Module name is specified after ModuleName= tag, like
+# ModuleName= XXXXXXXXX
+# Modules might have initialisation file, specified as
+# IniFile= c:\testframework\YYYYYY
+# Modules might have several configuration files, like
+# TestCaseFile= c:\testframework\NormalCases.txt
+# TestCaseFile= c:\testframework\SmokeCases.txt
+# TestCaseFile= c:\testframework\ManualCases.txt
+
+# (TestCaseFile is synonym for old term ConfigFile)
+
+# Following case specifies demo module settings. Demo module
+# does not read any settings from file, so tags
+# IniFile and TestCaseFile are not used.
+# In the simplest case it is enough to specify only the
+# name of the test module when adding new test module
+[New_Module]
+ModuleName= TestScripter
+TestCaseFile= c:\testframework\syserrcmdtest.cfg
+[End_Module]
+
+# Load testmoduleXXX, optionally with initialization file and/or test case files
+#[New_Module]
+#ModuleName= testmodulexxx
+
+#TestModuleXXX used initialization file
+#IniFile= c:\testframework\init.txt
+
+#TestModuleXXX used configuration file(s)
+#TestCaseFile= c:\testframework\testcases1.cfg
+#TestCaseFile= c:\testframework\testcases2.cfg
+#TestCaseFile= c:\testframework\manualtestcases.cfg
+
+#[End_Module]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set STIFTestFramework logging overwrite parameters for Logger.
+# Hardware and emulator environment logging path and styles can
+# be configured from here to overwrite the Logger's implemented values.
+#
+# Settings description:
+# - Indicates option for creation log directory/directories. If log directory/directories
+# is/are not created by user they will make by software.
+# + YES, Create log directory/directories if not allready exist.
+# + NO, Log directory/directories not created. Only created one is used.
+#
+# - Overwrite emulator path setting.
+# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined
+# Logger's path 'D:\LOGS\Module\' with those definition the path
+# will be 'C:\LOGS\TestFramework\LOGS\Module\'
+#
+# - Overwrite emulator's logging format.
+# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'.
+# + HTML, Log file(s) will be html type(s), for example 'Module.html'.
+#
+# - Overwrited emulator logging output source.
+# + FILE, Logging to file(s).
+# + RDEBUG, Logging to using rdebug(s).
+#
+# - Overwrite hardware path setting (Same description as above in emulator path).
+# - Overwrite hardware's logging format(Same description as above in emulator format).
+# - Overwrite hardware's logging output source(Same description as above in emulator output).
+#
+# - File Creation Mode indicates file overwriting if file exist.
+# + OVERWRITE, Overwrites if file(s) exist.
+# + APPEND, Continue logging after the old logging information if file(s) exist.
+#
+# - Will thread id include to the log filename.
+# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'.
+# + NO, No thread id to log file(s), Example filename 'Module.txt'.
+#
+# - Will time stamps include the to log file.
+# + YES, Time stamp added to each line in log file(s). Time stamp is
+# for example'12.Nov.2003 115958 LOGGING INFO'
+# + NO, No time stamp(s).
+#
+# - Will line breaks include to the log file.
+# + YES, Each logging event includes line break and next log event is in own line.
+# + NO, No line break(s).
+#
+# - Will event ranking include to the log file.
+# + YES, Event ranking number added to each line in log file(s). Ranking number
+# depends on environment's tics, for example(includes time stamp also)
+# '012 12.Nov.2003 115958 LOGGING INFO'
+# + NO, No event ranking.
+#
+
+[Logger_Defaults]
+
+#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
+#NOTE: TestEngine and TestServer logging settings cannot change here
+
+#CreateLogDirectories= YES # Possible values: YES or NO
+
+#EmulatorBasePath= C:\LOGS\TestFramework\
+#EmulatorFormat= HTML # Possible values: TXT or HTML
+#EmulatorOutput= FILE # Possible values: FILE or RDEBUG
+
+#HardwareBasePath= D:\LOGS\TestFramework\
+#HardwareFormat= HTML # Possible values: TXT or HTML
+#HardwareOutput= FILE # Possible values: FILE or RDEBUG
+
+#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+
+#ThreadIdToLogFile= YES # Possible values: YES or NO
+#WithTimeStamp= YES # Possible values: YES or NO
+#WithLineBreak= YES # Possible values: YES or NO
+#WithEventRanking= YES # Possible values: YES or NO
+
+[End_Logger_Defaults]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+# End of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/src/syserrcmdtest.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/src/syserrcmdtest.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,346 @@
+/*
+* 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:
+* CSysErrCmdTest class implementation.
+*
+*/
+
+#include
+#include
+#include
+
+//#include
+//#include
+#include
+
+#include "syserrcmdtest.h"
+#include "syserrcmdfactory.h"
+#include "syserrcmdtestsstub.h"
+#include "trace.h"
+
+// INTERNAL INCLUDES
+NONSHARABLE_CLASS( TWaitInfo )
+ {
+ public:
+
+ CPeriodic* iPeriodic;
+ CActiveSchedulerWait* iWait;
+ };
+
+
+/**
+* Call back method when we need to stop active scheduler wait.
+*/
+LOCAL_C TInt WaitCallBack( TAny* aSelf )
+ {
+ if( aSelf )
+ {
+ TWaitInfo* info = static_cast( aSelf );
+ if( info->iPeriodic )
+ {
+ info->iPeriodic->Cancel();
+ }
+ if( info->iWait )
+ {
+ if( info->iWait->IsStarted() )
+ {
+ info->iWait->AsyncStop();
+ }
+ }
+ }
+
+ return KErrNone;
+ }
+
+/**
+* Helper method to wait current scheduler before teardown is completed.
+*/
+LOCAL_C void WaitL( TInt aIntervalInMicorseconds )
+ {
+ TWaitInfo info;
+
+ // Construct periodic
+ CPeriodic* periodic = CPeriodic::NewL( CActive::EPriorityStandard );
+ CleanupStack::PushL( periodic );
+ info.iPeriodic = periodic;
+
+ // Construct active scheduler wait
+ CActiveSchedulerWait* wait = new( ELeave ) CActiveSchedulerWait;
+ CleanupStack::PushL( wait );
+ info.iWait = wait;
+
+ // Start timer and wait
+ TCallBack cb( WaitCallBack, &info );
+ periodic->Start( aIntervalInMicorseconds, aIntervalInMicorseconds, cb );
+ wait->Start();
+
+ // Cleanup
+ CleanupStack::PopAndDestroy( wait );
+ CleanupStack::PopAndDestroy( periodic );
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::LibEntryL
+// Returns: Poiter to CSysErrCmdTest class
+// ---------------------------------------------------------
+EXPORT_C CSysErrCmdTest* LibEntryL( CTestModuleIf& aTestModuleIf )
+ {
+ FUNC_LOG;
+
+ CSysErrCmdTest* libEntry( CSysErrCmdTest::NewL( aTestModuleIf ) );
+ return libEntry;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::CSysErrCmdTest
+// ---------------------------------------------------------
+CSysErrCmdTest::CSysErrCmdTest( CTestModuleIf& aTestModuleIf ) :
+ CScriptBase( aTestModuleIf )
+ {
+ FUNC_LOG;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::ConstructL
+// ---------------------------------------------------------
+void CSysErrCmdTest::ConstructL()
+ {
+ FUNC_LOG;
+
+ iExecuteHandler = CAsyncRequestHandler::NewL(
+ *this,
+ HandleIssueRequest,
+ HandleRunL,
+ HandleRunError,
+ HandleDoCancel,
+ CAsyncRequestHandler::ERequestOneShot );
+
+ User::LeaveIfError( iFs.Connect() );
+
+ iCustCmdEnvStub = SysErrCmdTestsStub::CustomCommandEnvStubL( iFs );
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::NewL
+// ---------------------------------------------------------
+CSysErrCmdTest* CSysErrCmdTest::NewL( CTestModuleIf& aTestModuleIf )
+ {
+ FUNC_LOG;
+
+ CSysErrCmdTest* self = new (ELeave) CSysErrCmdTest( aTestModuleIf );
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::~CSysErrCmdTest
+// ---------------------------------------------------------
+CSysErrCmdTest::~CSysErrCmdTest()
+ {
+ iFs.Close();
+ delete iExecuteHandler;
+ delete iCustCmdEnvStub;
+ FUNC_LOG;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::RunMethodL
+// ---------------------------------------------------------
+TInt CSysErrCmdTest::RunMethodL( CStifItemParser& aItem )
+ {
+ FUNC_LOG;
+
+ const TStifFunctionInfo 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.
+ ENTRY( "CreateAndDestroy", CSysErrCmdTest::CreateAndDestroyL ),
+ ENTRY( "InitAndClose", CSysErrCmdTest::InitAndCloseL ),
+ ENTRY( "Execute", CSysErrCmdTest::ExecuteL ),
+ ENTRY( "ExecuteCancel", CSysErrCmdTest::ExecuteCancelL ),
+ ENTRY( "ExecuteAfterGlobalNote", CSysErrCmdTest::ShowAfterAknGlobalNoteL ),
+ ENTRY( "ExecuteAfterUiServiceGlobalNote", CSysErrCmdTest::ShowAfterUiServerGlobalNoteL )
+ };
+ const TInt count( sizeof( KFunctions ) / sizeof( TStifFunctionInfo ) );
+ TInt ret( RunInternalL( KFunctions, count, aItem ) );
+ return ret;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::CreateAndDestroyL
+// ---------------------------------------------------------
+
+TInt CSysErrCmdTest::CreateAndDestroyL( CStifItemParser& aItem )
+ {
+ FUNC_LOG;
+ ( void )aItem;
+ MSsmCustomCommand* sysErrCmd = SysErrCmdFactory::SysErrCmdNewL();
+ sysErrCmd->Release();
+ return KErrNone;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::InitAndCloseL
+// ---------------------------------------------------------
+TInt CSysErrCmdTest::InitAndCloseL( CStifItemParser& aItem )
+ {
+ FUNC_LOG;
+ ( void )aItem;
+
+ MSsmCustomCommand* sysErrCmd = SysErrCmdFactory::SysErrCmdNewL();
+
+ TInt err( sysErrCmd->Initialize( iCustCmdEnvStub ) );
+ ERROR( err, "Failed to init syserrcmd" );
+ User::LeaveIfError( err );
+
+ sysErrCmd->Close();
+ sysErrCmd->Release();
+
+ return KErrNone;
+ }
+// ---------------------------------------------------------
+// CSysErrCmdTest::ExecuteL
+// ---------------------------------------------------------
+
+TInt CSysErrCmdTest::ExecuteL( CStifItemParser& aItem )
+ {
+ FUNC_LOG;
+ ( void )aItem;
+ iSysErrCmd = SysErrCmdFactory::SysErrCmdNewL();
+ TInt err( iSysErrCmd->Initialize( iCustCmdEnvStub ) );
+ ERROR( err, "Failed to init syserrcmd" );
+ User::LeaveIfError( err );
+
+ iExecuteHandler->IssueRequest();
+
+ WaitL( 5000 );
+
+ iSysErrCmd->Close();
+ iSysErrCmd->Release();
+
+ INFO_1( "Execution result %d", iExecutionResult );
+
+ return iExecutionResult;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::ExecuteL
+// ---------------------------------------------------------
+
+TInt CSysErrCmdTest::ExecuteCancelL( CStifItemParser& aItem )
+ {
+ FUNC_LOG;
+ ( void )aItem;
+ iSysErrCmd = SysErrCmdFactory::SysErrCmdNewL();
+ TInt err( iSysErrCmd->Initialize( iCustCmdEnvStub ) );
+ ERROR( err, "Failed to init syserrcmd" );
+ User::LeaveIfError( err );
+
+ iExecuteHandler->IssueRequest();
+
+ WaitL( 5000 );
+
+ iSysErrCmd->ExecuteCancel();
+
+ WaitL( 5000 );
+
+ iSysErrCmd->Close();
+ iSysErrCmd->Release();
+
+ INFO_1( "ExecutionCancel result %d", iExecutionResult );
+
+ return ( iExecutionResult == KErrCancel ) ? KErrNone : KErrGeneral;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::ShowAfterAknGlobalNoteL
+// ---------------------------------------------------------
+TInt CSysErrCmdTest::ShowAfterAknGlobalNoteL( CStifItemParser& aItem )
+ {/*
+ CAknGlobalNote* note = CAknGlobalNote::NewLC();
+ note->ShowNoteL( EAknGlobalInformationNote, _L("CAknGlobalNote::ShowNoteL()") );
+ CleanupStack::PopAndDestroy( note );
+
+ return ExecuteL( aItem );
+ */
+ return KErrNone;
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::ShowAfterUiServerGlobalNoteL
+// ---------------------------------------------------------
+TInt CSysErrCmdTest::ShowAfterUiServerGlobalNoteL( CStifItemParser& aItem )
+ {
+ /* RAknUiServer aknSrv;
+
+ User::LeaveIfError( aknSrv.Connect() );
+
+ CleanupClosePushL( aknSrv );
+
+ aknSrv.ShowGlobalNoteL( _L("RAknUiServer::ShowGlobalNoteL()"), EAknGlobalInformationNote );
+
+ CleanupStack::PopAndDestroy( &aknSrv );
+ */
+
+ return ExecuteL( aItem );
+ }
+
+// ---------------------------------------------------------
+// CSysErrCmdTest::HandleIssueRequest
+// ---------------------------------------------------------
+
+void CSysErrCmdTest::HandleIssueRequest( TRequestStatus& aRequest )
+ {
+ FUNC_LOG;
+
+ iSysErrCmd->Execute( KNullDesC8, aRequest );
+
+ }
+// ---------------------------------------------------------
+// CSysErrCmdTest::HandleRunL
+// ---------------------------------------------------------
+
+void CSysErrCmdTest::HandleRunL( TInt aStatus )
+ {
+ FUNC_LOG;
+ INFO_1( "CSysErrCmdTest::HandleRunL %d", aStatus );
+
+ if ( KErrNone != aStatus )
+ {
+ iExecutionResult = aStatus;
+ }
+ }
+// ---------------------------------------------------------
+// CSysErrCmdTest::HandleRunError
+// ---------------------------------------------------------
+
+TInt CSysErrCmdTest::HandleRunError( TInt aError )
+ {
+ FUNC_LOG;
+ ERROR( aError, "CSysErrCmdTest::HandleRunError" );
+ return KErrNone;
+ }
+// ---------------------------------------------------------
+// CSysErrCmdTest::HandleDoCancel
+// ---------------------------------------------------------
+
+void CSysErrCmdTest::HandleDoCancel()
+ {
+ FUNC_LOG;
+ }
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/bwins/syserrcmdtestsstubu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/bwins/syserrcmdtestsstubu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,4 @@
+EXPORTS
+ ?CustomCommandEnvStubL@SysErrCmdTestsStub@@SAPAVCSsmCustomCommandEnv@@AAVRFs@@@Z @ 1 NONAME ; class CSsmCustomCommandEnv * SysErrCmdTestsStub::CustomCommandEnvStubL(class RFs &)
+ ?Rfs@CSsmCustomCommandEnv@@UBEABVRFs@@XZ @ 2 NONAME ; class RFs const & CSsmCustomCommandEnv::Rfs(void) const
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/eabi/syserrcmdtestsstubu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/eabi/syserrcmdtestsstubu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _ZN18SysErrCmdTestsStub21CustomCommandEnvStubLER3RFs @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,29 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Build information file for ssmlangselcmdtest tests.
+*
+*/
+
+#include
+
+PRJ_PLATFORMS
+DEFAULT
+
+PRJ_TESTEXPORTS
+../inc/syserrcmdtestsstub.h |../../inc/syserrcmdtestsstub.h
+
+PRJ_TESTMMPFILES
+syserrcmdtestsstub.mmp
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/syserrcmdtestsstub.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/syserrcmdtestsstub.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,41 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Project definition file for ssmlangselcmdtest.
+*
+*/
+
+#include
+
+TARGET syserrcmdtestsstub.dll
+TARGETTYPE dll
+
+UID 0x1000008D 0x101FB3E9
+VENDORID VID_DEFAULT
+CAPABILITY ALL -TCB
+
+SOURCEPATH ../src
+SOURCE ssmcustomcommandenvstub.cpp
+SOURCE syserrcmdtestsstub.cpp
+
+
+USERINCLUDE ../inc
+
+OS_LAYER_SYSTEMINCLUDE
+
+LIBRARY euser.lib
+
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/inc/syserrcmdtestsstub.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/inc/syserrcmdtestsstub.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,44 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* Declaration of SsmLangSelCmdTestStub class.
+*
+*/
+
+#ifndef SYSERRCMDTESTSSTUB_H
+#define SYSERRCMDTESTSSTUB_H
+
+#include
+
+class CSsmCustomCommandEnv;
+class RFs;
+/**
+* Stub class for syserrcmd tests
+*
+*/
+NONSHARABLE_CLASS( SysErrCmdTestsStub )
+ {
+public:
+ /**
+ * Methods for mapping p&s, cenrep and feature Uids
+ *
+ * @param aUid The Uid to map
+ * @return The mapped Uid
+ */
+
+ IMPORT_C static CSsmCustomCommandEnv* CustomCommandEnvStubL( RFs& aRfs );
+
+ };
+
+#endif // SYSERRCMDTESTSSTUB_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/ssmcustomcommandenvstub.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/ssmcustomcommandenvstub.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,63 @@
+/*
+ * 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:
+ *
+ */
+
+// SYSTEM INCLUDES
+
+// USER INCLUDES
+#include
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// C++ constructor.
+// ---------------------------------------------------------------------------
+//
+CSsmCustomCommandEnv::CSsmCustomCommandEnv( RFs& aRfs )
+:iFs( aRfs )
+ {
+
+ }
+
+
+// ---------------------------------------------------------------------------
+// Symbian two phased constructor.
+// ---------------------------------------------------------------------------
+//
+CSsmCustomCommandEnv* CSsmCustomCommandEnv::NewL( RFs& aRfs )
+ {
+ CSsmCustomCommandEnv* self = new ( ELeave ) CSsmCustomCommandEnv( aRfs );
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// C++ destructor.
+// ---------------------------------------------------------------------------
+//
+CSsmCustomCommandEnv::~CSsmCustomCommandEnv()
+ {
+
+ }
+// ---------------------------------------------------------------------------
+// CSsmCustomCommandEnv::Rfs
+// ---------------------------------------------------------------------------
+//
+const RFs& CSsmCustomCommandEnv::Rfs() const
+ {
+ return iFs;
+ }
+// End of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/syserrcmdtestsstub.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/syserrcmdtestsstub.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *
+ */
+
+// SYSTEM INCLUDES
+
+// USER INCLUDES
+#include "syserrcmdtestsstub.h"
+#include
+
+// ---------------------------------------------------------------------------
+// C++ destructor.
+// ---------------------------------------------------------------------------
+//
+EXPORT_C CSsmCustomCommandEnv* SysErrCmdTestsStub::CustomCommandEnvStubL(
+ RFs& aRfs )
+ {
+ return CSsmCustomCommandEnv::NewL( aRfs );
+ }
+
+// End of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/Bmarm/TSanimctrlU.DEF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/Bmarm/TSanimctrlU.DEF Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/Bwins/TSanimctrlu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/Bwins/TSanimctrlu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/conf/UI_TSanimctrl.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/conf/UI_TSanimctrl.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,303 @@
+[Test]
+title Example
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl Example pa ra me ters
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructor
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmpty
+CSAnimStartupCtrl TestConstructor
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorNoMemory
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmpty
+CSAnimStartupCtrl TestConstructorNoMemory
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupEmptyValues
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyValues
+CSAnimStartupCtrl TestLoadNoContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupUnknownFile
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupUnknownFile
+CSAnimStartupCtrl TestLoadNoContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupProtectedFile
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupProtectedFile
+CSAnimStartupCtrl TestLoadNoContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestLoadHasContent
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingImageFile
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileSilent
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileSilent
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileVeryLowVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileVeryLowVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileLowVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileLowVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileNormalVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileNormalVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileTooLowVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileTooLowVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupExistingToneFileTooHighVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileTooHighVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title SetupUnknownToneFileNormalVolume
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupUnknownToneFileNormalVolume
+CSAnimStartupCtrl TestLoadHasContent
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestLoadNoMemory
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObj
+CSAnimStartupCtrl TestLoadNoMemory
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestCancelLoad
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObj
+CSAnimStartupCtrl TestCancelLoad
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestLoadWhenActive
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObj
+CSAnimStartupCtrl TestLoadWhenActive
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title SetupEmptyShow
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyShow
+CSAnimStartupCtrl TestStart
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestStart
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShow
+CSAnimStartupCtrl TestStart
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestCancelStart
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShow
+CSAnimStartupCtrl TestCancelStart
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestStartWhenActive
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShow
+CSAnimStartupCtrl TestStartWhenActive
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+
+// Obj2
+// ---------------------------------------------------------------------------
+// Test table
+//
+// ---------------------------------------------------------------------------
+//
+
+[Test]
+title TestConstructorCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyCtr
+CSAnimStartupCtrl TestConstructorCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorNoMemoryCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyCtr
+CSAnimStartupCtrl TestConstructorNoMemoryCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestLoadEmpty2Ctr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadEmptyCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestLoadImageCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadImageCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestLoadToneCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadToneCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestLoadBothCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadBothCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestLoadWhenActiveCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadWhenActiveCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestCancelLoadCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestCancelLoadCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestStartCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestStartNoMemoryCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartNoMemoryCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestStartWhenActiveCtr
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartWhenActiveCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/eabi/TSanimctrlu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/eabi/TSanimctrlu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,95 @@
+/*TYPE TESTCLASS*/
+/*
+* 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: MMP file for STIF Test Framework's TestScripter
+* testclass test module.
+*
+*/
+
+#include
+
+SMPSAFE
+
+TARGET TSanimctrl.dll
+TARGETTYPE dll
+UID 0x1000008D 0x101FB3E3
+
+CAPABILITY ALL -TCB
+/* Remove comments and replace 0x00000000 with correct vendor id */
+// VENDORID 0x00000000
+/* Remove comments and replace 0x00000000 with correct secure id */
+// SECUREID 0x00000000
+
+//TARGETPATH ?target_path
+DEFFILE TSanimctrl.def
+
+USERINCLUDE ../inc
+USERINCLUDE ../../inc
+USERINCLUDE ../../../../../../inc
+USERINCLUDE ../../../../sanimengine/inc
+
+OS_LAYER_SYSTEMINCLUDE
+
+SOURCEPATH ../src
+
+SOURCE TSanimctrl.cpp
+SOURCE sanimmockview.cpp
+SOURCE TSanimctrlBlocks.cpp testwaiter.cpp
+SOURCE sanimctrlrootsuite.cpp
+
+SYSTEMINCLUDE /epoc32/include/mw/
+
+//RESOURCE resource_file
+//RESOURCE resource_file2
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY stiftestengine.lib
+LIBRARY centralrepository.lib
+LIBRARY cone.lib
+LIBRARY ecom.lib
+LIBRARY euser.lib
+LIBRARY sanimctrl.lib
+
+EPOCALLOWDLLDATA
+LANG SC
+
+/*
+START WINS
+?wins_specific_information
+END
+
+START MARM
+?marm_specific_information
+END
+
+//TARGET.EPOCALLOWDLLDATA=1
+
+
+
+*/
+// Other possible keywords:
+
+// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes)
+/*
+START BITMAP ?target
+TARGETPATH ?emulated_path_on_target_machine
+HEADER
+SOURCE ?color_depth ?source_bitmap
+END
+*/
+// DEFFILE ?filename
+// AIF ?filename
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+; Installation file for STIF
+;
+
+; Languages
+&EN
+
+; Provide value for uid
+#{"STIF"},(0x00000000),1,1,0,TYPE=SA
+
+; Series60 product id for S60 3.0
+[0x101F7961], 0, 0, 0, {"Series60ProductID"}
+
+; Localised Vendor name
+%{"Nokia"}
+
+; Unique Vendor name
+:"Nokia"
+
+; Logo
+; None
+
+; Package signature - Optional
+; None
+
+; Start of Package body
+
+; Condition blocks
+; None
+
+; Options list
+; None
+
+; Install files
+"\epoc32\release\armv5\udeb\TSanimctrl.dll" - "!:\Sys\Bin\TSanimctrl.dll"
+
+; Embedded SIS
+; None
+
+; End of Package body
+
+; PKG dependencies
+; None
+
+; PKG capabilities
+; None
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl_DoxyFile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/TSanimctrl_DoxyFile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,240 @@
+#
+# 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:
+#
+#
+
+# Doxyfile 1.4.1
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = TSanimctrl
+PROJECT_NUMBER =
+OUTPUT_DIRECTORY = x:\TSanimctrl\
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = YES
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = NO
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = NO
+EXTRACT_STATIC = NO
+EXTRACT_LOCAL_CLASSES = NO
+EXTRACT_LOCAL_METHODS = NO
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = YES
+INLINE_INFO = YES
+SORT_MEMBER_DOCS = YES
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = NO
+WARNINGS = YES
+WARN_IF_UNDOCUMENTED = YES
+WARN_IF_DOC_ERROR = YES
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = x:\TSanimctrl\
+FILE_PATTERNS = *.h \
+ *.rh \
+ *.hrh
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+VERBATIM_HEADERS = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = YES
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = YES
+TOC_EXPAND = YES
+DISABLE_INDEX = YES
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = YES
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = YES
+RTF_OUTPUT = Doc
+COMPACT_RTF = YES
+RTF_HYPERLINKS = YES
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = NO
+XML_OUTPUT = xml
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = NONSHARABLE_CLASS
+EXPAND_AS_DEFINED =
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = YES
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = YES
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,61 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+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_TESTEXPORTS
+// NOTE: If using ARS requirements all export operations should be done under this.
+// 'abld test export'
+
+PRJ_EXPORTS
+// Specify the source file followed by its destination here
+// copy will be used to copy the source file to its destination
+// If there's no destination then the source file will be copied
+// to the same name in \epoc32\include
+// Example:
+/*
+\agnmodel\inc\AGMCOMON.H
+*/
+
+PRJ_TESTMMPFILES
+
+ TSanimctrl.mmp
+
+PRJ_MMPFILES
+
+ TSanimctrl.mmp
+
+
+// Specify the .mmp files required for building the important component
+// releasables.
+//
+// Specify "tidy" if the component you need to build doesn't need to be
+// released. Specify "ignore" if the MMP file exists but should be
+// ignored.
+// Example:
+/*
+\agnmodel\group\agnmodel.mmp
+#if defined(MARM)
+\agnmodel\group\agsvexe.mmp
+#endif
+*/
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/profile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/profile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,165 @@
+*****************************************************************************
+* CTC++, Test Coverage Analyzer for C/C++, Version 6.5.5 *
+* *
+* EXECUTION PROFILE LISTING *
+* *
+* Copyright (c) 1993-2009 Testwell Oy *
+*****************************************************************************
+
+
+Symbol file(s) used : MON.sym (Tue Aug 17 14:09:17 2010)
+Data file(s) used : MON.dat (Tue Aug 17 14:38:19 2010)
+Listing produced at : Tue Aug 17 14:38:22 2010
+Coverage view : As instrumented
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/sanimmockview.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 52 0 29 FUNCTION CSAnimMockView::NewL()
+ 0 0 - 46 FUNCTION CSAnimMockView::~CSAnimMockView()
+ 25 25 57 FUNCTION CSAnimMockView::SetComponent()
+ 0 0 - 70 FUNCTION CSAnimMockView::RemoveComponent()
+ 52 52 83 FUNCTION CSAnimMockView::CSAnimMockView()
+ 52 52 94 FUNCTION CSAnimMockView::ConstructL()
+ 171 0 108 FUNCTION CSAnimMockView::CountComponentControls()
+ 50 0 120 FUNCTION CSAnimMockView::ComponentControl()
+ 38 38 131 FUNCTION CSAnimMockView::Draw()
+
+***TER 78 % ( 7/ 9) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/sanimmockview.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/TSanimctrlBlocks.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 41 41 82 FUNCTION CTSanimctrl::Delete()
+ 99 0 92 FUNCTION CTSanimctrl::RunMethodL()
+ 7 0 165 FUNCTION CTSanimctrl::SetupEmptyCtrL()
+ 0 0 - 179 FUNCTION CTSanimctrl::SetupObjCtrL()
+ 8 0 194 FUNCTION CTSanimctrl::SetupObjLoadedCtrL()
+ 4 0 213 FUNCTION CTSanimctrl::TeardownCtr()
+ 2 0 232 FUNCTION CTSanimctrl::TestConstructorCtrL()
+ 2 0 248 FUNCTION CTSanimctrl::TestConstructorNoMemoryCtrL()
+ 3 0 262 FUNCTION CTSanimctrl::TestLoadEmptyCtrL()
+ 0 0 - 280 FUNCTION CTSanimctrl::TestLoadImageCtrL()
+ 0 0 - 298 FUNCTION CTSanimctrl::TestLoadToneCtrL()
+ 0 0 - 316 FUNCTION CTSanimctrl::TestLoadBothCtrL()
+ 0 0 - 334 FUNCTION CTSanimctrl::TestLoadWhenActiveCtrL()
+ 0 0 - 359 FUNCTION CTSanimctrl::TestCancelLoadCtrL()
+ 0 0 - 378 FUNCTION CTSanimctrl::TestStartCtrL()
+ 0 0 - 393 FUNCTION CTSanimctrl::TestCancelStartCtrL()
+ 0 0 - 409 FUNCTION CTSanimctrl::TestStartNoMemoryCtrL()
+ 0 0 - 425 FUNCTION CTSanimctrl::TestStartWhenActiveCtrL()
+ 51 51 449 FUNCTION CTSanimctrl::SetupParamsL()
+ 51 0 470 FUNCTION CTSanimctrl::SetupProfileL()
+ 4 0 485 FUNCTION CTSanimctrl::InitObjL()
+ 26 0 504 FUNCTION CTSanimctrl::SetupEmptyL()
+ 1 0 520 FUNCTION CTSanimctrl::SetupEmptyValuesL()
+ 1 0 539 FUNCTION CTSanimctrl::SetupUnknownFileL()
+ 1 0 557 FUNCTION CTSanimctrl::SetupProtectedFileL()
+ 0 0 - 575 FUNCTION CTSanimctrl::SetupExistingImageFileL()
+ 1 0 593 FUNCTION CTSanimctrl::SetupExistingToneFileSilentL()
+ 1 0 611 FUNCTION CTSanimctrl::SetupExistingToneFileVeryLowVolumeL()
+ 1 0 629 FUNCTION CTSanimctrl::SetupExistingToneFileLowVolumeL()
+ 1 0 647 FUNCTION CTSanimctrl::SetupExistingToneFileNormalVolumeL()
+ 1 0 665 FUNCTION CTSanimctrl::SetupExistingToneFileTooLowVolumeL()
+ 1 0 683 FUNCTION CTSanimctrl::SetupExistingToneFileTooHighVolumeL()
+ 1 0 701 FUNCTION CTSanimctrl::SetupUnknownToneFileNormalVolumeL()
+ 11 0 719 FUNCTION CTSanimctrl::SetupObjL()
+ 1 0 737 FUNCTION CTSanimctrl::SetupEmptyShowL()
+ 3 0 752 FUNCTION CTSanimctrl::SetupShowL()
+ 18 0 767 FUNCTION CTSanimctrl::Teardown()
+ 0 0 - 786 FUNCTION CTSanimctrl::TestConstructorL()
+ 1 0 803 FUNCTION CTSanimctrl::TestConstructorNoMemoryL()
+ 3 0 818 FUNCTION CTSanimctrl::TestLoadNoContentL()
+ 7 0 834 FUNCTION CTSanimctrl::TestLoadHasContentL()
+ 1 0 850 FUNCTION CTSanimctrl::TestLoadNoMemoryL()
+ 1 0 865 FUNCTION CTSanimctrl::TestCancelLoadL()
+ 1 0 881 FUNCTION CTSanimctrl::TestLoadWhenActiveL()
+ 2 0 900 FUNCTION CTSanimctrl::TestStartL()
+ 1 0 915 FUNCTION CTSanimctrl::TestCancelStartL()
+ 1 0 931 FUNCTION CTSanimctrl::TestStartWhenActiveL()
+ 1 0 953 FUNCTION CTSanimctrl::ExampleL()
+
+***TER 75 % ( 36/ 48) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/TSanimctrlBlocks.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/testwaiter.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 66 0 30 FUNCTION CTestWaiter::NewL()
+ 44 44 42 FUNCTION CTestWaiter::~CTestWaiter()
+ 23 23 52 FUNCTION CTestWaiter::Activate()
+ 66 66 65 FUNCTION CTestWaiter::CTestWaiter()
+ 0 0 - 77 FUNCTION CTestWaiter::DoCancel()
+ 23 23 87 FUNCTION CTestWaiter::RunL()
+
+***TER 83 % ( 5/ 6) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/testwaiter.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/TSanimctrl.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 52 52 85 FUNCTION CTSanimctrl::CTSanimctrl()
+ 52 52 98 FUNCTION CTSanimctrl::ConstructL()
+ 52 0 153 FUNCTION CTSanimctrl::NewL()
+ 41 41 167 FUNCTION CTSanimctrl::~CTSanimctrl()
+ 52 52 183 FUNCTION CTSanimctrl::SendTestClassVersion()
+ 52 0 204 FUNCTION LibEntryL()
+
+***TER 100 % ( 6/ 6) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/TSanimctrl.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/sanimctrlrootsuite.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 52 0 31 FUNCTION CSAnimCtrlRootSuite::NewL()
+ 52 0 44 FUNCTION CSAnimCtrlRootSuite::NewLC()
+ 0 0 - 58 FUNCTION CSAnimCtrlRootSuite::~CSAnimCtrlRootSuite()
+ 52 0 69 FUNCTION CSAnimCtrlRootSuite::MainView()
+ 52 52 80 FUNCTION CSAnimCtrlRootSuite::CSAnimCtrlRootSuite()
+ 52 52 90 FUNCTION CSAnimCtrlRootSuite::ConstructL()
+
+***TER 83 % ( 5/ 6) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimctrl/src/sanimctrlrootsuite.cpp
+-----------------------------------------------------------------------------
+
+
+
+
+
+SUMMARY
+=======
+
+Number of monitored source files : 5
+Number of source lines : 1518
+Number of measurement points : 150
+TER : 79% (function)
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/group/t.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/group/t.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,37 @@
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+sbs: warning: Can't set attribute type for element var
+ mwldsym2.exe: Undefined symbol: 'class CSAnimMockView * CSAnimMockView::NewL(void) (?NewL@CSAnimMockView@@SAPAV1@XZ)'
+ mwldsym2.exe: referenced from 'class CTSanimctrl * CTSanimctrl::NewL(class CTestModuleIf &) (?NewL@CTSanimctrl@@SAPAV1@AAVCTestModuleIf@@@Z)' in TSanimctrl.cpp:154
+ mwldsym2.exe: referenced from 'void CTSanimctrl::TestConstructorL(void) (?TestConstructorL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:828
+ mwldsym2.exe: referenced from 'void CTSanimctrl::TestConstructorNoMemoryL(void) (?TestConstructorNoMemoryL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:844
+ mwldsym2.exe: Undefined symbol: 'void CSAnimMockView::SetComponent(class CCoeControl &) (?SetComponent@CSAnimMockView@@QAEXAAVCCoeControl@@@Z)'
+ mwldsym2.exe: referenced from 'void CTSanimctrl::InitObjL(void) (?InitObjL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:548
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupEmptyValuesL(void) (?SetupEmptyValuesL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:584
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupUnknownFileL(void) (?SetupUnknownFileL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:601
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupProtectedFileL(void) (?SetupProtectedFileL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:618
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupExistingImageFileL(void) (?SetupExistingImageFileL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:635
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupExistingToneFileSilentL(void) (?SetupExistingToneFileSilentL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:652
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupExistingToneFileVeryLowVolumeL(void) (?SetupExistingToneFileVeryLowVolumeL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:669
+ mwldsym2.exe: referenced from 'void CTSanimctrl::SetupExistingToneFileLowVolumeL(void) (?SetupExistingToneFileLowVolumeL@CTSanimctrl@@AAEXXZ)' in TSanimctrlBlocks.cpp:686
+ mwldsym2.exe: ...
+
+ Errors caused tool to abort.
+
+
+sbs : warnings: 13
+sbs : errors: 3
+
+Run time 2 seconds
+
+sbs: build log in Z:/epoc32/build/Makefile.2010-08-13-14-05-28.log
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/inc/TSanimctrl.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/inc/TSanimctrl.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,225 @@
+/*
+* 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: STIF testclass declaration
+*
+*/
+
+#ifndef TSANIMCTRL_H
+#define TSANIMCTRL_H
+
+// INCLUDES
+#include
+#include
+#include
+#include
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// 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( KTSanimctrlLogPath, "\\logs\\testframework\\TSanimctrl\\" );
+// Log file
+_LIT( KTSanimctrlLogFile, "TSanimctrl.txt" );
+_LIT( KTSanimctrlLogFileWithTitle, "TSanimctrl_[%S].txt" );
+
+
+#include
+#include "sanimstartupctrl.h"
+
+class CSAnimMockView;
+class CTestWaiter;
+class CTSanimctrl;
+
+NONSHARABLE_CLASS(CTSanimctrl) : public CScriptBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CTSanimctrl* NewL( CTestModuleIf& aTestModuleIf,CSAnimMockView& aview );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CTSanimctrl();
+
+ public: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ public: // Functions from base classes
+
+ /**
+ * From CScriptBase Runs a script line.
+ * @since ?Series60_version
+ * @param aItem Script line containing method name and parameters
+ * @return Symbian OS error code
+ */
+ virtual TInt RunMethodL( CStifItemParser& aItem );
+
+ protected: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ protected: // Functions from base classes
+
+ /**
+ * From ?base_class ?member_description
+ */
+ //?type ?member_function();
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CTSanimctrl( CTestModuleIf& aTestModuleIf,CSAnimMockView& aview );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ // Prohibit copy constructor if not deriving from CBase.
+ // ?classname( const ?classname& );
+ // Prohibit assigment operator if not deriving from CBase.
+ // ?classname& operator=( const ?classname& );
+
+ /**
+ * Frees all resources allocated from test methods.
+ * @since ?Series60_version
+ */
+ void Delete();
+
+ /**
+ * Test methods are listed below.
+ */
+
+ /**
+ * Example test method.
+ * @since ?Series60_version
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt ExampleL( CStifItemParser& aItem );
+ void SetupParamsL(
+ const TDesC& aImageFileName,
+ const TDesC& aToneFileName,
+ const TInt aFrameDelay,
+ const TInt aVolume,
+ const TInt aVolumeRamp );
+ TInt SetupProfileL( const TInt aRingingType, const TInt aRingingVolume );
+ TInt InitObjL();
+ TInt SetupEmptyL();
+ TInt SetupEmptyValuesL();
+ TInt SetupUnknownFileL();
+ TInt SetupProtectedFileL();
+ TInt SetupExistingImageFileL();
+ TInt SetupExistingToneFileSilentL();
+ TInt SetupExistingToneFileVeryLowVolumeL();
+ TInt SetupExistingToneFileLowVolumeL();
+ TInt SetupExistingToneFileNormalVolumeL();
+ TInt SetupExistingToneFileTooLowVolumeL();
+ TInt SetupExistingToneFileTooHighVolumeL();
+ TInt SetupUnknownToneFileNormalVolumeL();
+ TInt SetupObjL();
+ TInt SetupEmptyShowL();
+ TInt SetupShowL();
+ TInt Teardown();
+
+ TInt TestConstructorL();
+ TInt TestConstructorNoMemoryL();
+ TInt TestLoadNoContentL();
+ TInt TestLoadHasContentL();
+ TInt TestLoadNoMemoryL();
+ TInt TestCancelLoadL();
+ TInt TestLoadWhenActiveL();
+ TInt TestStartL();
+ TInt TestCancelStartL();
+ TInt TestStartWhenActiveL();
+
+
+ // CtrTestSuite
+ TInt SetupEmptyCtrL();
+ TInt SetupObjCtrL();
+ TInt SetupObjLoadedCtrL();
+ TInt TeardownCtr();
+
+ TInt TestConstructorCtrL();
+ TInt TestConstructorNoMemoryCtrL();
+ TInt TestLoadEmptyCtrL();
+ TInt TestLoadImageCtrL();
+ TInt TestLoadToneCtrL();
+ TInt TestLoadBothCtrL();
+ TInt TestLoadWhenActiveCtrL();
+ TInt TestCancelLoadCtrL();
+
+ TInt TestStartCtrL();
+ TInt TestCancelStartCtrL();
+ TInt TestStartNoMemoryCtrL();
+ TInt TestStartWhenActiveCtrL();
+
+
+
+ /**
+ * Method used to log version of test class
+ */
+ void SendTestClassVersion();
+ private: // data
+ //ADD NEW METHOD DEC HERE
+ //[TestMethods] - Do not remove
+
+ /** Parent control for the object to be tested. */
+ CSAnimMockView& iView;
+
+
+ /** Parameters to use in testing. */
+ CSAnimStartupCtrl::TAnimationParams iParams;
+
+
+ /** Instance of the class that this test suite is testing. */
+ CSAnimStartupCtrl* iTestObj;
+
+ /** Instance of the class that this test suite is testing. */
+ CSAnimCtrl* iTestObj2;
+
+ /** For testing async calls. */
+ CTestWaiter* iWaiter;
+ CTestWaiter* iWaiter2;
+
+
+ };
+
+#endif // TSANIMCTRL_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/inc/sanimctrlrootsuite.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/inc/sanimctrlrootsuite.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CSAnimCtrlRootSuite class
+*
+*/
+
+
+#ifndef SANIMCTRLROOTSUITE_H
+#define SANIMCTRLROOTSUITE_H
+
+class CSAnimMockView;
+
+/**
+* Root test suite for SAnimCtrl tests.
+*
+* @lib None
+* @since S60 3.2
+*/
+class CSAnimCtrlRootSuite
+ {
+
+public:
+
+ /**
+ * Constructs a CSAnimCtrlRootSuite object.
+ *
+ * @since S60 3.2
+ *
+ * @return The new object
+ */
+ static CSAnimCtrlRootSuite* NewL();
+ static CSAnimCtrlRootSuite* NewLC();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CSAnimCtrlRootSuite();
+
+ /**
+ * Return a reference to the main view.
+ *
+ * @since S60 3.2
+ *
+ * @return A reference to the main view.
+ */
+ CSAnimMockView& MainView();
+
+private:
+
+ /**
+ * First phase constructor.
+ *
+ * @since S60 3.2
+ */
+ CSAnimCtrlRootSuite();
+
+ /**
+ * Second phase constructor.
+ *
+ * @since S60 3.2
+ */
+ void ConstructL();
+
+private: // data
+
+ /** Parent control for the objects to be tested. */
+ CSAnimMockView* iView;
+
+ };
+
+#endif // SANIMCTRLROOTSUITE_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/inc/sanimmockview.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/inc/sanimmockview.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,116 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CSAnimMockView class
+*
+*/
+
+
+#ifndef SANIMMOCKVIEW_H
+#define SANIMMOCKVIEW_H
+
+#include
+
+/**
+* For testing CSAnimCtrl.
+*
+* @lib None
+* @since S60 3.2
+*/
+class CSAnimMockView : public CCoeControl
+ {
+
+public:
+
+ /**
+ * Constructs a CSAnimMockView object.
+ *
+ * @since S60 3.2
+ *
+ * @return The new object
+ */
+ static CSAnimMockView* NewL();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CSAnimMockView();
+
+ /**
+ * Set a sub-control to this control.
+ *
+ * @since S60 3.2
+ */
+ void SetComponent( CCoeControl& aComponent );
+
+ /**
+ * Remove the sub-control from this control.
+ *
+ * @since S60 3.2
+ */
+ void RemoveComponent();
+
+protected:
+
+ /**
+ * First phase constructor.
+ *
+ * @since S60 3.2
+ */
+ CSAnimMockView();
+
+ /**
+ * Second phase constructor.
+ *
+ * @since S60 3.2
+ */
+ void ConstructL();
+
+ /**
+ * From CCoeControl.
+ *
+ * @since S60 3.2
+ *
+ * @return The number of controls contained in this control.
+ */
+ TInt CountComponentControls() const;
+
+ /**
+ * From CCoeControl.
+ *
+ * @since S60 3.2
+ *
+ * @param aIndex Identifies the component control to return.
+ * @return The component control at index given as parameter.
+ */
+ CCoeControl* ComponentControl( TInt aIndex ) const;
+
+ /**
+ * From CCoeControl.
+ *
+ * @since S60 3.2
+ *
+ * @param aRect The rectangle to draw into.
+ */
+ void Draw( const TRect& aRect ) const;
+
+private:
+
+ /** Component control. */
+ CCoeControl* iComponent;
+
+ };
+
+#endif // SANIMMOCKVIEW_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/inc/testwaiter.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/inc/testwaiter.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CTestWaiter class
+*
+*/
+
+
+#ifndef TESTWAITER_H
+#define TESTWAITER_H
+
+#include
+
+/**
+* Stops active scheduler in RunL.
+*
+* @lib None
+* @since S60 3.2
+*/
+class CTestWaiter : public CActive
+ {
+
+public:
+
+ /**
+ * Constructs a CTestWaiter object.
+ *
+ * @return The new object
+ * @since S60 3.2
+ */
+ static CTestWaiter* NewL();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CTestWaiter();
+
+ /**
+ * Set active.
+ *
+ * @since S60 3.2
+ */
+ void Activate();
+
+protected:
+
+ /**
+ * From CActive.
+ * Implements cancellation of an outstanding request.
+ *
+ * @since S60 3.2
+ */
+ virtual void DoCancel();
+
+ /**
+ * From CActive.
+ * Handles an active object's request completion event.
+ * Never leaves.
+ *
+ * @since S60 3.2
+ */
+ virtual void RunL();
+
+private:
+
+ /**
+ * First phase constructor.
+ *
+ */
+ CTestWaiter();
+
+private: // data
+
+ };
+
+#endif // TESTWAITER_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/init/TestFramework.ini
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/init/TestFramework.ini Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,221 @@
+#
+# This is STIF 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'.
+# + XML, Test report will be xml type, for example 'TestReport.xml'.
+# Note, that xml format is available only when output is set to FILE.
+#
+# - File output indicates output source of the test report.
+# + FILE, Test report logging to file.
+# + RDEBUG, Test report logging to using rdebug.
+#
+# - File Creation Mode indicates test report overwriting if file exist.
+# + OVERWRITE, Overwrites if the Test report file exist.
+# + APPEND, Continue logging after the old Test report information if
+# report exist.
+# - Sets a device reset module's dll name(Reboot).
+# + If Nokia specific reset module is not available or it is not correct one
+# StifHWResetStub module may use as a template for user specific reset
+# module.
+# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation
+# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02
+#
+
+[Engine_Defaults]
+
+TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment',
+ # 'TestCases' or 'FullReport'
+
+CreateTestReport= YES # Possible values: YES or NO
+
+TestReportFilePath= C:\LOGS\TestFramework\
+TestReportFileName= TestReport
+
+TestReportFormat= TXT # Possible values: TXT, HTML or XML
+TestReportOutput= FILE # Possible values: FILE or RDEBUG
+TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND
+
+DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting
+
+DisableMeasurement= stifmeasurementdisablenone # Possible values are:
+ # 'stifmeasurementdisablenone', 'stifmeasurementdisableall'
+ # 'stifmeasurementplugin01', 'stifmeasurementplugin02',
+ # 'stifmeasurementplugin03', 'stifmeasurementplugin04',
+ # 'stifmeasurementplugin05' or 'stifbappeaprofiler'
+
+Timeout= 0 # Default timeout value for each test case. In milliseconds
+UITestingSupport= YES # Possible values: YES or NO
+#SeparateProcesses= YES # Possible values: YES or NO (default: NO)
+[End_Defaults]
+
+[New_Module]
+ModuleName= testscripter
+TestCaseFile= c:\testframework\UI_Tsanimctrl.cfg
+[End_Module]
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Module configurations start
+# Modules are added between module tags
+# tags. Module name is specified after ModuleName= tag, like
+# ModuleName= XXXXXXXXX
+# Modules might have initialisation file, specified as
+# IniFile= c:\testframework\YYYYYY
+# Modules might have several configuration files, like
+# TestCaseFile= c:\testframework\NormalCases.txt
+# TestCaseFile= c:\testframework\SmokeCases.txt
+# TestCaseFile= c:\testframework\ManualCases.txt
+
+# (TestCaseFile is synonym for old term ConfigFile)
+
+# Following case specifies demo module settings. Demo module
+# does not read any settings from file, so tags
+# IniFile and TestCaseFile are not used.
+# In the simplest case it is enough to specify only the
+# name of the test module when adding new test module
+
+
+
+# Load testmoduleXXX, optionally with initialization file and/or test case files
+#[New_Module]
+#ModuleName= testmodulexxx
+
+#TestModuleXXX used initialization file
+#IniFile= c:\testframework\init.txt
+
+#TestModuleXXX used configuration file(s)
+#TestCaseFile= c:\testframework\testcases1.cfg
+#TestCaseFile= c:\testframework\testcases2.cfg
+#TestCaseFile= c:\testframework\manualtestcases.cfg
+
+#[End_Module]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set STIF 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.
+#
+# - Will write log file in unicode format.
+# + YES, Log file will be written in unicode format
+# + NO, Log will be written as normal, not unicode, file.
+#
+
+[Logger_Defaults]
+
+#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#'
+#NOTE: TestEngine and TestServer logging settings cannot change here
+
+#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
+
+#FileUnicode= YES # Possible values: YES or NO
+#AddTestCaseTitle= YES # Possible values: YES or NO
+[End_Logger_Defaults]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+
+
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+# Set filters to be used by ConsoleUI.
+# If you want to use filter with ConsoleUI, simply remove comments
+# from section below and provide valid filter entries.
+# Each filter line has to start with "filter= " keyword.
+# Filter can contain special wildcard characters:
+# * which stands for none or any literal;
+# ? which stands for single character.
+# Filters are not case-sensitive.
+
+#[Filters]
+#filter= *math*
+#filter= *radio*
+#[End_Filters]
+# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+
+# End of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/init/UI_TSanimctrl.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/init/UI_TSanimctrl.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,336 @@
+[Test]
+title Example
+create TSanimctrl foobar
+foobar Example pa ra me ters
+delete foobar
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyL
+CSAnimStartupCtrl TestConstructorL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyL
+CSAnimStartupCtrl TestConstructorNoMemoryL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyValuesL
+CSAnimStartupCtrl TestLoadNoContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupUnknownFileL
+CSAnimStartupCtrl TestLoadNoContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupProtectedFileL
+CSAnimStartupCtrl TestLoadNoContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingImageFileL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileSilentL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileVeryLowVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileLowVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileNormalVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileTooLowVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupExistingToneFileTooHighVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupUnknownToneFileNormalVolumeL
+CSAnimStartupCtrl TestLoadHasContentL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjL
+CSAnimStartupCtrl TestLoadNoMemoryL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjL
+CSAnimStartupCtrl TestCancelLoadL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjL
+CSAnimStartupCtrl TestLoadWhenActiveL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyShowL
+CSAnimStartupCtrl TestStartL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShowL
+CSAnimStartupCtrl TestStartL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShowL
+CSAnimStartupCtrl TestCancelStartL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupShowL
+CSAnimStartupCtrl TestStartWhenActiveL
+CSAnimStartupCtrl Teardown
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+
+// Obj2
+// ---------------------------------------------------------------------------
+// Test table
+//
+// ---------------------------------------------------------------------------
+//
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyCtr
+CSAnimStartupCtrl TestConstructorCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyCtr
+CSAnimStartupCtrl TestConstructorNoMemoryCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupEmptyCtr
+CSAnimStartupCtrl TestLoadEmptyCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadEmptyCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadImageCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadImageCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadToneCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadBothCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadBothCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestLoadWhenActiveCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjCtr
+CSAnimStartupCtrl TestCancelLoadCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestCancelStartCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartNoMemoryCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+[Test]
+title TestConstructorL
+create TSanimctrl CSAnimStartupCtrl
+CSAnimStartupCtrl SetupObjLoadedCtr
+CSAnimStartupCtrl TestStartWhenActiveCtr
+CSAnimStartupCtrl TeardownCtr
+delete CSAnimStartupCtrl
+[Endtest]
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/rom/UI_TSanimctrl.iby
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/rom/UI_TSanimctrl.iby Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,10 @@
+#ifndef __TSANIMCTRL_IBY__
+#define __TSANIMCTRL_IBY__
+
+file=ABI_DIR\BUILD_DIR\TSanimctrl.dll SHARED_LIB_DIR\TSanimctrl.dll
+
+//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini
+data=\epoc32\data\z\system\data\TSanimctrl.cfg \testframework\TSanimctrl.cfg
+
+
+#endif
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/src/TSanimctrl.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/src/TSanimctrl.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,212 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// INCLUDE FILES
+#include
+#include "TSanimctrl.h"
+#include
+
+const TInt KTestRepository( 0x0AA0151E ); // Repository to use for testing
+#include "sanimmockview.h"
+#include "sanimctrlrootsuite.h"
+
+
+// EXTERNAL DATA STRUCTURES
+//extern ?external_data;
+
+// EXTERNAL FUNCTION PROTOTYPES
+//extern ?external_function( ?arg_type,?arg_type );
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// MACROS
+//#define ?macro ?macro_def
+
+// LOCAL CONSTANTS AND MACROS
+//const ?type ?constant_var = ?constant;
+//#define ?macro_name ?macro_def
+
+// MODULE DATA STRUCTURES
+//enum ?declaration
+//typedef ?declaration
+
+// LOCAL FUNCTION PROTOTYPES
+//?type ?function_name( ?arg_type, ?arg_type );
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// ?function_name ?description.
+// ?description
+// Returns: ?value_1: ?description
+// ?value_n: ?description_line1
+// ?description_line2
+// -----------------------------------------------------------------------------
+//
+/*
+?type ?function_name(
+ ?arg_type arg, // ?description
+ ?arg_type arg) // ?description
+ {
+
+ ?code // ?comment
+
+ // ?comment
+ ?code
+ }
+*/
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::CTSanimctrl
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CTSanimctrl::CTSanimctrl(
+ CTestModuleIf& aTestModuleIf,CSAnimMockView& view ):
+ CScriptBase( aTestModuleIf ),
+ iView(view)
+ {
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CTSanimctrl::ConstructL()
+ {
+ //Read logger settings to check whether test case name is to be
+ //appended to log file name.
+ // iView = CSAnimMockView::NewL();
+ 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(KTSanimctrlLogFileWithTitle, &title);
+ }
+ else
+ {
+ logFileName.Copy(KTSanimctrlLogFile);
+ }
+
+ iLog = CStifLogger::NewL( KTSanimctrlLogPath,
+ logFileName,
+ CStifLogger::ETxt,
+ CStifLogger::EFile,
+ EFalse );
+
+ SendTestClassVersion();
+ iParams.iRepositoryUid = TUid::Uid( KTestRepository );
+ iParams.iAnimationPathKey = 1;
+ iParams.iFrameDelayKey = 2;
+ iParams.iTonePathKey = 3;
+ iParams.iVolumeKey = 4;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CTSanimctrl* CTSanimctrl::NewL(
+ CTestModuleIf& aTestModuleIf,CSAnimMockView& aview )
+ {
+ CTSanimctrl* self = new (ELeave) CTSanimctrl( aTestModuleIf,aview );
+ // CSAnimMockView *iView = CSAnimMockView::NewL();
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop();
+
+ return self;
+
+ }
+
+// Destructor
+CTSanimctrl::~CTSanimctrl()
+ {
+
+ // Delete resources allocated from test methods
+ Delete();
+
+ // Delete logger
+ delete iLog;
+
+ }
+
+//-----------------------------------------------------------------------------
+// CTSanimctrl::SendTestClassVersion
+// Method used to send version of test class
+//-----------------------------------------------------------------------------
+//
+void CTSanimctrl::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("TSanimctrl.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
+ {
+ CSAnimCtrlRootSuite* rootSuite = CSAnimCtrlRootSuite::NewL();
+ return ( CScriptBase* ) CTSanimctrl::NewL( aTestModuleIf ,rootSuite->MainView());
+
+ }
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/src/TSanimctrlBlocks.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/src/TSanimctrlBlocks.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,1026 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// [INCLUDE FILES] - do not remove
+#include
+#include
+#include
+#include "TSanimctrl.h"
+
+#include
+
+#include
+#include
+
+//#include "sanimstartupctrltestsuite.h"
+#include "sanimmockview.h"
+#include "testwaiter.h"
+
+
+#include "sanimctrl.h"
+//#include "sanimctrltestsuite.h"
+
+
+//#pragma tagging OFF // To disable CodeTest tagging
+
+_LIT( KDummyImageFile, "C:\\temp\\test.ti2" ); // There is a plug-in for this type
+_LIT( KDummyToneFile, "C:\\temp\\test.tt2" ); // There is a plug-in for this type
+//#pragma tagging OFF // To disable CodeTest tagging
+
+const TInt KTestRepository( 0x0AA0151E ); // Repository to use for testing
+
+_LIT( KUnknownFile, "C:\\temp\\unknown.unk" );
+_LIT( KProtectedFile, "Z:\\sys\\bin\\sysap.exe" );
+//_LIT( KDummyImageFile, "C:\\temp\\test.ti2" ); // There is a plug-in for this type
+//_LIT( KDummyToneFile, "C:\\temp\\test.tt2" ); // There is a plug-in for this type
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// ?function_name ?description.
+// ?description
+// Returns: ?value_1: ?description
+// ?value_n: ?description_line1
+// ?description_line2
+// -----------------------------------------------------------------------------
+//
+/*
+?type ?function_name(
+ ?arg_type arg, // ?description
+ ?arg_type arg) // ?description
+ {
+
+ ?code // ?comment
+
+ // ?comment
+ ?code
+ }
+*/
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::Delete
+// Delete here all resources allocated and opened from test methods.
+// Called from destructor.
+// -----------------------------------------------------------------------------
+//
+void CTSanimctrl::Delete()
+ {
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::RunMethodL
+// Run specified method. Contains also table of test mothods and their names.
+// -----------------------------------------------------------------------------
+//
+TInt CTSanimctrl::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.
+ ENTRY("Example", CTSanimctrl::ExampleL),
+ ENTRY("InitObj", CTSanimctrl::InitObjL),
+ ENTRY("SetupEmpty", CTSanimctrl::SetupEmptyL),
+ ENTRY("SetupEmptyValues", CTSanimctrl::SetupEmptyValuesL),
+ ENTRY("SetupUnknownFile", CTSanimctrl::SetupUnknownFileL),
+ ENTRY("SetupProtectedFile", CTSanimctrl::SetupProtectedFileL),
+ ENTRY("SetupExistingImageFile", CTSanimctrl::SetupExistingImageFileL),
+ ENTRY("SetupExistingToneFileSilent", CTSanimctrl::SetupExistingToneFileSilentL),
+ ENTRY("SetupExistingToneFileVeryLowVolume", CTSanimctrl::SetupExistingToneFileVeryLowVolumeL),
+ ENTRY("SetupExistingToneFileLowVolume", CTSanimctrl::SetupExistingToneFileLowVolumeL),
+ ENTRY("SetupExistingToneFileNormalVolume", CTSanimctrl::SetupExistingToneFileNormalVolumeL),
+ ENTRY("SetupExistingToneFileTooLowVolume", CTSanimctrl::SetupExistingToneFileTooLowVolumeL),
+ ENTRY("SetupExistingToneFileTooHighVolume", CTSanimctrl::SetupExistingToneFileTooHighVolumeL),
+ ENTRY("SetupUnknownToneFileNormalVolume", CTSanimctrl::SetupUnknownToneFileNormalVolumeL),
+ ENTRY("SetupObj", CTSanimctrl::SetupObjL),
+ ENTRY("SetupEmptyShow", CTSanimctrl::SetupEmptyShowL),
+ ENTRY("SetupShow", CTSanimctrl::SetupShowL),
+ ENTRY("Teardown", CTSanimctrl::Teardown),
+ ENTRY("TestConstructor", CTSanimctrl::TestConstructorL),
+ ENTRY("TestConstructorNoMemory", CTSanimctrl::TestConstructorNoMemoryL),
+ ENTRY( "TestLoadNoContent", CTSanimctrl::TestLoadNoContentL),
+ ENTRY("TestLoadHasContent", CTSanimctrl::TestLoadHasContentL),
+ ENTRY("TestLoadNoMemory", CTSanimctrl::TestLoadNoMemoryL),
+ ENTRY("TestCancelLoad", CTSanimctrl::TestCancelLoadL),
+ ENTRY("TestLoadWhenActive", CTSanimctrl::TestLoadWhenActiveL),
+ ENTRY("TestStart", CTSanimctrl::TestStartL),
+ ENTRY("TestCancelStart", CTSanimctrl::TestCancelStartL),
+ ENTRY("TestStartWhenActive", CTSanimctrl::TestStartWhenActiveL),
+
+ ENTRY("SetupEmptyCtr", CTSanimctrl::SetupEmptyCtrL),
+ ENTRY("SetupObjCtr", CTSanimctrl::SetupObjCtrL),
+ ENTRY("SetupObjLoadedCtr", CTSanimctrl::SetupObjLoadedCtrL),
+ ENTRY("TeardownCtr", CTSanimctrl::TeardownCtr),
+ ENTRY("TestConstructorCtr", CTSanimctrl::TestConstructorCtrL),
+ ENTRY("TestConstructorNoMemoryCtr", CTSanimctrl::TestConstructorNoMemoryCtrL),
+ ENTRY("TestLoadEmptyCtr", CTSanimctrl::TestLoadEmptyCtrL),
+ ENTRY("TestLoadImageCtr", CTSanimctrl::TestLoadImageCtrL),
+ ENTRY("TestLoadToneCtr", CTSanimctrl::TestLoadToneCtrL),
+ ENTRY("TestLoadBothCtr", CTSanimctrl::TestLoadBothCtrL),
+ ENTRY("TestLoadWhenActiveCtr", CTSanimctrl::TestLoadWhenActiveCtrL),
+ ENTRY("TestCancelLoadCtr", CTSanimctrl::TestCancelLoadCtrL),
+ ENTRY("TestStartCtr", CTSanimctrl::TestStartCtrL),
+ ENTRY("TestCancelStartCtr", CTSanimctrl::TestCancelStartCtrL),
+ ENTRY("TestStartNoMemoryCtr",CTSanimctrl::TestStartNoMemoryCtrL),
+ ENTRY("TestStartWhenActiveCtr",CTSanimctrl::TestStartWhenActiveCtrL)
+ //ADD NEW ENTRY HERE
+ // [test cases entries] - Do not remove
+
+ };
+
+ const TInt count = sizeof( KFunctions ) /
+ sizeof( TStifFunctionInfo );
+
+ return RunInternalL( KFunctions, count, aItem );
+
+ }
+
+// Praveen-2
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::SetupEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupEmptyCtrL()
+ {
+ iTestObj2 = NULL;
+ iWaiter = CTestWaiter::NewL();
+ iWaiter2 = CTestWaiter::NewL();
+ iView.SetComponent( *iTestObj2 );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::SetupObjL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupObjCtrL()
+ {
+ SetupEmptyCtrL();
+ //CSAnimMockView& view = *iView;
+ iTestObj2 = CSAnimCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj2 );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::SetupObjLoadedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupObjLoadedCtrL()
+ {
+ SetupObjCtrL();
+ iTestObj2->Load(
+ KDummyImageFile, 1000, ETrue, 1,
+ KDummyToneFile, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // User::LeaveIfError( iWaiter->iStatus.Int() );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::Teardown
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TeardownCtr()
+ {
+ delete iWaiter;
+ iWaiter = NULL;
+ delete iWaiter2;
+ iWaiter2 = NULL;
+ delete iTestObj;
+ iTestObj2 = NULL;
+
+ REComSession::FinalClose();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestConstructorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestConstructorCtrL()
+ {
+ //CSAnimMockView& view = *iView;
+ iTestObj2 = CSAnimCtrl::NewL( iView.Rect(), iView );
+ //STIF_ASSERT_EQUALS( iTestObj,KErrNone );
+ delete iTestObj;
+ iTestObj = NULL;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestConstructorNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestConstructorNoMemoryCtrL()
+ {
+ //CSAnimMockView& view = *iView;
+ iTestObj2 = CSAnimCtrl::NewL( iView.Rect(), iView );
+ //STIF_ASSERT_EQUALS( !iTestObj , KErrNone);
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestLoadEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadEmptyCtrL()
+ {
+ /*
+ * Returns panic.. valid condition
+ [Test]
+ title TestLoadEmptyCtr
+ create TSanimctrl CSAnimStartupCtrl
+ CSAnimStartupCtrl SetupEmptyCtr
+ CSAnimStartupCtrl TestLoadEmptyCtr
+ CSAnimStartupCtrl TeardownCtr
+ delete CSAnimStartupCtrl
+ [Endtest]
+
+ iTestObj2->Load(
+ KNullDesC, 1000, ETrue, 1,
+ KNullDesC, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ *
+ */
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestLoadImageL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadImageCtrL()
+ {
+ iTestObj2->Load(
+ KDummyImageFile, 1000, ETrue, 1,
+ KNullDesC, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+// STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestLoadToneL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadToneCtrL()
+ {
+ iTestObj2->Load(
+ KNullDesC, 1000, ETrue, 1,
+ KDummyToneFile, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestLoadBothL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadBothCtrL()
+ {
+ iTestObj2->Load(
+ KDummyImageFile, 1000, ETrue, 1,
+ KDummyToneFile, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestLoadWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadWhenActiveCtrL()
+ {
+ iTestObj2->Load(
+ KDummyImageFile, 1000, ETrue, 1,
+ KNullDesC, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj2->Load(
+ KNullDesC, 1000, ETrue, 1,
+ KDummyToneFile, 4, 0, 1,
+ iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+// STIF_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestCancelLoadL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestCancelLoadCtrL()
+ {
+ iTestObj2->Load(
+ KDummyImageFile, 1000, ETrue, 1,
+ KDummyToneFile, 4, 0, 1,
+ iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj2->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrCancel );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestStartL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestStartCtrL()
+ {
+ iTestObj2->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ //STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestCancelStartL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestCancelStartCtrL()
+ {
+ /*
+ [Test]
+ title TestCancelStartCtr
+ create TSanimctrl CSAnimStartupCtrl
+ CSAnimStartupCtrl SetupObjLoadedCtr
+ CSAnimStartupCtrl TestCancelStartCtr
+ CSAnimStartupCtrl TeardownCtr
+ delete CSAnimStartupCtrl
+ [Endtest]
+
+ iTestObj2->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj2->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // if ( iWaiter->iStatus.Int() == KErrCancel )
+ *
+ */
+ return KErrNone;
+
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestStartNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestStartNoMemoryCtrL()
+ {
+ iTestObj2->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ //STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone ); // Mock plug-in does not reserve memory in Load
+ return KErrNone;
+ }
+
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlTestSuite::TestStartWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestStartWhenActiveCtrL()
+ {
+ iTestObj2->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj2->Start( iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+//Praveen-2
+
+// ======== MEMBER FUNCTIONS ========
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupParamsL
+//
+// ---------------------------------------------------------------------------
+//
+void CTSanimctrl::SetupParamsL(
+ const TDesC& aImageFileName,
+ const TDesC& aToneFileName,
+ const TInt aFrameDelay,
+ const TInt aVolume,
+ const TInt /*aVolumeRamp*/ )
+ {
+ CRepository* repository = CRepository::NewLC( TUid::Uid( KTestRepository ) );
+ User::LeaveIfError( repository->Set( iParams.iAnimationPathKey, aImageFileName ) );
+ User::LeaveIfError( repository->Set( iParams.iTonePathKey, aToneFileName ) );
+ User::LeaveIfError( repository->Set( iParams.iFrameDelayKey, aFrameDelay ) );
+ User::LeaveIfError( repository->Set( iParams.iVolumeKey, aVolume ) );
+ CleanupStack::PopAndDestroy( repository );
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupProfileL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupProfileL( const TInt aRingingType, const TInt aRingingVolume )
+ {
+ CRepository* repository = CRepository::NewLC( KCRUidProfileEngine );
+ User::LeaveIfError( repository->Set( KProEngActiveRingingType, aRingingType ) );
+ User::LeaveIfError( repository->Set( KProEngActiveRingingVolume, aRingingVolume ) );
+ CleanupStack::PopAndDestroy( repository );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::InitObjL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::InitObjL()
+ {
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ iTestObj->Load (iParams,ETrue,0,iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ return KErrNone;
+ }
+
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupEmptyL()
+ {
+ SetupParamsL( KNullDesC, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ iTestObj = NULL;
+ iWaiter = CTestWaiter::NewL();
+ iWaiter2 = CTestWaiter::NewL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupEmptyValuesL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupEmptyValuesL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupUnknownFileL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupUnknownFileL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KUnknownFile, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ //iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupProtectedFileL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupProtectedFileL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KProtectedFile, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ // CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingImageFileL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingImageFileL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KDummyImageFile, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileSilentL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileSilentL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, 2, 0 );
+ SetupProfileL( EProfileRingingTypeSilent, 4 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileVeryLowVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileVeryLowVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, 2, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 0 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileLowVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileLowVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, 2, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 1 );
+ // iView = CSAnimMockView::NewL();
+ // CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileNormalVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileNormalVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, 2, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileTooLowVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileTooLowVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, -1, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupExistingToneFileTooHighVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupExistingToneFileTooHighVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KDummyToneFile, 0, 11, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupUnknownToneFileNormalVolumeL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupUnknownToneFileNormalVolumeL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KUnknownFile, 0, 2, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ // iView = CSAnimMockView::NewL();
+ // CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupObjL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupObjL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KDummyImageFile, KDummyToneFile, 0, 4, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ //iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ iView.SetComponent( *iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupEmptyShowL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupEmptyShowL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KNullDesC, KNullDesC, 0, 0, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ InitObjL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::SetupShowL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::SetupShowL()
+ {
+ SetupEmptyL();
+ SetupParamsL( KDummyImageFile, KDummyToneFile, 0, 4, 0 );
+ SetupProfileL( EProfileRingingTypeRinging, 4 );
+ InitObjL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::Teardown
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::Teardown()
+ {
+ delete iWaiter;
+ iWaiter = NULL;
+ delete iWaiter2;
+ iWaiter2 = NULL;
+ delete iTestObj;
+ iTestObj = NULL;
+
+ REComSession::FinalClose();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestConstructorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestConstructorL()
+ {
+ iView.SetComponent( *iTestObj );
+ // iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj =CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ //STIF_ASSERT_EQUALS( iTestObj,1 );
+ delete iTestObj;
+ iTestObj = NULL;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestConstructorNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestConstructorNoMemoryL()
+ {
+ //iView = CSAnimMockView::NewL();
+ //CSAnimMockView& view = *iView;
+ iTestObj = CSAnimStartupCtrl::NewL( iView.Rect(), iView );
+ // STIF_ASSERT_EQUALS( !iTestObj,0 );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestLoadNoContentL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadNoContentL()
+ {
+ iTestObj->Load( iParams, EFalse, 0, iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ //STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ // STIF_ASSERT_EQUALS( iTestObj->HasContent(), EFalse );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestLoadHasContentL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadHasContentL()
+ {
+ iTestObj->Load( iParams, ETrue, 1, iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ // STIF_ASSERT_EQUALS( iTestObj->HasContent(), ETrue );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestLoadNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadNoMemoryL()
+ {
+ iTestObj->Load( iParams, EFalse, 1, iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNoMemory );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestCancelLoadL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestCancelLoadL()
+ {
+ iTestObj->Load( iParams, ETrue, 0, iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrCancel );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestLoadWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestLoadWhenActiveL()
+ {
+ iTestObj->Load( iParams, ETrue, 0, iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Load( iParams, ETrue, 0, iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestStartL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestStartL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestCancelStartL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestCancelStartL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrCancel );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimStartupCtrlTestSuite::TestStartWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimctrl::TestStartWhenActiveL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Start( iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // STIF_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::ExampleL
+// Example test method function.
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+TInt CTSanimctrl::ExampleL( CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTSanimctrl, "TSanimctrl" );
+ _LIT( KExample, "In Example" );
+ TestModuleIf().Printf( 0, KTSanimctrl, KExample );
+ // Print to log file
+ iLog->Log( KExample );
+
+ TInt i = 0;
+ TPtrC string;
+ _LIT( KParam, "Param[%i]: %S" );
+ while ( aItem.GetNextString ( string ) == KErrNone )
+ {
+ TestModuleIf().Printf( i, KTSanimctrl,
+ KParam, i, &string );
+ i++;
+ }
+
+ return KErrNone;
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimctrl::?member_function
+// ?implementation_description
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+/*
+TInt CTSanimctrl::?member_function(
+ CItemParser& aItem )
+ {
+
+ ?code
+
+ }
+*/
+
+// ========================== OTHER EXPORTED FUNCTIONS =========================
+// None
+
+// [End of File] - Do not remove
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/src/sanimctrlrootsuite.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/src/sanimctrlrootsuite.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,96 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of CSAnimCtrlRootSuite class
+*
+*/
+
+
+#include "sanimctrlrootsuite.h"
+#include "sanimmockview.h"
+
+#pragma tagging OFF // To disable CodeTest tagging
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::NewL
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimCtrlRootSuite* CSAnimCtrlRootSuite::NewL()
+ {
+ CSAnimCtrlRootSuite* self = CSAnimCtrlRootSuite::NewLC();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::NewLC
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimCtrlRootSuite* CSAnimCtrlRootSuite::NewLC()
+ {
+ CSAnimCtrlRootSuite* self = new( ELeave ) CSAnimCtrlRootSuite;
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::~CSAnimCtrlRootSuite
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimCtrlRootSuite::~CSAnimCtrlRootSuite()
+ {
+ delete iView;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::MainView
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimMockView& CSAnimCtrlRootSuite::MainView()
+ {
+ return *iView;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::CSAnimCtrlRootSuite
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimCtrlRootSuite::CSAnimCtrlRootSuite()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimCtrlRootSuite::ConstructL
+//
+// ---------------------------------------------------------------------------
+//
+void CSAnimCtrlRootSuite::ConstructL()
+ {
+ iView = CSAnimMockView::NewL();
+ }
+
+
+#pragma tagging ON // To stop disabling CodeTest tagging
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/src/sanimmockview.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/src/sanimmockview.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,144 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of CSAnimMockView class
+*
+*/
+
+
+#include "sanimmockview.h"
+#include "trace.h"
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::NewL
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimMockView* CSAnimMockView::NewL()
+ {
+ FUNC_LOG;
+
+ CSAnimMockView* self = new( ELeave ) CSAnimMockView;
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::~CSAnimMockView
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimMockView::~CSAnimMockView()
+ {
+ FUNC_LOG;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::SetComponent
+//
+// ---------------------------------------------------------------------------
+//
+void CSAnimMockView::SetComponent( CCoeControl& aComponent )
+ {
+ FUNC_LOG;
+
+ iComponent = &aComponent;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::RemoveComponent
+//
+// ---------------------------------------------------------------------------
+//
+void CSAnimMockView::RemoveComponent()
+ {
+ FUNC_LOG;
+
+ iComponent = NULL;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::CSAnimMockView
+//
+// ---------------------------------------------------------------------------
+//
+CSAnimMockView::CSAnimMockView()
+ {
+ FUNC_LOG;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::ConstructL
+//
+// ---------------------------------------------------------------------------
+//
+void CSAnimMockView::ConstructL()
+ {
+ FUNC_LOG;
+
+ CreateWindowL();
+ SetRect( TRect( 0, 0, 256, 256 ) );
+ ActivateL();
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::CountComponentControls
+//
+// ---------------------------------------------------------------------------
+TInt CSAnimMockView::CountComponentControls() const
+ {
+ if ( iComponent ) return 1;
+ return 0;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimMockView::ComponentControl
+//
+// ---------------------------------------------------------------------------
+
+CCoeControl* CSAnimMockView::ComponentControl( TInt /*aIndex*/ ) const
+ {
+ return iComponent;
+ }
+
+
+// ---------------------------------------------------------
+// CSAnimMockView::Draw
+//
+// ---------------------------------------------------------
+//
+void CSAnimMockView::Draw( const TRect& aRect ) const
+ {
+ FUNC_LOG;
+
+ CWindowGc& gc = SystemGc();
+
+ gc.Clear( aRect );
+ gc.SetPenStyle( CGraphicsContext::ENullPen );
+ gc.SetBrushColor( KRgbDarkYellow );
+ gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
+ gc.Clear();
+
+ }
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimctrl/src/testwaiter.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimctrl/src/testwaiter.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of CTestWaiter class
+*
+*/
+
+
+#include "testwaiter.h"
+
+#pragma tagging OFF // To disable CodeTest tagging
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::NewL
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter* CTestWaiter::NewL()
+ {
+ CTestWaiter* self = new( ELeave ) CTestWaiter;
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::~CTestWaiter
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter::~CTestWaiter()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::Activate
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::Activate()
+ {
+ __ASSERT_ALWAYS( !IsActive(), User::Invariant() );
+
+ SetActive();
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::CTestWaiter
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter::CTestWaiter()
+ : CActive( EPriorityStandard )
+ {
+ CActiveScheduler::Add( this );
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::DoCancel
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::DoCancel()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::RunL
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::RunL()
+ {
+ CActiveScheduler::Stop();
+ }
+
+#pragma tagging ON // To stop disabling CodeTest tagging
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/Bmarm/TSanimengineU.DEF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/Bmarm/TSanimengineU.DEF Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/Bwins/TSanimengineu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/Bwins/TSanimengineu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/conf/UI_TSanimEngine.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/conf/UI_TSanimEngine.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,525 @@
+[Test]
+title Example
+create TSanimengine CSAnimEngine
+CSAnimEngine Example pa ra me ters
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestConstructor
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupEmpty
+CSAnimEngine TestConstructor
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title TestConstructorNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupEmpty
+CSAnimEngine TestConstructorNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title TestConstructor
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestExtensionlessFile
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title TestConstructor
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestTooLongExtension
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title SetImagePropertiesUnknownExtension
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesUnknownExtension
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesUnknownExtensionNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesUnknownExtensionNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesKnownExtension
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesKnownExtension
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title SetImagePropertiesKnownExtensionNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesKnownExtensionNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesManyPlugins
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesManyPlugins
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title SetImagePropertiesManyPluginsNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesManyPluginsNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesWildcardMatch
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesWildcardMatch
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesWildcardMatchNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesWildcardMatchNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesManyExtensions
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesManyExtensions
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title SetImagePropertiesManyExtensionsNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesManyExtensionsNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title SetTonePropertiesKnownExtension
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesKnownExtension
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title SetTonePropertiesKnownExtensionNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesKnownExtensionNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title SetTonePropertiesManyPlugins
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesManyPlugins
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetTonePropertiesManyPluginsNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesManyPluginsNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetTonePropertiesWildcardMatch
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesWildcardMatch
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetTonePropertiesWildcardMatchNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetTonePropertiesWildcardMatchNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadEmpty
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestLoadEmpty
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title TestCancelLoadEmpty
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestCancelLoadEmpty
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestLoadNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+
+[Test]
+title TestCancelLoad
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePlugin
+CSAnimEngine TestCancelLoad
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesUnknownExtensionNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePlugin
+CSAnimEngine TestLoadNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestCancelLoad
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupTonePlugin
+CSAnimEngine TestCancelLoad
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupTonePlugin
+CSAnimEngine TestLoadNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadImagePluginFaster
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePluginFaster
+CSAnimEngine TestLoadImagePluginFaster
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadTonePluginFaster
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupTonePluginFaster
+CSAnimEngine TestLoadTonePluginFaster
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetImagePropertiesUnknownExtensionNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine SetImagePropertiesUnknownExtensionNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadImagePluginReturnsError
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePluginReturnsError
+CSAnimEngine TestLoadImagePluginReturnsError
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+[Test]
+title TestLoadTonePluginReturnsError
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupTonePluginReturnsError
+CSAnimEngine TestLoadTonePluginReturnsError
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestBackroundColour
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImageLoaded
+CSAnimEngine TestBackroundColour
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestBackroundColour
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupToneLoaded
+CSAnimEngine TestBackroundColour
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestCancelNotActive
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePlugin
+CSAnimEngine TestCancelNotActive
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadWhenActive
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupTonePlugin
+CSAnimEngine TestLoadWhenActive
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStartWhenActive
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImageLoaded
+CSAnimEngine TestStartWhenActive
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStartWhenActiveL
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupToneLoaded
+CSAnimEngine TestStartWhenActive
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title TestStart
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupObj
+CSAnimEngine TestStart
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title TestStartNotReady
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImagePlugin
+CSAnimEngine TestStartNotReady
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStart
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupImageLoaded
+CSAnimEngine TestStart
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStart
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupToneLoaded
+CSAnimEngine TestStart
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStart
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothLoaded
+CSAnimEngine TestStart
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title TestLoadAgain
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothLoaded
+CSAnimEngine TestLoadAgain
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStartAgain
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothFinished
+CSAnimEngine TestStartAgain
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title TestLoadAndStartAnotherShow
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothFinished
+CSAnimEngine TestLoadAndStartAnotherShow
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestLoadAndStartEmptyShowAfterAnotherShow
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothFinished
+CSAnimEngine TestLoadAndStartEmptyShowAfterAnotherShow
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+[Test]
+title SetImagePropertiesManyPluginsNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothFinished
+CSAnimEngine SetImagePropertiesManyPluginsNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title SetTonePropertiesManyPluginsNoMemory
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupBothFinished
+CSAnimEngine SetTonePropertiesManyPluginsNoMemory
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStartWhenLoadFailed
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupLoadFailed
+CSAnimEngine TestStartWhenLoadFailed
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+[Test]
+title TestStartWhenLoadFailed
+create TSanimengine CSAnimEngine
+CSAnimEngine SetupLoadFailed
+CSAnimEngine TestStartWhenLoadFailed
+CSAnimEngine Teardown
+delete CSAnimEngine
+[Endtest]
+
+
+
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/eabi/TSanimengineu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/eabi/TSanimengineu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*TYPE TESTCLASS*/
+/*
+* 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: MMP file for STIF Test Framework's TestScripter
+* testclass test module.
+*
+*/
+
+#include
+
+SMPSAFE
+
+TARGET TSanimengine.dll
+TARGETTYPE dll
+UID 0x1000008D 0x101FB3E3
+
+CAPABILITY ALL -TCB
+/* Remove comments and replace 0x00000000 with correct vendor id */
+// VENDORID 0x00000000
+/* Remove comments and replace 0x00000000 with correct secure id */
+// SECUREID 0x00000000
+
+//TARGETPATH ?target_path
+DEFFILE TSanimengine.def
+
+USERINCLUDE ../inc
+USERINCLUDE ../inc
+USERINCLUDE ../../inc
+USERINCLUDE ../../../../../../inc
+USERINCLUDE ../../../../sanimengine/inc
+
+OS_LAYER_SYSTEMINCLUDE
+
+SOURCEPATH ../src
+
+SOURCE TSanimengine.cpp
+SOURCE TSanimengineBlocks.cpp
+SOURCE testwaiter.cpp
+
+//RESOURCE resource_file
+//RESOURCE resource_file2
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY stiftestengine.lib
+LIBRARY ecom.lib
+LIBRARY efsrv.lib
+LIBRARY euser.lib
+LIBRARY sanimengine.lib
+
+
+EPOCALLOWDLLDATA
+LANG SC
+
+/*
+START WINS
+?wins_specific_information
+END
+
+START MARM
+?marm_specific_information
+END
+*/
+// Other possible keywords:
+
+// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes)
+/*
+START BITMAP ?target
+TARGETPATH ?emulated_path_on_target_machine
+HEADER
+SOURCE ?color_depth ?source_bitmap
+END
+*/
+// DEFFILE ?filename
+// AIF ?filename
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+; Installation file for STIF
+;
+
+; Languages
+&EN
+
+; Provide value for uid
+#{"STIF"},(0x00000000),1,1,0,TYPE=SA
+
+; Series60 product id for S60 3.0
+[0x101F7961], 0, 0, 0, {"Series60ProductID"}
+
+; Localised Vendor name
+%{"Nokia"}
+
+; Unique Vendor name
+:"Nokia"
+
+; Logo
+; None
+
+; Package signature - Optional
+; None
+
+; Start of Package body
+
+; Condition blocks
+; None
+
+; Options list
+; None
+
+; Install files
+"\epoc32\release\armv5\udeb\TSanimengine.dll" - "!:\Sys\Bin\TSanimengine.dll"
+
+; Embedded SIS
+; None
+
+; End of Package body
+
+; PKG dependencies
+; None
+
+; PKG capabilities
+; None
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine_DoxyFile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/group/TSanimengine_DoxyFile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,240 @@
+#
+# 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:
+#
+#
+
+# Doxyfile 1.4.1
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = TSanimengine
+PROJECT_NUMBER =
+OUTPUT_DIRECTORY = x:\TSanimengine\
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = YES
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = NO
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = NO
+EXTRACT_STATIC = NO
+EXTRACT_LOCAL_CLASSES = NO
+EXTRACT_LOCAL_METHODS = NO
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = YES
+INLINE_INFO = YES
+SORT_MEMBER_DOCS = YES
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = NO
+WARNINGS = YES
+WARN_IF_UNDOCUMENTED = YES
+WARN_IF_DOC_ERROR = YES
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = x:\TSanimengine\
+FILE_PATTERNS = *.h \
+ *.rh \
+ *.hrh
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+VERBATIM_HEADERS = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = YES
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = YES
+TOC_EXPAND = YES
+DISABLE_INDEX = YES
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = YES
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = YES
+RTF_OUTPUT = Doc
+COMPACT_RTF = YES
+RTF_HYPERLINKS = YES
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = NO
+XML_OUTPUT = xml
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = NONSHARABLE_CLASS
+EXPAND_AS_DEFINED =
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = YES
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = YES
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+/*
+* 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:
+*
+*/
+
+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_TESTEXPORTS
+// NOTE: If using ARS requirements all export operations should be done under this.
+// 'abld test export'
+
+PRJ_EXPORTS
+// Specify the source file followed by its destination here
+// copy will be used to copy the source file to its destination
+// If there's no destination then the source file will be copied
+// to the same name in \epoc32\include
+// Example:
+/*
+\agnmodel\inc\AGMCOMON.H
+*/
+
+PRJ_TESTMMPFILES
+
+ TSanimengine.mmp
+
+PRJ_MMPFILES
+
+ TSanimengine.mmp
+
+// Specify the .mmp files required for building the important component
+// releasables.
+//
+// Specify "tidy" if the component you need to build doesn't need to be
+// released. Specify "ignore" if the MMP file exists but should be
+// ignored.
+// Example:
+/*
+\agnmodel\group\agnmodel.mmp
+#if defined(MARM)
+\agnmodel\group\agsvexe.mmp
+#endif
+*/
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/group/ctcerr.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/group/ctcerr.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,446 @@
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -version
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -version
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -version
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 -version
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengineBlocks.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimengine/src/TSanimengineBlocks.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-5052.rsp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimengine/src/TSanimengine.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-5984.rsp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/testwaiter.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimengine/src/testwaiter.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-2152.rsp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.prep.def
+argv[2]: -importlib
+argv[3]: -o
+argv[4]: Z:/epoc32/release/winscw/udeb/TSanimengine.lib
+argv[5]: -addcommand
+argv[6]: out:TSanimengine.dll
+argv[7]: -warnings
+argv[8]: off
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.prep.def -importlib -o Z:/epoc32/release/winscw/udeb/TSanimengine.lib -addcommand out:TSanimengine.dll -warnings off
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimengine/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine_UID_.o
+argv[72]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.UID.CPP
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-5580.rsp
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -msgstyle
+argv[2]: gcc
+argv[3]: -stdlib
+argv[4]: -subsystem
+argv[5]: windows
+argv[6]: -g
+argv[7]: -main
+argv[8]: __Win32DllMain@12
+argv[9]: -shared
+argv[10]: -m
+argv[11]: __E32Dll
+argv[12]: -export
+argv[13]: dllexport
+argv[14]: -nocompactimportlib
+argv[15]: -addcommand
+argv[16]: out:TSanimengine.dll
+argv[17]: -warnings
+argv[18]: off
+argv[19]: -implib
+argv[20]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.lib
+argv[21]: -o
+argv[22]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.dll
+argv[23]: Z:/epoc32/release/winscw/udeb/edll.lib
+argv[24]: Z:/epoc32/release/winscw/udeb/scppnwdl.lib
+argv[25]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[26]: Z:/epoc32/release/winscw/udeb/stiftestinterface.lib
+argv[27]: Z:/epoc32/release/winscw/udeb/stiftestengine.lib
+argv[28]: Z:/epoc32/release/winscw/udeb/ecom.lib
+argv[29]: Z:/epoc32/release/winscw/udeb/efsrv.lib
+argv[30]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[31]: Z:/epoc32/release/winscw/udeb/sanimengine.lib
+argv[32]: -l
+argv[33]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb
+argv[34]: -search
+argv[35]: @Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine_udeb_objects.lrf
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 @ctc-mwldsym2-2456.rsp
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -S
+argv[2]: -show
+argv[3]: only,names,unmangled,verbose
+argv[4]: -o
+argv[5]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.inf
+argv[6]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.lib
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -S -show only,names,unmangled,verbose -o Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.inf Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.lib
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -msgstyle
+argv[2]: gcc
+argv[3]: -stdlib
+argv[4]: -subsystem
+argv[5]: windows
+argv[6]: -g
+argv[7]: -main
+argv[8]: __Win32DllMain@12
+argv[9]: -shared
+argv[10]: -f
+argv[11]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.def
+argv[12]: Z:/epoc32/release/winscw/udeb/edll.lib
+argv[13]: Z:/epoc32/release/winscw/udeb/scppnwdl.lib
+argv[14]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[15]: Z:/epoc32/release/winscw/udeb/stiftestinterface.lib
+argv[16]: Z:/epoc32/release/winscw/udeb/stiftestengine.lib
+argv[17]: Z:/epoc32/release/winscw/udeb/ecom.lib
+argv[18]: Z:/epoc32/release/winscw/udeb/efsrv.lib
+argv[19]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[20]: Z:/epoc32/release/winscw/udeb/sanimengine.lib
+argv[21]: -o
+argv[22]: Z:/epoc32/release/winscw/udeb/TSanimengine.dll
+argv[23]: -noimplib
+argv[24]: -l
+argv[25]: Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb
+argv[26]: -search
+argv[27]: @Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine_udeb_objects.lrf
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -msgstyle gcc -stdlib -subsystem windows -g -main __Win32DllMain@12 -shared -f Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine.def Z:/epoc32/release/winscw/udeb/edll.lib Z:/epoc32/release/winscw/udeb/scppnwdl.lib Z:/epoc32/release/winscw/udeb/euser.lib Z:/epoc32/release/winscw/udeb/stiftestinterface.lib Z:/epoc32/release/winscw/udeb/stiftestengine.lib Z:/epoc32/release/winscw/udeb/ecom.lib Z:/epoc32/release/winscw/udeb/efsrv.lib Z:/epoc32/release/winscw/udeb/euser.lib Z:/epoc32/release/winscw/udeb/sanimengine.lib -o Z:/epoc32/release/winscw/udeb/TSanimengine.dll -noimplib -l Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb -search @Z:/epoc32/build/tsanimengine/c_1bbf18bc990ee84e/tsanimengine_dll/winscw/udeb/TSanimengine_udeb_objects.lrf
+*** CTC++/ctcagent command status: 0
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/inc/TSanimengine.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/inc/TSanimengine.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,264 @@
+/*
+* 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: STIF testclass declaration
+*
+*/
+
+#ifndef TSANIMENGINE_H
+#define TSANIMENGINE_H
+
+// INCLUDES
+#include
+#include
+#include
+#include
+
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// 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( KTSanimengineLogPath, "\\logs\\testframework\\TSanimengine\\" );
+// Log file
+_LIT( KTSanimengineLogFile, "TSanimengine.txt" );
+_LIT( KTSanimengineLogFileWithTitle, "TSanimengine_[%S].txt" );
+
+
+#include
+#include "sanimobserver.h"
+
+class CSAnimEngine;
+class CTestWaiter;
+
+class TMockAnimationObserver : public MSAnimObserver
+ {
+public:
+ TMockAnimationObserver() {}
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/, const CFbsBitmap& /*aMask*/ ) {}
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/ ) {}
+ };
+
+class CTSanimengine;
+
+// DATA TYPES
+//enum ?declaration
+//typedef ?declaration
+//extern ?data_type;
+
+// CLASS DECLARATION
+
+/**
+* CTSanimengine test class for STIF Test Framework TestScripter.
+* ?other_description_lines
+*
+* @lib ?library
+* @since ?Series60_version
+*/
+NONSHARABLE_CLASS(CTSanimengine) : public CScriptBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CTSanimengine* NewL( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CTSanimengine();
+
+ public: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ public: // Functions from base classes
+
+ /**
+ * From CScriptBase Runs a script line.
+ * @since ?Series60_version
+ * @param aItem Script line containing method name and parameters
+ * @return Symbian OS error code
+ */
+ virtual TInt RunMethodL( CStifItemParser& aItem );
+
+ protected: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ protected: // Functions from base classes
+
+ /**
+ * From ?base_class ?member_description
+ */
+ //?type ?member_function();
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CTSanimengine( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ // Prohibit copy constructor if not deriving from CBase.
+ // ?classname( const ?classname& );
+ // Prohibit assigment operator if not deriving from CBase.
+ // ?classname& operator=( const ?classname& );
+
+ /**
+ * Frees all resources allocated from test methods.
+ * @since ?Series60_version
+ */
+ void Delete();
+
+ /**
+ * Test methods are listed below.
+ */
+
+ /**
+ * Example test method.
+ * @since ?Series60_version
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt ExampleL( CStifItemParser& aItem );
+
+ /**
+ * Method used to log version of test class
+ */
+ void SendTestClassVersion();
+
+ //ADD NEW METHOD DEC HERE
+ //[TestMethods] - Do not remove
+
+
+ TInt SetupEmptyL();
+ TInt SetupObjL();
+ TInt SetupImagePluginL();
+ TInt SetupTonePluginL();
+ TInt SetupBothPluginsL();
+ TInt SetupImagePluginFasterL();
+ TInt SetupTonePluginFasterL();
+ TInt SetupImagePluginReturnsErrorL();
+ TInt SetupTonePluginReturnsErrorL();
+ TInt SetupBothPluginsReturnErrorL();
+ TInt LoadL();
+ TInt SetupImageLoadedL();
+ TInt SetupToneLoadedL();
+ TInt SetupBothLoadedL();
+ TInt SetupLoadFailedL();
+ TInt SetupBothFinishedL();
+ TInt Teardown();
+
+ TBool CheckNoImagePluginOutputL();
+ TBool CheckImagePluginOutputL(
+ const TUint32 aPluginUid,
+ const TDesC& aFileToLoad,
+ const TInt aDisplayMode,
+ const TSize& aSize,
+ const TInt aFrameDelay );
+ TBool CheckNoTonePluginOutputL();
+ TBool CheckTonePluginOutputL(
+ const TUint32 aPluginUid,
+ const TDesC& aFileToLoad,
+ const TInt aVolume,
+ const TInt64& aVolumeRamp );
+
+ TInt TestConstructorL();
+ TInt TestConstructorNoMemoryL();
+ TInt TestExtensionlessFileL();
+ TInt TestTooLongExtensionL();
+ TInt SetImagePropertiesUnknownExtensionL();
+ TInt SetImagePropertiesUnknownExtensionNoMemoryL();
+ TInt SetImagePropertiesKnownExtensionL();
+ TInt SetImagePropertiesKnownExtensionNoMemoryL();
+ TInt SetImagePropertiesManyPluginsL();
+ TInt SetImagePropertiesManyPluginsNoMemoryL();
+ TInt SetImagePropertiesWildcardMatchL();
+ TInt SetImagePropertiesWildcardMatchNoMemoryL();
+ TInt SetImagePropertiesManyExtensionsL();
+ TInt SetImagePropertiesManyExtensionsNoMemoryL();
+ TInt SetTonePropertiesUnknownExtensionL();
+ TInt SetTonePropertiesUnknownExtensionNoMemoryL();
+ TInt SetTonePropertiesKnownExtensionL();
+ TInt SetTonePropertiesKnownExtensionNoMemoryL();
+ TInt SetTonePropertiesManyPluginsL();
+ TInt SetTonePropertiesManyPluginsNoMemoryL();
+ TInt SetTonePropertiesWildcardMatchL();
+ TInt SetTonePropertiesWildcardMatchNoMemoryL();
+ TInt TestLoadEmptyL();
+ TInt TestCancelLoadEmptyL();
+ TInt TestLoadNoMemoryL();
+ TInt TestCancelLoadL();
+ TInt TestLoadImagePluginFasterL();
+ TInt TestLoadTonePluginFasterL();
+ TInt TestLoadImagePluginReturnsErrorL();
+ TInt TestLoadTonePluginReturnsErrorL();
+ TInt TestBackroundColourL();
+ TInt TestCancelNotActiveL();
+ TInt TestLoadWhenActiveL();
+ TInt TestStartWhenActiveL();
+ TInt TestStartL();
+ TInt TestStartNotReadyL();
+ TInt TestLoadAgainL();
+ TInt TestStartAgainL();
+ TInt TestLoadAndStartAnotherShowL();
+ TInt TestLoadAndStartEmptyShowAfterAnotherShowL();
+ TInt TestStartWhenLoadFailedL();
+
+private: // data
+
+ /** File server session used in testing. */
+ RFs iFs;
+
+ /** Animation observer for testing. */
+ TMockAnimationObserver iObserver;
+
+ /** Instance of the class that this test suite is testing. */
+ CSAnimEngine* iTestObj;
+
+ /** For testing async calls. */
+ CTestWaiter* iWaiter;
+ CTestWaiter* iWaiter2;
+
+
+
+ };
+
+#endif // TSANIMENGINE_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/inc/testwaiter.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/inc/testwaiter.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CTestWaiter class
+*
+*/
+
+
+#ifndef TESTWAITER_H
+#define TESTWAITER_H
+
+#include
+
+/**
+* Stops active scheduler in RunL.
+*
+* @lib None
+* @since S60 3.2
+*/
+class CTestWaiter : public CActive
+ {
+
+public:
+
+ /**
+ * Constructs a CTestWaiter object.
+ *
+ * @return The new object
+ * @since S60 3.2
+ */
+ static CTestWaiter* NewL();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CTestWaiter();
+
+ /**
+ * Set active.
+ *
+ * @since S60 3.2
+ */
+ void Activate();
+
+protected:
+
+ /**
+ * From CActive.
+ * Implements cancellation of an outstanding request.
+ *
+ * @since S60 3.2
+ */
+ virtual void DoCancel();
+
+ /**
+ * From CActive.
+ * Handles an active object's request completion event.
+ * Never leaves.
+ *
+ * @since S60 3.2
+ */
+ virtual void RunL();
+
+private:
+
+ /**
+ * First phase constructor.
+ *
+ */
+ CTestWaiter();
+
+private: // data
+
+ };
+
+#endif // TESTWAITER_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/rom/TSanimengine.iby
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/rom/TSanimengine.iby Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,10 @@
+#ifndef __TSANIMENGINE_IBY__
+#define __TSANIMENGINE_IBY__
+
+file=ABI_DIR\BUILD_DIR\TSanimengine.dll SHARED_LIB_DIR\TSanimengine.dll
+
+//data=\epoc32\data\z\system\data\TestFramework.ini \testframework\TestFramework.ini
+data=\epoc32\data\z\system\data\TSanimengine.cfg \testframework\TSanimengine.cfg
+
+
+#endif
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/src/TSanimengine.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/src/TSanimengine.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,198 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// INCLUDE FILES
+#include
+#include "TSanimengine.h"
+#include
+
+// EXTERNAL DATA STRUCTURES
+//extern ?external_data;
+
+// EXTERNAL FUNCTION PROTOTYPES
+//extern ?external_function( ?arg_type,?arg_type );
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// MACROS
+//#define ?macro ?macro_def
+
+// LOCAL CONSTANTS AND MACROS
+//const ?type ?constant_var = ?constant;
+//#define ?macro_name ?macro_def
+
+// MODULE DATA STRUCTURES
+//enum ?declaration
+//typedef ?declaration
+
+// LOCAL FUNCTION PROTOTYPES
+//?type ?function_name( ?arg_type, ?arg_type );
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// ?function_name ?description.
+// ?description
+// Returns: ?value_1: ?description
+// ?value_n: ?description_line1
+// ?description_line2
+// -----------------------------------------------------------------------------
+//
+/*
+?type ?function_name(
+ ?arg_type arg, // ?description
+ ?arg_type arg) // ?description
+ {
+
+ ?code // ?comment
+
+ // ?comment
+ ?code
+ }
+*/
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTSanimengine::CTSanimengine
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CTSanimengine::CTSanimengine(
+ CTestModuleIf& aTestModuleIf ):
+ CScriptBase( aTestModuleIf )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimengine::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CTSanimengine::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(KTSanimengineLogFileWithTitle, &title);
+ }
+ else
+ {
+ logFileName.Copy(KTSanimengineLogFile);
+ }
+
+ iLog = CStifLogger::NewL( KTSanimengineLogPath,
+ logFileName,
+ CStifLogger::ETxt,
+ CStifLogger::EFile,
+ EFalse );
+
+ SendTestClassVersion();
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimengine::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CTSanimengine* CTSanimengine::NewL(
+ CTestModuleIf& aTestModuleIf )
+ {
+ CTSanimengine* self = new (ELeave) CTSanimengine( aTestModuleIf );
+
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop();
+
+ return self;
+
+ }
+
+// Destructor
+CTSanimengine::~CTSanimengine()
+ {
+
+ // Delete resources allocated from test methods
+ Delete();
+
+ // Delete logger
+ delete iLog;
+
+ }
+
+//-----------------------------------------------------------------------------
+// CTSanimengine::SendTestClassVersion
+// Method used to send version of test class
+//-----------------------------------------------------------------------------
+//
+void CTSanimengine::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("TSanimengine.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* ) CTSanimengine::NewL( aTestModuleIf );
+
+ }
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/src/TSanimengineBlocks.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/src/TSanimengineBlocks.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,1361 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// [INCLUDE FILES] - do not remove
+#include
+#include
+#include
+#include "TSanimengine.h"
+
+
+#include "sanimengine.h"
+#include "testwaiter.h"
+
+#include
+
+//#pragma tagging OFF // To disable CodeTest tagging
+
+_LIT( KImageOutputFile, "C:\\temp\\sanimimagetestoutput.txt" );
+_LIT( KToneOutputFile, "C:\\temp\\sanimtonetestoutput.txt" );
+_LIT( KFileNoExtension, "C:\\temp\\test" ); // There is no plug-in for this type
+_LIT( KFileTooLongExtension, "C:\\temp\\test.xxxxxxxxxxxxxxxx" ); // There is no plug-in for this type
+_LIT( KDummyImageFile1, "C:\\temp\\test.ti1" ); // There is no plug-in for this type
+_LIT( KDummyImageFile2, "C:\\temp\\test.ti2" ); // There is a plug-in for this type
+_LIT( KDummyImageFile3, "C:\\temp\\test.ti3" ); // There are multiple plug-ins for this type
+_LIT( KDummyImageFile4, "C:\\temp\\test.ti6" ); // Wildcard match
+_LIT( KDummyImageFile5, "C:\\temp\\test.ti5" ); // This plug-in returns error
+_LIT( KDummyImageFile6, "C:\\temp\\test.zzz.ti2" ); // There is a plug-in for this type
+_LIT( KDummyToneFile1, "C:\\temp\\test.tt1" ); // There is no plug-in for this type
+_LIT( KDummyToneFile2, "C:\\temp\\test.tt2" ); // There is a plug-in for this type
+_LIT( KDummyToneFile3, "C:\\temp\\test.tt3" ); // There are multiple plug-ins for this type
+_LIT( KDummyToneFile4, "C:\\temp\\test.tt6" ); // Wildcard match
+_LIT( KDummyToneFile5, "C:\\temp\\test.tt5" ); // This plug-in returns error
+
+const TUint32 KImagePlugin1ImplUid = 0x0AA01513;
+const TUint32 KImagePlugin2ImplUid = 0x0AA01515;
+const TUint32 KImagePlugin3ImplUid = 0x0AA01517;
+const TUint32 KImagePlugin4ImplUid = 0x0AA01519;
+const TUint32 KTonePlugin1ImplUid = 0x0AA0150B;
+const TUint32 KTonePlugin2ImplUid = 0x0AA0150D;
+const TUint32 KTonePlugin3ImplUid = 0x0AA0150F;
+const TUint32 KTonePlugin4ImplUid = 0x0AA01511;
+
+
+
+
+void CTSanimengine::Delete()
+ {
+
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimengine::RunMethodL
+// Run specified method. Contains also table of test mothods and their names.
+// -----------------------------------------------------------------------------
+//
+TInt CTSanimengine::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.
+ ENTRY( "Example", CTSanimengine::ExampleL ),
+ ENTRY( "SetupEmpty", CTSanimengine::SetupEmptyL),
+ ENTRY( "SetupObj", CTSanimengine::SetupObjL),
+ ENTRY( "SetupImagePlugin", CTSanimengine::SetupImagePluginL),
+ ENTRY( "SetupTonePlugin", CTSanimengine::SetupTonePluginL),
+ ENTRY( "SetupBothPlugins", CTSanimengine::SetupBothPluginsL),
+ ENTRY( "SetupImagePluginFaster", CTSanimengine::SetupImagePluginFasterL),
+ ENTRY( "SetupTonePluginFaster", CTSanimengine::SetupTonePluginFasterL),
+ ENTRY( "SetupImagePluginReturnsError", CTSanimengine::SetupImagePluginReturnsErrorL),
+ ENTRY( "SetupTonePluginReturnsError", CTSanimengine::SetupTonePluginReturnsErrorL),
+ ENTRY( "Load", CTSanimengine::LoadL),
+ ENTRY( "SetupImageLoaded", CTSanimengine::SetupImageLoadedL),
+ ENTRY( "SetupToneLoaded", CTSanimengine::SetupToneLoadedL),
+ ENTRY( "SetupBothLoaded", CTSanimengine::SetupBothLoadedL),
+ ENTRY( "SetupLoadFailed", CTSanimengine::SetupLoadFailedL),
+ ENTRY( "SetupBothFinished", CTSanimengine::SetupBothFinishedL),
+ ENTRY( "Teardown", CTSanimengine::Teardown),
+ ENTRY( "SetupBothPluginsReturnError", CTSanimengine::SetupBothPluginsReturnErrorL),
+
+ ENTRY( "TestConstructor", CTSanimengine::TestConstructorL),
+ ENTRY( "TestConstructorNoMemory", CTSanimengine::TestConstructorNoMemoryL),
+ ENTRY( "TestExtensionlessFile", CTSanimengine::TestExtensionlessFileL),
+ ENTRY( "TestTooLongExtension", CTSanimengine::TestTooLongExtensionL),
+ ENTRY( "SetImagePropertiesUnknownExtension", CTSanimengine::SetImagePropertiesUnknownExtensionL),
+ ENTRY( "SetImagePropertiesKnownExtension", CTSanimengine::SetImagePropertiesKnownExtensionL),
+ ENTRY( "SetImagePropertiesUnknownExtensionNoMemory", CTSanimengine::SetImagePropertiesUnknownExtensionNoMemoryL),
+ ENTRY( "SetImagePropertiesKnownExtensionNoMemory", CTSanimengine::SetImagePropertiesKnownExtensionNoMemoryL),
+ ENTRY( "SetImagePropertiesManyExtensions", CTSanimengine::SetImagePropertiesManyExtensionsL),
+ ENTRY( "SetImagePropertiesManyExtensionsNoMemory", CTSanimengine::SetImagePropertiesManyExtensionsNoMemoryL),
+ ENTRY( "SetImagePropertiesManyPlugins", CTSanimengine::SetImagePropertiesManyPluginsL),
+ ENTRY( "SetImagePropertiesManyPluginsNoMemory", CTSanimengine::SetImagePropertiesManyPluginsNoMemoryL),
+ ENTRY( "SetImagePropertiesWildcardMatch", CTSanimengine::SetImagePropertiesWildcardMatchL),
+ ENTRY( "SetImagePropertiesWildcardMatchNoMemory", CTSanimengine::SetImagePropertiesWildcardMatchNoMemoryL),
+ ENTRY( "SetTonePropertiesUnknownExtension", CTSanimengine::SetTonePropertiesUnknownExtensionL),
+ ENTRY( "SetTonePropertiesUnknownExtensionNoMemory", CTSanimengine::SetTonePropertiesUnknownExtensionNoMemoryL),
+ ENTRY( "SetTonePropertiesKnownExtension", CTSanimengine::SetTonePropertiesKnownExtensionL),
+ ENTRY( "SetTonePropertiesKnownExtensionNoMemory", CTSanimengine::SetTonePropertiesKnownExtensionNoMemoryL),
+ ENTRY( "SetTonePropertiesManyPlugins", CTSanimengine::SetTonePropertiesManyPluginsL),
+ ENTRY( "SetTonePropertiesManyPluginsNoMemory", CTSanimengine::SetTonePropertiesManyPluginsNoMemoryL),
+ ENTRY( "SetTonePropertiesWildcardMatch", CTSanimengine::SetTonePropertiesWildcardMatchL),
+ ENTRY( "SetTonePropertiesWildcardMatchNoMemory", CTSanimengine::SetTonePropertiesWildcardMatchNoMemoryL),
+ ENTRY( "TestLoadEmpty", CTSanimengine::TestLoadEmptyL),
+ ENTRY( "TestCancelLoadEmpty", CTSanimengine::TestCancelLoadEmptyL),
+ ENTRY( "TestLoadNoMemory", CTSanimengine::TestLoadNoMemoryL),
+ ENTRY( "TestCancelLoad", CTSanimengine::TestCancelLoadL),
+ ENTRY( "TestLoadImagePluginFaster", CTSanimengine::TestLoadImagePluginFasterL),
+ ENTRY( "TestLoadTonePluginFaster", CTSanimengine::TestLoadTonePluginFasterL),
+ ENTRY( "TestLoadImagePluginReturnsError", CTSanimengine::TestLoadImagePluginReturnsErrorL),
+
+ ENTRY( "TestLoadTonePluginReturnsError", CTSanimengine::TestLoadTonePluginReturnsErrorL),
+ ENTRY( "TestBackroundColour", CTSanimengine::TestBackroundColourL),
+ ENTRY( "TestCancelNotActive", CTSanimengine::TestCancelNotActiveL),
+ ENTRY( "TestLoadWhenActive", CTSanimengine::TestLoadWhenActiveL),
+ ENTRY( "TestStartWhenActive", CTSanimengine::TestStartWhenActiveL),
+ ENTRY( "TestStart", CTSanimengine::TestStartL),
+
+ ENTRY( "TestStartNotReady", CTSanimengine::TestStartNotReadyL),
+ ENTRY( "TestLoadAgain", CTSanimengine::TestLoadAgainL),
+ ENTRY( "TestStartAgain", CTSanimengine::TestStartAgainL),
+ ENTRY( "TestLoadAndStartAnotherShow", CTSanimengine::TestLoadAndStartAnotherShowL),
+ ENTRY( "TestLoadAndStartEmptyShowAfterAnotherShow", CTSanimengine::TestLoadAndStartEmptyShowAfterAnotherShowL),
+ ENTRY( "TestStartWhenLoadFailed", CTSanimengine::TestStartWhenLoadFailedL),
+
+
+
+
+
+ //ADD NEW ENTRY HERE
+ // [test cases entries] - Do not remove
+
+ };
+
+ const TInt count = sizeof( KFunctions ) /
+ sizeof( TStifFunctionInfo );
+
+ return RunInternalL( KFunctions, count, aItem );
+
+ }
+
+// ======== MEMBER FUNCTIONS ========
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupEmptyL()
+ {
+ User::LeaveIfError( iFs.Connect() );
+
+ RFile file;
+ file.Replace( iFs, KImageOutputFile, EFileShareAny | EFileWrite );
+ file.Replace( iFs, KToneOutputFile, EFileShareAny | EFileWrite );
+ file.Close();
+
+ iTestObj = NULL;
+ iWaiter = CTestWaiter::NewL();
+ iWaiter2 = CTestWaiter::NewL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupObjL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupObjL()
+ {
+ SetupEmptyL();
+ iTestObj = CSAnimEngine::NewL( iFs, iObserver );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupImagePluginL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupImagePluginL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupTonePluginL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupTonePluginL()
+ {
+ SetupObjL();
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupBothPluginsL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupBothPluginsL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupImagePluginFasterL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupImagePluginFasterL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile4, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupTonePluginFasterL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupTonePluginFasterL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile4, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupImagePluginReturnsErrorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupImagePluginReturnsErrorL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile5, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupTonePluginReturnsErrorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupTonePluginReturnsErrorL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile5, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupBothPluginsReturnErrorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupBothPluginsReturnErrorL()
+ {
+ SetupObjL();
+ User::LeaveIfError(
+ iTestObj->SetImageProperties( KDummyImageFile5, EGray2, TSize( 0, 0 ), 0, ETrue, 1 ) );
+ User::LeaveIfError( iTestObj->SetToneProperties( KDummyToneFile5, 4, 0, 1 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::LoadL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::LoadL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ User::LeaveIfError( iWaiter->iStatus.Int() );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupImageLoadedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupImageLoadedL()
+ {
+ SetupImagePluginL();
+ LoadL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupToneLoadedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupToneLoadedL()
+ {
+ SetupTonePluginL();
+ LoadL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupBothLoadedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupBothLoadedL()
+ {
+ SetupBothPluginsL();
+ LoadL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupLoadFailedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupLoadFailedL()
+ {
+ SetupBothPluginsReturnErrorL();
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetupBothFinishedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetupBothFinishedL()
+ {
+ SetupBothLoadedL();
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ User::LeaveIfError( iWaiter->iStatus.Int() );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::Teardown
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::Teardown()
+ {
+ delete iWaiter2;
+ iWaiter2 = NULL;
+ delete iWaiter;
+ iWaiter = NULL;
+ delete iTestObj;
+ iTestObj = NULL;
+ iFs.Close();
+
+ REComSession::FinalClose();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::CheckNoImagePluginOutputL
+//
+// ---------------------------------------------------------------------------
+//
+TBool CTSanimengine::CheckNoImagePluginOutputL()
+ {
+ RFile file;
+ CleanupClosePushL( file );
+ User::LeaveIfError(
+ file.Open( iFs, KImageOutputFile, EFileShareAny | EFileRead ) );
+
+ TFileText reader;
+ reader.Set( file );
+ TBuf<16> buf;
+ TBool retVal = ( reader.Read( buf ) == KErrEof );
+
+ CleanupStack::PopAndDestroy( &file );
+ return retVal;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::CheckImagePluginOutputL
+//
+// ---------------------------------------------------------------------------
+//
+TBool CTSanimengine::CheckImagePluginOutputL(
+ const TUint32 aPluginUid,
+ const TDesC& aFileToLoad,
+ const TInt aDisplayMode,
+ const TSize& aSize,
+ const TInt aFrameDelay )
+ {
+ RFile file;
+ CleanupClosePushL( file );
+ User::LeaveIfError(
+ file.Open( iFs, KImageOutputFile, EFileShareAny | EFileRead ) );
+
+ TFileText reader;
+ reader.Set( file );
+
+ TBool retVal = ETrue;
+ TBuf<256> buf;
+ TLex16 lex;
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TUint32 uidFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( uidFromFile, EHex ) );
+ if ( uidFromFile != aPluginUid )
+ {
+ // EUNIT_PRINT( _L( "Plugin UID mismatch: expected 0x%08x, got 0x%08x" ), aPluginUid, uidFromFile );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ if ( buf != aFileToLoad )
+ {
+ // EUNIT_PRINT( _L( "File name mismatch: expected %S, got %S" ), &aFileToLoad, &buf );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TInt modeFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( modeFromFile ) );
+ if ( modeFromFile != aDisplayMode )
+ {
+ // EUNIT_PRINT( _L( "Display mode mismatch: expected %d, got %d" ), aDisplayMode, modeFromFile );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TInt widthFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( widthFromFile ) );
+ User::LeaveIfError( reader.Read( buf ) );
+ TInt heightFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( heightFromFile ) );
+ if ( widthFromFile != aSize.iWidth || heightFromFile != aSize.iHeight )
+ {
+ // EUNIT_PRINT( _L( "Size mismatch: expected (%d,%d), got (%d,%d)" ),
+ // aSize.iWidth, aSize.iHeight, widthFromFile, heightFromFile );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TUint delayFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( delayFromFile ) );
+ if ( delayFromFile != aFrameDelay )
+ {
+ // EUNIT_PRINT( _L( "Frame delay mismatch: expected %d, got %d" ), aFrameDelay, delayFromFile );
+ retVal = EFalse;
+ }
+
+ CleanupStack::PopAndDestroy( &file );
+ return retVal;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::CheckNoTonePluginOutputL
+//
+// ---------------------------------------------------------------------------
+//
+TBool CTSanimengine::CheckNoTonePluginOutputL()
+ {
+ RFile file;
+ CleanupClosePushL( file );
+ User::LeaveIfError(
+ file.Open( iFs, KToneOutputFile, EFileShareAny | EFileRead ) );
+
+ TFileText reader;
+ reader.Set( file );
+ TBuf<16> buf;
+ TBool retVal = ( reader.Read( buf ) == KErrEof );
+
+ CleanupStack::PopAndDestroy( &file );
+ return retVal;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::CheckTonePluginOutputL
+//
+// ---------------------------------------------------------------------------
+//
+TBool CTSanimengine::CheckTonePluginOutputL(
+ const TUint32 aPluginUid,
+ const TDesC& aFileToLoad,
+ const TInt aVolume,
+ const TInt64& aVolumeRamp )
+ {
+ RFile file;
+ CleanupClosePushL( file );
+ User::LeaveIfError(
+ file.Open( iFs, KToneOutputFile, EFileShareAny | EFileRead ) );
+
+ TFileText reader;
+ reader.Set( file );
+
+ TBool retVal = ETrue;
+ TBuf<256> buf;
+ TLex16 lex;
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TUint32 uidFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( uidFromFile, EHex ) );
+ if ( uidFromFile != aPluginUid )
+ {
+ // EUNIT_PRINT(
+ // _L( "Plugin UID mismatch: expected 0x%08x, got 0x%08x" ), aPluginUid, uidFromFile );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ if ( buf != aFileToLoad )
+ {
+ // EUNIT_PRINT( _L( "File name mismatch: expected %S, got %S" ), &aFileToLoad, &buf );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TInt volumeFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( volumeFromFile ) );
+ if ( volumeFromFile != aVolume )
+ {
+ // EUNIT_PRINT( _L( "Volume mismatch: expected %d, got %d" ), aVolume, volumeFromFile );
+ retVal = EFalse;
+ }
+
+ User::LeaveIfError( reader.Read( buf ) );
+ TInt64 volumeRampFromFile;
+ lex.Assign( buf );
+ User::LeaveIfError( lex.Val( volumeRampFromFile ) );
+ if ( volumeRampFromFile != aVolumeRamp )
+ {
+ // EUNIT_PRINT(
+ // _L( "Volume ramp mismatch: expected %d, got %d" ), aVolumeRamp, volumeRampFromFile );
+ retVal = EFalse;
+ }
+
+ CleanupStack::PopAndDestroy( &file );
+ return retVal;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestConstructorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestConstructorL()
+ {
+ iTestObj = CSAnimEngine::NewL( iFs, iObserver );
+ delete iTestObj;
+ iTestObj = NULL;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestConstructorNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestConstructorNoMemoryL()
+ {
+ iTestObj = CSAnimEngine::NewL( iFs, iObserver );
+ // EUNIT_ASSERT( !iTestObj );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestExtensionlessFileL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestExtensionlessFileL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KFileNoExtension, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if (errorCode == KErrNotFound )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestTooLongExtensionL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestTooLongExtensionL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KFileTooLongExtension, 4, 0, 1 );
+ if ( errorCode == KErrNotFound )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesUnknownExtensionL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesUnknownExtensionL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile1, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if ( errorCode == KErrNotFound )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesUnknownExtensionNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesUnknownExtensionNoMemoryL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile1, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if (errorCode == KErrNoMemory )
+ return KErrNone;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesKnownExtensionL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesKnownExtensionL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ if ( CheckImagePluginOutputL(KImagePlugin1ImplUid, KDummyImageFile2, EGray2, TSize( 0, 0 ), 0 ) == KErrNone)
+ return KErrNone;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesKnownExtensionNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesKnownExtensionNoMemoryL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile2, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if (errorCode == KErrNoMemory )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::SetImagePropertiesManyPluginsL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesManyPluginsL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile3, EGray2, TSize( 100, 200 ), 0, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ // Either plug-in 2 or 3 is acceptable.
+ /*
+ EUNIT_ASSERT(
+ CheckImagePluginOutputL(
+ KImagePlugin2ImplUid, KDummyImageFile3, EGray2, TSize( 100, 200 ), 0 ) ||
+ CheckImagePluginOutputL(
+ KImagePlugin3ImplUid, KDummyImageFile3, EGray2, TSize( 100, 200 ), 0 ) );
+ */
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesManyPluginsNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesManyPluginsNoMemoryL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile3, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if ( errorCode== KErrNoMemory )
+ return KErrNone;
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesWildcardMatchL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesWildcardMatchL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile4, EGray2, TSize( 0, 0 ), 135000, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ // EUNIT_ASSERT( CheckImagePluginOutputL(
+ // KImagePlugin4ImplUid, KDummyImageFile4, EGray2, TSize( 0, 0 ), 135000 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesWildcardMatchNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesWildcardMatchNoMemoryL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile4, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if ( errorCode == KErrNoMemory )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetImagePropertiesManyExtensionsL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesManyExtensionsL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile6, EColor16M, TSize( 0, 0 ), 0, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ if ( CheckImagePluginOutputL(KImagePlugin1ImplUid, KDummyImageFile6, EColor16M, TSize( 0, 0 ), 0 ) )
+ return KErrNone;
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::SetImagePropertiesManyExtensionsNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetImagePropertiesManyExtensionsNoMemoryL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile6, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ if ( errorCode == KErrNoMemory )
+ return KErrNone;
+
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesUnknownExtensionL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesUnknownExtensionL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile1, 4, 0, 1 );
+ if ( errorCode == KErrNotFound )
+ return KErrNone;
+
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesUnknownExtensionNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesUnknownExtensionNoMemoryL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile1, 4, 0, 1 );
+ if ( errorCode == KErrNoMemory )
+ return KErrNone;
+
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesKnownExtensionL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesKnownExtensionL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin1ImplUid, KDummyToneFile2, 4, 0 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesKnownExtensionNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesKnownExtensionNoMemoryL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile2, 4, 0, 1 );
+ if ( errorCode == KErrNoMemory )
+ return KErrNone;
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesManyPluginsL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesManyPluginsL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile3, 2, 300000, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ // Either plug-in 2 or 3 is acceptable.
+ if ( CheckTonePluginOutputL(KTonePlugin2ImplUid, KDummyToneFile3, 2, 300000 ) ||
+ CheckTonePluginOutputL(KTonePlugin3ImplUid, KDummyToneFile3, 2, 300000 ) )
+ return KErrNone;
+
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesManyPluginsNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesManyPluginsNoMemoryL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile3, 4, 0, 1 );
+ if ( errorCode == KErrNoMemory )
+ return KErrNone;
+
+ return errorCode;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesWildcardMatchL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesWildcardMatchL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile4, 0, 1000000, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus ); // Mock plug-in writes output file when Load is called.
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin4ImplUid, KDummyToneFile4, 0, 1000000 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::SetTonePropertiesWildcardMatchNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::SetTonePropertiesWildcardMatchNoMemoryL()
+ {
+ TInt errorCode = iTestObj->SetToneProperties( KDummyToneFile4, 4, 0, 1 );
+ if (errorCode == KErrNoMemory )
+ return KErrNone;
+ return errorCode;
+ }
+
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadEmptyL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+
+ CheckNoImagePluginOutputL();
+ CheckNoTonePluginOutputL();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestCancelLoadEmptyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestCancelLoadEmptyL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadNoMemoryL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadNoMemoryL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone ); // Mock plug-in does not reserve memory in Load
+ return KErrNone;
+ }
+
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestCancelLoadL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestCancelLoadL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Cancel();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ if ( iWaiter->iStatus.Int()== KErrCancel )
+ return KErrNone;
+
+ return KErrCancel;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadImagePluginFasterL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadImagePluginFasterL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ //EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+
+ //EUNIT_ASSERT( CheckImagePluginOutputL(
+ // KImagePlugin1ImplUid, KDummyImageFile2, EGray2, TSize( 0, 0 ), 0 ) );
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin4ImplUid, KDummyToneFile4, 4, 0 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadTonePluginFasterL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadTonePluginFasterL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+
+ // EUNIT_ASSERT( CheckImagePluginOutputL(
+ // KImagePlugin4ImplUid, KDummyImageFile4, EGray2, TSize( 0, 0 ), 0 ) );
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin1ImplUid, KDummyToneFile2, 4, 0 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadImagePluginReturnsErrorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadImagePluginReturnsErrorL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrGeneral );
+
+ // EUNIT_ASSERT( CheckImagePluginOutputL(
+ // KImagePlugin3ImplUid, KDummyImageFile5, EGray2, TSize( 0, 0 ), 0 ) );
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin1ImplUid, KDummyToneFile2, 4, 0 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadTonePluginReturnsErrorL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadTonePluginReturnsErrorL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrGeneral );
+
+ // EUNIT_ASSERT( CheckImagePluginOutputL(
+ // KImagePlugin1ImplUid, KDummyImageFile2, EGray2, TSize( 0, 0 ), 0 ) );
+
+ // EUNIT_ASSERT( CheckTonePluginOutputL(
+ // KTonePlugin3ImplUid, KDummyToneFile5, 4, 0 ) );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestBackroundColourL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestBackroundColourL()
+ {
+ // EUNIT_ASSERT_EQUALS( iTestObj->BackroundColour(), TRgb() );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestCancelNotActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestCancelNotActiveL()
+ {
+ iTestObj->Cancel();
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestLoadWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadWhenActiveL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Load( iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestStartWhenActiveL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestStartWhenActiveL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ iTestObj->Start( iWaiter2->iStatus );
+ iWaiter2->Activate();
+ CActiveScheduler::Start(); // Waiter2 stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter2->iStatus.Int(), KErrNotReady );
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestStartL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestStartL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestStartNotReadyL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestStartNotReadyL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ if ( iWaiter->iStatus.Int() == KErrNotReady )
+ return KErrNone;
+ return KErrNotReady;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CSAnimEngineTestSuite::TestLoadAgainL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadAgainL()
+ {
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestStartAgainL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestStartAgainL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadAndStartAnotherShowL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadAndStartAnotherShowL()
+ {
+ TInt errorCode =
+ iTestObj->SetImageProperties( KDummyImageFile3, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+ errorCode = iTestObj->SetToneProperties( KDummyToneFile3, 4, 0, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestLoadAndStartEmptyShowAfterAnotherShowL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestLoadAndStartEmptyShowAfterAnotherShowL()
+ {
+ TInt errorCode = iTestObj->SetImageProperties( KNullDesC, EGray2, TSize( 0, 0 ), 0, ETrue, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+ errorCode = iTestObj->SetToneProperties( KNullDesC, 4, 0, 1 );
+ // EUNIT_ASSERT_EQUALS( errorCode, KErrNone );
+
+ iTestObj->Load( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNone );
+ return KErrNone;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTSanimengine::TestStartWhenLoadFailedL
+//
+// ---------------------------------------------------------------------------
+//
+TInt CTSanimengine::TestStartWhenLoadFailedL()
+ {
+ iTestObj->Start( iWaiter->iStatus );
+ iWaiter->Activate();
+ CActiveScheduler::Start(); // Waiter stops it when request completes.
+ // EUNIT_ASSERT_EQUALS( iWaiter->iStatus.Int(), KErrNotReady );
+ return KErrNone;
+ }
+
+
+// -----------------------------------------------------------------------------
+// CTSanimengine::ExampleL
+// Example test method function.
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+TInt CTSanimengine::ExampleL( CStifItemParser& aItem )
+ {
+
+ // Print to UI
+ _LIT( KTSanimengine, "TSanimengine" );
+ _LIT( KExample, "In Example" );
+ TestModuleIf().Printf( 0, KTSanimengine, KExample );
+ // Print to log file
+ iLog->Log( KExample );
+
+ TInt i = 0;
+ TPtrC string;
+ _LIT( KParam, "Param[%i]: %S" );
+ while ( aItem.GetNextString ( string ) == KErrNone )
+ {
+ TestModuleIf().Printf( i, KTSanimengine,
+ KParam, i, &string );
+ i++;
+ }
+
+ return KErrNone;
+
+ }
+
+// ---------------------------------------
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimengine/src/testwaiter.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimengine/src/testwaiter.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of CTestWaiter class
+*
+*/
+
+
+#include "testwaiter.h"
+
+#pragma tagging OFF // To disable CodeTest tagging
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::NewL
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter* CTestWaiter::NewL()
+ {
+ CTestWaiter* self = new( ELeave ) CTestWaiter;
+ return self;
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::~CTestWaiter
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter::~CTestWaiter()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::Activate
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::Activate()
+ {
+ __ASSERT_ALWAYS( !IsActive(), User::Invariant() );
+
+ SetActive();
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::CTestWaiter
+//
+// ---------------------------------------------------------------------------
+//
+CTestWaiter::CTestWaiter()
+ : CActive( EPriorityStandard )
+ {
+ CActiveScheduler::Add( this );
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::DoCancel
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::DoCancel()
+ {
+ }
+
+
+// ---------------------------------------------------------------------------
+// CTestWaiter::RunL
+//
+// ---------------------------------------------------------------------------
+//
+void CTestWaiter::RunL()
+ {
+ CActiveScheduler::Stop();
+ }
+
+#pragma tagging ON // To stop disabling CodeTest tagging
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/.cproject
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/.cproject Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/.project
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/.project Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,20 @@
+
+
+ TSanimmif
+
+
+
+
+
+ com.nokia.carbide.cdt.builder.carbideCPPBuilder
+
+
+
+
+
+ org.eclipse.cdt.core.cnature
+ org.eclipse.cdt.core.ccnature
+ com.nokia.carbide.cdt.builder.carbideCPPBuilderNature
+ com.nokia.carbide.cdt.builder.carbideSBSv2BuilderNature
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/Bmarm/TSanimmifU.DEF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/Bmarm/TSanimmifU.DEF Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ LibEntryL__FR13CTestModuleIf @ 1 NONAME R3UNUSED ; LibEntryL(CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/Bwins/TSanimmifu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/Bwins/TSanimmifu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ ?LibEntryL@@YAPAVCScriptBase@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CScriptBase * __cdecl LibEntryL(class CTestModuleIf &)
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/conf/UI_TSanimmif.cfg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/conf/UI_TSanimmif.cfg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,292 @@
+[Test]
+title Example
+create TSanimmif AnimMifPlugin
+AnimMifPlugin Example pa ra me ters
+delete AnimMifPlugin
+[Endtest]
+
+
+// ---------------------------------------------------------------------------
+// Test table
+//
+// ---------------------------------------------------------------------------
+//
+
+[Test]
+title TestConstructor
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupEmpty
+AnimMifPlugin TestConstructor
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestConstructorNoMemory
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupEmpty
+AnimMifPlugin TestConstructorNoMemory
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestUnknownFile
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestUnknownFile
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestCorruptFile
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestCorruptFile
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestNoFramesFile
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestNoFramesFile
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestLoadStillImage
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestLoadStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestLoadScaledAnimation
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestLoadScaledAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestLoadUnscaledAnimation
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestLoadUnscaledAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestLoadNoMemory
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestLoadNoMemory
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestCancelLoad
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestCancelLoad
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestShowStillImage
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupStillImageNoMask
+AnimMifPlugin TestShowStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestConstructor
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupStillImage
+AnimMifPlugin TestShowStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestShowAnimation
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupScaledAnimation
+AnimMifPlugin TestShowAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestShowAnimation
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupUnscaledAnimation
+AnimMifPlugin TestShowAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestShowStillImage
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupStillImage
+AnimMifPlugin TestShowStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestShowAnimation
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupUnscaledAnimation
+AnimMifPlugin TestShowAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestCancelStillImage
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupStillImage
+AnimMifPlugin TestCancelStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestConstructor
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupUnscaledAnimation
+AnimMifPlugin TestCancelAnimation
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestConstructor
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestCancelNotActive
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestCancelNotActive
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupUnscaledAnimation
+AnimMifPlugin TestCancelNotActive
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestCancelNotActive
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupFinished
+AnimMifPlugin TestCancelNotActive
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestLoadStillImage
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupFinished
+AnimMifPlugin TestLoadStillImage
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestLoadNoMemory
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupFinished
+AnimMifPlugin TestLoadNoMemory
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestShowBeforeLoad
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestShowBeforeLoad
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestSetDisplayMode
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestSetDisplayMode
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestSetSize
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestSetSize
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestSetFrameDelay
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestSetFrameDelay
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+[Test]
+title TestBackroundColour
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupObj
+AnimMifPlugin TestBackroundColour
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+[Test]
+title TestBackroundColour
+create TSanimmif AnimMifPlugin
+AnimMifPlugin SetupStillImage
+AnimMifPlugin TestBackroundColour
+AnimMifPlugin Teardown
+delete AnimMifPlugin
+[Endtest]
+
+
+
+
+
+
+
+
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/data/corrupt.mif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/data/corrupt.mif Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,1 @@
+xxxxxxxxxxxxxxxxx
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/eabi/TSanimmifu.def
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/eabi/TSanimmifu.def Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,3 @@
+EXPORTS
+ _Z9LibEntryLR13CTestModuleIf @ 1 NONAME
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif.mmp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif.mmp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,87 @@
+/*TYPE TESTCLASS*/
+/*
+* 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: MMP file for STIF Test Framework's TestScripter
+* testclass test module.
+*
+*/
+
+#include
+
+SMPSAFE
+
+TARGET TSanimmif.dll
+TARGETTYPE dll
+UID 0x1000008D 0x101FB3E3
+
+CAPABILITY ALL -TCB
+/* Remove comments and replace 0x00000000 with correct vendor id */
+// VENDORID 0x00000000
+/* Remove comments and replace 0x00000000 with correct secure id */
+// SECUREID 0x00000000
+
+//TARGETPATH ?target_path
+DEFFILE TSanimmif.def
+
+USERINCLUDE ../inc
+USERINCLUDE ../inc
+USERINCLUDE ../../inc
+USERINCLUDE ../../../../../../inc
+USERINCLUDE ../../../../sanimengine/inc
+
+OS_LAYER_SYSTEMINCLUDE
+
+SOURCEPATH ../src
+
+SOURCE TSanimmif.cpp
+SOURCE TSanimmifBlocks.cpp
+SOURCE testwaiter.cpp
+
+
+//RESOURCE resource_file
+//RESOURCE resource_file2
+
+LIBRARY euser.lib
+LIBRARY stiftestinterface.lib
+LIBRARY stiftestengine.lib
+LIBRARY ecom.lib
+LIBRARY efsrv.lib
+LIBRARY sanimengine.lib
+
+EPOCALLOWDLLDATA
+LANG SC
+
+/*
+START WINS
+?wins_specific_information
+END
+
+START MARM
+?marm_specific_information
+END
+*/
+// Other possible keywords:
+
+// DOCUMENT ?file, that is not compiled, but added to MSVC project workspace (i.e. release notes)
+/*
+START BITMAP ?target
+TARGETPATH ?emulated_path_on_target_machine
+HEADER
+SOURCE ?color_depth ?source_bitmap
+END
+*/
+// DEFFILE ?filename
+// AIF ?filename
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif.pkg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif.pkg Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description:
+;
+; Installation file for STIF
+;
+
+; Languages
+&EN
+
+; Provide value for uid
+#{"STIF"},(0x00000000),1,1,0,TYPE=SA
+
+; Series60 product id for S60 3.0
+[0x101F7961], 0, 0, 0, {"Series60ProductID"}
+
+; Localised Vendor name
+%{"Nokia"}
+
+; Unique Vendor name
+:"Nokia"
+
+; Logo
+; None
+
+; Package signature - Optional
+; None
+
+; Start of Package body
+
+; Condition blocks
+; None
+
+; Options list
+; None
+
+; Install files
+"\epoc32\release\armv5\udeb\TSanimmif.dll" - "!:\Sys\Bin\TSanimmif.dll"
+
+; Embedded SIS
+; None
+
+; End of Package body
+
+; PKG dependencies
+; None
+
+; PKG capabilities
+; None
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif_DoxyFile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/TSanimmif_DoxyFile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,240 @@
+#
+# 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:
+#
+#
+
+# Doxyfile 1.4.1
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = TSanimmif
+PROJECT_NUMBER =
+OUTPUT_DIRECTORY = \TSanimmif\
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+USE_WINDOWS_ENCODING = YES
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = NO
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = NO
+STRIP_FROM_PATH =
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = NO
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP = NO
+INHERIT_DOCS = YES
+DISTRIBUTE_GROUP_DOC = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+SUBGROUPING = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = NO
+EXTRACT_STATIC = NO
+EXTRACT_LOCAL_CLASSES = NO
+EXTRACT_LOCAL_METHODS = NO
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = NO
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = YES
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = YES
+INLINE_INFO = YES
+SORT_MEMBER_DOCS = YES
+SORT_BRIEF_DOCS = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = NO
+GENERATE_TESTLIST = NO
+GENERATE_BUGLIST = NO
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = YES
+FILE_VERSION_FILTER =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = NO
+WARNINGS = YES
+WARN_IF_UNDOCUMENTED = YES
+WARN_IF_DOC_ERROR = YES
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT = \TSanimmif\
+FILE_PATTERNS = *.h \
+ *.rh \
+ *.hrh
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = NO
+EXCLUDE_PATTERNS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH =
+INPUT_FILTER =
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = NO
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+VERBATIM_HEADERS = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX = NO
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = NO
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+GENERATE_HTMLHELP = YES
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+BINARY_TOC = YES
+TOC_EXPAND = YES
+DISABLE_INDEX = YES
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = YES
+TREEVIEW_WIDTH = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = NO
+USE_PDFLATEX = NO
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = YES
+RTF_OUTPUT = Doc
+COMPACT_RTF = YES
+RTF_HYPERLINKS = YES
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = NO
+XML_OUTPUT = xml
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED = NONSHARABLE_CLASS
+EXPAND_AS_DEFINED =
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = YES
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = NO
+CLASS_GRAPH = YES
+COLLABORATION_GRAPH = YES
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = YES
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+GRAPHICAL_HIERARCHY = YES
+DIRECTORY_GRAPH = YES
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+MAX_DOT_GRAPH_WIDTH = 1024
+MAX_DOT_GRAPH_HEIGHT = 1024
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/bld.inf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/bld.inf Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,60 @@
+/*
+* 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:
+*
+*/
+
+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_TESTEXPORTS
+// NOTE: If using ARS requirements all export operations should be done under this.
+// 'abld test export'
+
+PRJ_EXPORTS
+// Specify the source file followed by its destination here
+// copy will be used to copy the source file to its destination
+// If there's no destination then the source file will be copied
+// to the same name in \epoc32\include
+// Example:
+/*
+\agnmodel\inc\AGMCOMON.H
+*/
+
+PRJ_TESTMMPFILES
+
+ TSanimmif.mmp
+
+PRJ_MMPFILES
+
+ TSanimmif.mmp
+
+// Specify the .mmp files required for building the important component
+// releasables.
+//
+// Specify "tidy" if the component you need to build doesn't need to be
+// released. Specify "ignore" if the MMP file exists but should be
+// ignored.
+// Example:
+/*
+\agnmodel\group\agnmodel.mmp
+#if defined(MARM)
+\agnmodel\group\agsvexe.mmp
+#endif
+*/
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/ctcerr.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/ctcerr.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,444 @@
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -version
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -version
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -version
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 -version
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmif.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 -c -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -cwd source -g -O0 -inline off -runtime staticmulti -wchar_t off -nostdinc -gccdepends -MD -d __SYMBIAN32__ -d __CW32__ -d __WINS__ -d __WINSCW__ -d __SUPPORT_CPP_EXCEPTIONS__ -d _UNICODE -d _DEBUG -d __DLL__ -i- -i Z:/startupservices/startupanimation/internal/test/TSanimmif/inc -i Z:/startupservices/startupanimation/internal/test/TSanimmif/inc -i Z:/startupservices/startupanimation/internal/test/inc -i Z:/inc -i Z:/startupservices/startupanimation/sanimengine/inc -i Z:/epoc32/include -i Z:/epoc32/include/platform -i Z:/epoc32/include/platform/loc -i Z:/epoc32/include/platform/loc/sc -i Z:/epoc32/include -include feature_settings.hrh -o Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.o Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmif.cpp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmifBlocks.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmifBlocks.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-5008.rsp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/testwaiter.o
+argv[72]: Z:/startupservices/startupanimation/internal/test/TSanimmif/src/testwaiter.cpp
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 -c -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -cwd source -g -O0 -inline off -runtime staticmulti -wchar_t off -nostdinc -gccdepends -MD -d __SYMBIAN32__ -d __CW32__ -d __WINS__ -d __WINSCW__ -d __SUPPORT_CPP_EXCEPTIONS__ -d _UNICODE -d _DEBUG -d __DLL__ -i- -i Z:/startupservices/startupanimation/internal/test/TSanimmif/inc -i Z:/startupservices/startupanimation/internal/test/TSanimmif/inc -i Z:/startupservices/startupanimation/internal/test/inc -i Z:/inc -i Z:/startupservices/startupanimation/sanimengine/inc -i Z:/epoc32/include -i Z:/epoc32/include/platform -i Z:/epoc32/include/platform/loc -i Z:/epoc32/include/platform/loc/sc -i Z:/epoc32/include -include feature_settings.hrh -o Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/testwaiter.o Z:/startupservices/startupanimation/internal/test/TSanimmif/src/testwaiter.cpp
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.prep.def
+argv[2]: -importlib
+argv[3]: -o
+argv[4]: Z:/epoc32/release/winscw/udeb/TSanimmif.lib
+argv[5]: -addcommand
+argv[6]: out:TSanimmif.dll
+argv[7]: -warnings
+argv[8]: off
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.prep.def -importlib -o Z:/epoc32/release/winscw/udeb/TSanimmif.lib -addcommand out:TSanimmif.dll -warnings off
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwccsym2.exe
+argv[1]: -c
+argv[2]: -align
+argv[3]: 4
+argv[4]: -warnings
+argv[5]: on
+argv[6]: -w
+argv[7]: nohidevirtual,nounusedexpr
+argv[8]: -msgstyle
+argv[9]: gcc
+argv[10]: -enum
+argv[11]: int
+argv[12]: -str
+argv[13]: pool
+argv[14]: -exc
+argv[15]: ms
+argv[16]: -trigraphs
+argv[17]: on
+argv[18]: -cwd
+argv[19]: source
+argv[20]: -g
+argv[21]: -O0
+argv[22]: -inline
+argv[23]: off
+argv[24]: -runtime
+argv[25]: staticmulti
+argv[26]: -wchar_t
+argv[27]: off
+argv[28]: -nostdinc
+argv[29]: -gccdepends
+argv[30]: -MD
+argv[31]: -d
+argv[32]: __SYMBIAN32__
+argv[33]: -d
+argv[34]: __CW32__
+argv[35]: -d
+argv[36]: __WINS__
+argv[37]: -d
+argv[38]: __WINSCW__
+argv[39]: -d
+argv[40]: __SUPPORT_CPP_EXCEPTIONS__
+argv[41]: -d
+argv[42]: _UNICODE
+argv[43]: -d
+argv[44]: _DEBUG
+argv[45]: -d
+argv[46]: __DLL__
+argv[47]: -i-
+argv[48]: -i
+argv[49]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[50]: -i
+argv[51]: Z:/startupservices/startupanimation/internal/test/TSanimmif/inc
+argv[52]: -i
+argv[53]: Z:/startupservices/startupanimation/internal/test/inc
+argv[54]: -i
+argv[55]: Z:/inc
+argv[56]: -i
+argv[57]: Z:/startupservices/startupanimation/sanimengine/inc
+argv[58]: -i
+argv[59]: Z:/epoc32/include
+argv[60]: -i
+argv[61]: Z:/epoc32/include/platform
+argv[62]: -i
+argv[63]: Z:/epoc32/include/platform/loc
+argv[64]: -i
+argv[65]: Z:/epoc32/include/platform/loc/sc
+argv[66]: -i
+argv[67]: Z:/epoc32/include
+argv[68]: -include
+argv[69]: feature_settings.hrh
+argv[70]: -o
+argv[71]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif_UID_.o
+argv[72]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.UID.CPP
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwccsym2 @ctc-mwccsym2-5428.rsp
+*** CTC++/ctcagent command status: 0
+
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -msgstyle
+argv[2]: gcc
+argv[3]: -stdlib
+argv[4]: -subsystem
+argv[5]: windows
+argv[6]: -g
+argv[7]: -main
+argv[8]: __Win32DllMain@12
+argv[9]: -shared
+argv[10]: -m
+argv[11]: __E32Dll
+argv[12]: -export
+argv[13]: dllexport
+argv[14]: -nocompactimportlib
+argv[15]: -addcommand
+argv[16]: out:TSanimmif.dll
+argv[17]: -warnings
+argv[18]: off
+argv[19]: -implib
+argv[20]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.lib
+argv[21]: -o
+argv[22]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.dll
+argv[23]: Z:/epoc32/release/winscw/udeb/edll.lib
+argv[24]: Z:/epoc32/release/winscw/udeb/scppnwdl.lib
+argv[25]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[26]: Z:/epoc32/release/winscw/udeb/stiftestinterface.lib
+argv[27]: Z:/epoc32/release/winscw/udeb/stiftestengine.lib
+argv[28]: Z:/epoc32/release/winscw/udeb/ecom.lib
+argv[29]: Z:/epoc32/release/winscw/udeb/efsrv.lib
+argv[30]: Z:/epoc32/release/winscw/udeb/sanimengine.lib
+argv[31]: -l
+argv[32]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb
+argv[33]: -search
+argv[34]: @Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif_udeb_objects.lrf
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -msgstyle gcc -stdlib -subsystem windows -g -main __Win32DllMain@12 -shared -m __E32Dll -export dllexport -nocompactimportlib -addcommand out:TSanimmif.dll -warnings off -implib Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.lib -o Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.dll Z:/epoc32/release/winscw/udeb/edll.lib Z:/epoc32/release/winscw/udeb/scppnwdl.lib Z:/epoc32/release/winscw/udeb/euser.lib Z:/epoc32/release/winscw/udeb/stiftestinterface.lib Z:/epoc32/release/winscw/udeb/stiftestengine.lib Z:/epoc32/release/winscw/udeb/ecom.lib Z:/epoc32/release/winscw/udeb/efsrv.lib Z:/epoc32/release/winscw/udeb/sanimengine.lib -l Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb -search @Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif_udeb_objects.lrf
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -S
+argv[2]: -show
+argv[3]: only,names,unmangled,verbose
+argv[4]: -o
+argv[5]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.inf
+argv[6]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.lib
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -S -show only,names,unmangled,verbose -o Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.inf Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.lib
+*** CTC++/ctcagent command status: 0
+
+
+*******************************************************************************
+
+argv[0]: C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\mwldsym2.exe
+argv[1]: -msgstyle
+argv[2]: gcc
+argv[3]: -stdlib
+argv[4]: -subsystem
+argv[5]: windows
+argv[6]: -g
+argv[7]: -main
+argv[8]: __Win32DllMain@12
+argv[9]: -shared
+argv[10]: -f
+argv[11]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.def
+argv[12]: Z:/epoc32/release/winscw/udeb/edll.lib
+argv[13]: Z:/epoc32/release/winscw/udeb/scppnwdl.lib
+argv[14]: Z:/epoc32/release/winscw/udeb/euser.lib
+argv[15]: Z:/epoc32/release/winscw/udeb/stiftestinterface.lib
+argv[16]: Z:/epoc32/release/winscw/udeb/stiftestengine.lib
+argv[17]: Z:/epoc32/release/winscw/udeb/ecom.lib
+argv[18]: Z:/epoc32/release/winscw/udeb/efsrv.lib
+argv[19]: Z:/epoc32/release/winscw/udeb/sanimengine.lib
+argv[20]: -o
+argv[21]: Z:/epoc32/release/winscw/udeb/TSanimmif.dll
+argv[22]: -noimplib
+argv[23]: -l
+argv[24]: Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb
+argv[25]: -search
+argv[26]: @Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif_udeb_objects.lrf
+
+*** CTC++/ctcagent command: set PATH=C:\Apps\sbs\win32\mingw\bin;C:\Apps\sbs\win32\cygwin\bin;C:\Apps\sbs\win32\bin;c:\apps\actperl\bin\;c:\apps\rvct22_686\bin;c:\apps\atool;\epoc32\tools;\epoc32\gcc\bin;c:\apps\ue;c:\apps\ccm65\bin;c:\apps\carbide\x86Build\Symbian_Tools\Command_Line_Tools;C:\Program Files\PC Connectivity Solution\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Intel\Wireless\Bin;c:\Program Files\Intel\WiFi\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\APPS\pclint;C:\APPS\cmt\;C:\APPS\ctc;C:\APPS\prevent\bin;C:\APPS\cltools;C:\APPS\7zip;C:\APPS\understand\bin\pc-win95;C:\APPS\unzip;C:\APPS\imaker;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Nokia\FastTrace;\epoc32\gcc_mingw\bin;C:\APPS\romtools;C:\APPS\bc;C:\APPS\codecollaborator;C:\APPS\actpython\.;C:\APPS\codescanner;C:\APPS\sbs\bin;C:\APPS\symdec;C:\APPS\symrec;C:\APPS\blocks\bin;C:\APPS\helium;C:\APPS\ant\bin;C:\APPS\jdk_1.6.0_11\bin; && C:\APPS\ctc\ctc -c C:\APPS\ctc\sym_cw\winscw.ini @C:\DOCUME~1\praprave\LOCALS~1\Temp\ctc4\ctcopts.rsp mwldsym2 -msgstyle gcc -stdlib -subsystem windows -g -main __Win32DllMain@12 -shared -f Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif.def Z:/epoc32/release/winscw/udeb/edll.lib Z:/epoc32/release/winscw/udeb/scppnwdl.lib Z:/epoc32/release/winscw/udeb/euser.lib Z:/epoc32/release/winscw/udeb/stiftestinterface.lib Z:/epoc32/release/winscw/udeb/stiftestengine.lib Z:/epoc32/release/winscw/udeb/ecom.lib Z:/epoc32/release/winscw/udeb/efsrv.lib Z:/epoc32/release/winscw/udeb/sanimengine.lib -o Z:/epoc32/release/winscw/udeb/TSanimmif.dll -noimplib -l Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb -search @Z:/epoc32/build/tsanimmif/c_e00ebdbb6047a5d5/tsanimmif_dll/winscw/udeb/TSanimmif_udeb_objects.lrf
+*** CTC++/ctcagent command status: 0
+
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/group/profile.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/group/profile.txt Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,110 @@
+*****************************************************************************
+* CTC++, Test Coverage Analyzer for C/C++, Version 6.5.5 *
+* *
+* EXECUTION PROFILE LISTING *
+* *
+* Copyright (c) 1993-2009 Testwell Oy *
+*****************************************************************************
+
+
+Symbol file(s) used : MON.sym (Mon Aug 23 12:02:41 2010)
+Data file(s) used : MON.dat (Mon Aug 23 12:48:55 2010)
+Listing produced at : Mon Aug 23 13:00:38 2010
+Coverage view : As instrumented
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmif.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 30 30 80 FUNCTION CTSanimmif::CTSanimmif()
+ 30 30 91 FUNCTION CTSanimmif::ConstructL()
+ 30 0 139 FUNCTION CTSanimmif::NewL()
+ 30 30 153 FUNCTION CTSanimmif::~CTSanimmif()
+ 30 30 169 FUNCTION CTSanimmif::SendTestClassVersion()
+ 30 0 190 FUNCTION LibEntryL()
+
+***TER 100 % ( 6/ 6) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmif.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimmif/src/testwaiter.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 29 0 30 FUNCTION CTestWaiter::NewL()
+ 0 0 - 42 FUNCTION CTestWaiter::~CTestWaiter()
+ 0 0 - 52 FUNCTION CTestWaiter::Activate()
+ 29 29 65 FUNCTION CTestWaiter::CTestWaiter()
+ 0 0 - 77 FUNCTION CTestWaiter::DoCancel()
+ 0 0 - 87 FUNCTION CTestWaiter::RunL()
+
+***TER 33 % ( 2/ 6) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimmif/src/testwaiter.cpp
+-----------------------------------------------------------------------------
+
+
+
+MONITORED SOURCE FILE : Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmifBlocks.cpp
+INSTRUMENTATION MODE : function
+
+ START/ END/
+ TRUE FALSE LINE DESCRIPTION
+=============================================================================
+
+ 30 30 77 FUNCTION CTSanimmif::Delete()
+ 32 0 87 FUNCTION CTSanimmif::RunMethodL()
+ 0 0 - 146 FUNCTION TMockMifAnimationObserver::UpdateScreen()
+ 0 0 - 159 FUNCTION TMockMifAnimationObserver::UpdateScreen()
+ 29 0 173 FUNCTION CTSanimmif::SetupEmptyL()
+ 27 0 190 FUNCTION CTSanimmif::SetupObjL()
+ 13 0 206 FUNCTION CTSanimmif::SetupFileL()
+ 1 0 221 FUNCTION CTSanimmif::SetupStillImageNoMaskL()
+ 4 0 233 FUNCTION CTSanimmif::SetupStillImageL()
+ 1 0 245 FUNCTION CTSanimmif::SetupScaledAnimationL()
+ 7 0 257 FUNCTION CTSanimmif::SetupUnscaledAnimationL()
+ 3 0 269 FUNCTION CTSanimmif::SetupFinishedL()
+ 0 0 - 284 FUNCTION CTSanimmif::Teardown()
+ 1 0 306 FUNCTION CTSanimmif::TestConstructorL()
+ 1 0 324 FUNCTION CTSanimmif::TestConstructorNoMemoryL()
+ 0 0 - 338 FUNCTION CTSanimmif::TestUnknownFileL()
+ 0 0 - 353 FUNCTION CTSanimmif::TestCorruptFileL()
+ 0 0 - 368 FUNCTION CTSanimmif::TestNoFramesFileL()
+ 0 0 - 383 FUNCTION CTSanimmif::TestLoadStillImageL()
+ 0 0 - 398 FUNCTION CTSanimmif::TestLoadScaledAnimationL()
+ 0 0 - 413 FUNCTION CTSanimmif::TestLoadUnscaledAnimationL()
+ 0 0 - 428 FUNCTION CTSanimmif::TestLoadNoMemoryL()
+ 0 0 - 443 FUNCTION CTSanimmif::TestCancelLoadL()
+ 0 0 - 459 FUNCTION CTSanimmif::TestShowStillImageL()
+ 0 0 - 475 FUNCTION CTSanimmif::TestShowAnimationL()
+ 0 0 - 491 FUNCTION CTSanimmif::TestCancelStillImageL()
+ 0 0 - 507 FUNCTION CTSanimmif::TestCancelAnimationL()
+ 0 0 - 523 FUNCTION CTSanimmif::TestCancelNotActiveL()
+ 0 0 - 535 FUNCTION CTSanimmif::TestShowBeforeLoadL()
+ 0 0 - 547 FUNCTION CTSanimmif::TestSetDisplayModeL()
+ 0 0 - 571 FUNCTION CTSanimmif::TestSetSizeL()
+ 0 0 - 595 FUNCTION CTSanimmif::TestSetFrameDelayL()
+ 0 0 - 619 FUNCTION CTSanimmif::TestBackroundColourL()
+ 1 0 634 FUNCTION CTSanimmif::ExampleL()
+
+***TER 38 % ( 13/ 34) of SOURCE FILE Z:/startupservices/startupanimation/internal/test/TSanimmif/src/TSanimmifBlocks.cpp
+-----------------------------------------------------------------------------
+
+
+
+
+
+SUMMARY
+=======
+
+Number of monitored source files : 3
+Number of source lines : 945
+Number of measurement points : 92
+TER : 46% (function)
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/inc/TSanimmif.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/inc/TSanimmif.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,220 @@
+/*
+* 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: STIF testclass declaration
+*
+*/
+
+#ifndef TSANIMMIF_H
+#define TSANIMMIF_H
+
+// INCLUDES
+#include
+#include
+#include
+#include
+#include
+#include
+#include "sanimobserver.h"
+
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// 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( KTSanimmifLogPath, "\\logs\\testframework\\TSanimmif\\" );
+// Log file
+_LIT( KTSanimmifLogFile, "TSanimmif.txt" );
+_LIT( KTSanimmifLogFileWithTitle, "TSanimmif_[%S].txt" );
+
+// FUNCTION PROTOTYPES
+//?type ?function_name(?arg_list);
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+class CTSanimmif;
+class CSAnimImagePlugin;
+class CTestWaiter;
+
+NONSHARABLE_CLASS( TMockMifAnimationObserver ) : public MSAnimObserver
+ {
+public:
+ TMockMifAnimationObserver( CTSanimmif& aTestSuite ) : iTestSuite( aTestSuite ) {}
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/, const CFbsBitmap& /*aMask*/ );
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/ );
+private:
+ CTSanimmif& iTestSuite;
+ };
+
+
+/**
+* CTSanimmif test class for STIF Test Framework TestScripter.
+* ?other_description_lines
+*
+* @lib ?library
+* @since ?Series60_version
+*/
+NONSHARABLE_CLASS(CTSanimmif) : public CScriptBase
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CTSanimmif* NewL( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CTSanimmif();
+
+ public: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ public: // Functions from base classes
+
+ /**
+ * From CScriptBase Runs a script line.
+ * @since ?Series60_version
+ * @param aItem Script line containing method name and parameters
+ * @return Symbian OS error code
+ */
+ virtual TInt RunMethodL( CStifItemParser& aItem );
+
+ protected: // New functions
+
+ /**
+ * ?member_description.
+ * @since ?Series60_version
+ * @param ?arg1 ?description
+ * @return ?description
+ */
+ //?type ?member_function( ?type ?arg1 );
+
+ protected: // Functions from base classes
+
+ /**
+ * From ?base_class ?member_description
+ */
+ //?type ?member_function();
+
+ private:
+
+ /**
+ * C++ default constructor.
+ */
+ CTSanimmif( CTestModuleIf& aTestModuleIf );
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ // Prohibit copy constructor if not deriving from CBase.
+ // ?classname( const ?classname& );
+ // Prohibit assigment operator if not deriving from CBase.
+ // ?classname& operator=( const ?classname& );
+
+ /**
+ * Frees all resources allocated from test methods.
+ * @since ?Series60_version
+ */
+ void Delete();
+
+ /**
+ * Test methods are listed below.
+ */
+
+ /**
+ * Example test method.
+ * @since ?Series60_version
+ * @param aItem Script line containing parameters.
+ * @return Symbian OS error code.
+ */
+ virtual TInt ExampleL( CStifItemParser& aItem );
+
+ /**
+ * Method used to log version of test class
+ */
+ void SendTestClassVersion();
+ TInt SetupEmptyL();
+ TInt SetupObjL();
+ TInt SetupFileL( const TDesC& aFileName );
+ TInt SetupStillImageNoMaskL();
+ TInt SetupStillImageL();
+ TInt SetupScaledAnimationL();
+ TInt SetupUnscaledAnimationL();
+ TInt SetupFinishedL();
+ TInt Teardown();
+
+ TInt TestConstructorL();
+ TInt TestConstructorNoMemoryL();
+ TInt TestUnknownFileL();
+ TInt TestCorruptFileL();
+ TInt TestNoFramesFileL();
+ TInt TestLoadStillImageL();
+ TInt TestLoadScaledAnimationL();
+ TInt TestLoadUnscaledAnimationL();
+ TInt TestLoadNoMemoryL();
+ TInt TestCancelLoadL();
+ TInt TestShowStillImageL();
+ TInt TestShowAnimationL();
+ TInt TestCancelStillImageL();
+ TInt TestCancelAnimationL();
+ TInt TestCancelNotActiveL();
+ TInt TestShowBeforeLoadL();
+ TInt TestSetDisplayModeL();
+ TInt TestSetSizeL();
+ TInt TestSetFrameDelayL();
+ TInt TestBackroundColourL();
+
+
+ private: // data
+ friend class TMockMifAnimationObserver;
+
+ /** File server session used in testing. */
+ RFs iFs;
+
+ /** Instance of the class that this test suite is testing. */
+ CSAnimImagePlugin* iTestObj;
+
+ /** A 32 bit identifer returned by ECom to identify this instance to the framework. */
+ TUid iDtorKey;
+
+ /** For testing async calls. */
+ CTestWaiter* iWaiter;
+
+ /** For testing correct number of calls to animation observer. */
+ TInt iFrameCounter;
+
+ /** Animation observer for testing. */
+ TMockMifAnimationObserver iObserver;
+
+ };
+
+#endif // TSANIMMIF_H
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/inc/sanimmifplugintestsuite.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/inc/sanimmifplugintestsuite.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,144 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CSAnimMifPluginTestSuite class
+*
+*/
+
+
+#ifndef SANIMMIFPLUGINTESTSUITE_H
+#define SANIMMIFPLUGINTESTSUITE_H
+
+#include
+#include
+#include
+#include "sanimobserver.h"
+
+class CSAnimImagePlugin;
+class CSAnimMifPluginTestSuite;
+class CTestWaiter;
+
+NONSHARABLE_CLASS( TMockMifAnimationObserver ) : public MSAnimObserver
+ {
+public:
+ TMockMifAnimationObserver( CSAnimMifPluginTestSuite& aTestSuite ) : iTestSuite( aTestSuite ) {}
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/, const CFbsBitmap& /*aMask*/ );
+ virtual void UpdateScreen( const CFbsBitmap& /*aFrame*/ );
+private:
+ CSAnimMifPluginTestSuite& iTestSuite;
+ };
+
+/**
+* Test cases for CSAnimSvgPlugin class.
+*
+* @lib None
+* @since S60 3.2
+*/
+NONSHARABLE_CLASS( CSAnimMifPluginTestSuite ) : public CEUnitTestSuiteClass
+ {
+
+public:
+
+ /**
+ * Constructs a CSAnimMifPluginTestSuite object.
+ *
+ * @since S60 3.2
+ *
+ * @return The new object
+ */
+ static CSAnimMifPluginTestSuite* NewL();
+ static CSAnimMifPluginTestSuite* NewLC();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CSAnimMifPluginTestSuite();
+
+private:
+
+ /**
+ * First phase constructor.
+ *
+ * @since S60 3.2
+ */
+ CSAnimMifPluginTestSuite();
+
+ /**
+ * Second phase constructor.
+ *
+ * @since S60 3.2
+ */
+ void ConstructL();
+
+private: // New methods
+
+ void SetupEmptyL();
+ void SetupObjL();
+ void SetupFileL( const TDesC& aFileName );
+ void SetupStillImageNoMaskL();
+ void SetupStillImageL();
+ void SetupScaledAnimationL();
+ void SetupUnscaledAnimationL();
+ void SetupFinishedL();
+ void Teardown();
+
+ void TestConstructorL();
+ void TestConstructorNoMemoryL();
+ void TestUnknownFileL();
+ void TestCorruptFileL();
+ void TestNoFramesFileL();
+ void TestLoadStillImageL();
+ void TestLoadScaledAnimationL();
+ void TestLoadUnscaledAnimationL();
+ void TestLoadNoMemoryL();
+ void TestCancelLoadL();
+ void TestShowStillImageL();
+ void TestShowAnimationL();
+ void TestCancelStillImageL();
+ void TestCancelAnimationL();
+ void TestCancelNotActiveL();
+ void TestShowBeforeLoadL();
+ void TestSetDisplayModeL();
+ void TestSetSizeL();
+ void TestSetFrameDelayL();
+ void TestBackroundColourL();
+
+private: // data
+
+ EUNIT_DECLARE_TEST_TABLE;
+
+ friend class TMockMifAnimationObserver;
+
+ /** File server session used in testing. */
+ RFs iFs;
+
+ /** Instance of the class that this test suite is testing. */
+ CSAnimImagePlugin* iTestObj;
+
+ /** A 32 bit identifer returned by ECom to identify this instance to the framework. */
+ TUid iDtorKey;
+
+ /** For testing async calls. */
+ CTestWaiter* iWaiter;
+
+ /** For testing correct number of calls to animation observer. */
+ TInt iFrameCounter;
+
+ /** Animation observer for testing. */
+ TMockMifAnimationObserver iObserver;
+
+ };
+
+#endif // SANIMMIFPLUGINTESTSUITE_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/inc/testwaiter.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/inc/testwaiter.h Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Declaration of CTestWaiter class
+*
+*/
+
+
+#ifndef TESTWAITER_H
+#define TESTWAITER_H
+
+#include
+
+/**
+* Stops active scheduler in RunL.
+*
+* @lib None
+* @since S60 3.2
+*/
+class CTestWaiter : public CActive
+ {
+
+public:
+
+ /**
+ * Constructs a CTestWaiter object.
+ *
+ * @return The new object
+ * @since S60 3.2
+ */
+ static CTestWaiter* NewL();
+
+ /**
+ * Destructor.
+ *
+ * @since S60 3.2
+ */
+ virtual ~CTestWaiter();
+
+ /**
+ * Set active.
+ *
+ * @since S60 3.2
+ */
+ void Activate();
+
+protected:
+
+ /**
+ * From CActive.
+ * Implements cancellation of an outstanding request.
+ *
+ * @since S60 3.2
+ */
+ virtual void DoCancel();
+
+ /**
+ * From CActive.
+ * Handles an active object's request completion event.
+ * Never leaves.
+ *
+ * @since S60 3.2
+ */
+ virtual void RunL();
+
+private:
+
+ /**
+ * First phase constructor.
+ *
+ */
+ CTestWaiter();
+
+private: // data
+
+ };
+
+#endif // TESTWAITER_H
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/rom/TSanimmif.iby
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/rom/TSanimmif.iby Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,9 @@
+#ifndef __TSANIMMIF_IBY__
+#define __TSANIMMIF_IBY__
+
+file=ABI_DIR\BUILD_DIR\TSanimmif.dll SHARED_LIB_DIR\TSanimmif.dll
+
+data=\epoc32\data\z\system\data\UI_TSanimmif.cfg \testframework\UI_TSanimmif.cfg
+
+
+#endif
\ No newline at end of file
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/src/TSanimmif.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/src/TSanimmif.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,198 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// INCLUDE FILES
+#include
+#include "TSanimmif.h"
+#include
+
+// EXTERNAL DATA STRUCTURES
+//extern ?external_data;
+
+// EXTERNAL FUNCTION PROTOTYPES
+//extern ?external_function( ?arg_type,?arg_type );
+
+// CONSTANTS
+//const ?type ?constant_var = ?constant;
+
+// MACROS
+//#define ?macro ?macro_def
+
+// LOCAL CONSTANTS AND MACROS
+//const ?type ?constant_var = ?constant;
+//#define ?macro_name ?macro_def
+
+// MODULE DATA STRUCTURES
+//enum ?declaration
+//typedef ?declaration
+
+// LOCAL FUNCTION PROTOTYPES
+//?type ?function_name( ?arg_type, ?arg_type );
+
+// FORWARD DECLARATIONS
+//class ?FORWARD_CLASSNAME;
+
+// ============================= LOCAL FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// ?function_name ?description.
+// ?description
+// Returns: ?value_1: ?description
+// ?value_n: ?description_line1
+// ?description_line2
+// -----------------------------------------------------------------------------
+//
+/*
+?type ?function_name(
+ ?arg_type arg, // ?description
+ ?arg_type arg) // ?description
+ {
+
+ ?code // ?comment
+
+ // ?comment
+ ?code
+ }
+*/
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CTSanimmif::CTSanimmif
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CTSanimmif::CTSanimmif(
+ CTestModuleIf& aTestModuleIf ):
+ CScriptBase( aTestModuleIf ),iObserver( *this )
+ {
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimmif::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CTSanimmif::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(KTSanimmifLogFileWithTitle, &title);
+ }
+ else
+ {
+ logFileName.Copy(KTSanimmifLogFile);
+ }
+
+ iLog = CStifLogger::NewL( KTSanimmifLogPath,
+ logFileName,
+ CStifLogger::ETxt,
+ CStifLogger::EFile,
+ EFalse );
+
+ SendTestClassVersion();
+ }
+
+// -----------------------------------------------------------------------------
+// CTSanimmif::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CTSanimmif* CTSanimmif::NewL(
+ CTestModuleIf& aTestModuleIf )
+ {
+ CTSanimmif* self = new (ELeave) CTSanimmif( aTestModuleIf );
+
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop();
+
+ return self;
+
+ }
+
+// Destructor
+CTSanimmif::~CTSanimmif()
+ {
+
+ // Delete resources allocated from test methods
+ Delete();
+
+ // Delete logger
+ delete iLog;
+
+ }
+
+//-----------------------------------------------------------------------------
+// CTSanimmif::SendTestClassVersion
+// Method used to send version of test class
+//-----------------------------------------------------------------------------
+//
+void CTSanimmif::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("TSanimmif.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* ) CTSanimmif::NewL( aTestModuleIf );
+
+ }
+
+// End of File
diff -r 1505405bc645 -r b01c07dfcf84 startupservices/startupanimation/tsrc/TSanimmif/src/TSanimmifBlocks.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmif/src/TSanimmifBlocks.cpp Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,659 @@
+/*
+* 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: This file contains testclass implementation.
+*
+*/
+
+// [INCLUDE FILES] - do not remove
+#include