# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1284486973 -10800 # Node ID 2b4be3554d302974aeb183109f07292f56ef9919 # Parent 9a48e301e94b974c2ed48c8e4ebe315dfe45e039 Revision: 201033 Kit: 201035 diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/group/bld.inf --- a/instantmessagesalert/tsrc/testinstantmsgalert/group/bld.inf Wed Sep 01 12:33:36 2010 +0100 +++ b/instantmessagesalert/tsrc/testinstantmsgalert/group/bld.inf Tue Sep 14 20:56:13 2010 +0300 @@ -26,6 +26,7 @@ // 'abld test export' PRJ_EXPORTS +../conf/testinstantmsgalert.cfg /epoc32/winscw/c/TestFramework/testinstantmsgalert.cfg PRJ_TESTMMPFILES testinstantmsgalert.mmp diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/group/testinstantmsgalert.pkg --- a/instantmessagesalert/tsrc/testinstantmsgalert/group/testinstantmsgalert.pkg Wed Sep 01 12:33:36 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -; -; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -; Installation file for STIF -; - -; Languages -&EN - -; Provide value for uid -#{"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/testinstantmsgalert.dll" - "!:/Sys/Bin/testinstantmsgalert.dll" - -; Embedded SIS -; None - -; End of Package body - -; PKG dependencies -; None - -; PKG capabilities -; None diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/instantmessagesalert/tsrc/testinstantmsgalert/init/TestFramework.ini Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,10 @@ +# Module configurations start + +[New_Module] +ModuleName= testscripter +TestCaseFile= C:\testframework\testinstantmsgalert.cfg + +[End_Module] + + + diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/sis/Nokia_RnDCert_02.der Binary file instantmessagesalert/tsrc/testinstantmsgalert/sis/Nokia_RnDCert_02.der has changed diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/sis/Nokia_RnDCert_02.key --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/instantmessagesalert/tsrc/testinstantmsgalert/sis/Nokia_RnDCert_02.key Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQC/TDP7KKIaf5+uW4OD2iVZuUMC2a+SeQTjf6srlKcOm+CpPNXn +uLNm/8fdEnyOIuRXPRKmqhs1n0JkxEGHynELWMTuKXbQx9SRAGUXzyneGn+IJNnO +vOKHWgKCouX2hfI8rtkdqJpqmO460gGsMgw+lsbeyWyW9lnfLxq+ZC7sqQIDAQAB +AoGBALmUWZE8GBaQ3P4u9WUCSd3DJkkrmXIFSULSZeH/chlwCwDjbbhArHothVzo +REE3hEFFlERvHbplZ+mNouzy7boduvgUzbksGrbGMLJ2qO1GzWWVwV+GzOWKd3ss +/98Gwoy5R8pjnkqUE2wP1iJFw0FjvUTKcYv/z6t3LLJ0CsoBAkEA+c7ixvsviQ3J +s0INytCKU2bf8fqFQJi1VI82ukxNsujGTQ9upVSjuvqPvWyDvvTdrUBHqO+3qPut +sEh01Q8aiQJBAMQKDJPVRu4ud3mwUfEavzL5EjqwG1k9VCNGYsT4FwtrHcxu1oP/ +pk6M3rIZukqomoEEnHWPMwhrK3fhBqi0OSECQQDr40VXege4FnH5OI2Hj4afHMyp +VdQQXGMWFyopnzXblFz0lXb43cTCIiorR9XcMqNFHybLypkWE5o+lRzlt55pAkBQ +P/zeF5Sts//cpL0mgdh7OVKpC6ZmZaCnwAx2rUhhuDu+kDDoYCLoTOps5fNI1LRK +1GRoC3LMo3Jr5IYhUYWBAkBpCpN6k4JU/mszq98EojHerQNxk8sPqvQKUzTutohT +1gLX9yepGayB/TtT2EEJDkWOlnTy/dvN6W3vzbJYz97x +-----END RSA PRIVATE KEY----- diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.pkg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,53 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "Eclipse Public License v1.0" +; which accompanies this distribution, and is available +; at the URL "http://www.eclipse.org/legal/epl-v10.html". +; +; Initial Contributors: +; Nokia Corporation - initial contribution. +; +; Contributors: +; +; Description: +; +; Installation file for STIF +; + +; Languages +&EN + +; Provide value for uid +#{"STIF"},(0x00000000), 1, 0, 0, TYPE=SA + +; Series60 product id for S60 3.0 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +; Localised Vendor name +%{"Nokia"} + +; Unique Vendor name +:"Nokia" + + + +;INI FILE +; ttestframework , because rom will not allow to update , rename it +; after install to testframework.ini + +"..\init\testframework.ini" - "c:\Testframework\ttestframework.ini" + + +;CFG FILES + "..\conf\testinstantmsgalert.cfg" -"c:\Testframework\testinstantmsgalert.cfg" + + +; Install files +;"/epoc32/release/armv5/urel/testinstantmsgalert.dll" - "!:/Sys/Bin/testinstantmsgalert.dll" + +;instantmessagesalert.dllt dll files + "\epoc32\release\armv5\urel\testinstantmsgalert.dll" - "!:\Sys\Bin\testinstantmsgalert.dll" + + diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.sis Binary file instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.sis has changed diff -r 9a48e301e94b -r 2b4be3554d30 instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.sisx Binary file instantmessagesalert/tsrc/testinstantmsgalert/sis/testinstantmsgalert.sisx has changed diff -r 9a48e301e94b -r 2b4be3554d30 servicewidget/servicewidgetdatapublisher/src/cservicewidgetservicemanager.cpp --- a/servicewidget/servicewidgetdatapublisher/src/cservicewidgetservicemanager.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/servicewidget/servicewidgetdatapublisher/src/cservicewidgetservicemanager.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -312,7 +312,7 @@ SecondText.Append( *str ); CleanupStack::PopAndDestroy(str); //str } - iExecuteOperation = ESWALaunchSTAutoLogin; + iExecuteOperation = ESWAStartLogin; TInt isSuccessfullLogin = KErrNone; iSettingStore.GetL(iServiceId, EServiceSuccessfullLogin, isSuccessfullLogin ); if( isSuccessfullLogin ) @@ -838,6 +838,7 @@ case ESWALaunchServiceTab: { RxSPViewServices viewServices; + iServiceviewId = iCchHandler->GetServiceViewIdL( iServiceTabUid ); TInt err = viewServices.Activate( iServiceTabUid, iServiceviewId ) ; TRACE_SWP(TXT("CServiceWidgetServiceManager::ExecuteActionL() Activate = %d"), err), @@ -879,6 +880,7 @@ stream.CommitL(); RxSPViewServices viewServices; + iServiceviewId = iCchHandler->GetServiceViewIdL( iServiceTabUid ); TInt err = viewServices.Activate( iServiceTabUid, iServiceviewId , dataPtr ); TRACE_SWP(TXT("CServiceWidgetServiceManager::ExecuteActionL() Activate = %d"), err), diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/conf/CVIMPSTStorageContactList_UT.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/conf/CVIMPSTStorageContactList_UT.cfg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,299 @@ +[Define] + +LISTID myList@nokia.com +DISPLAYNAME emirates +NULL null +NOTNULL notnull + +// --- Flags to indicate the type of params, for test cases 11-17 + +SINGLE_VALID_CONTACT 1 +SINGLE_NULL_CONTACT 2 +AT_POSITIVE_INDEX 3 +AT_NEGATIVE_INDEX 4 +AT_ZERO_INDEX 5 +SAME_CONTACT 6 +DIFFERENT_CONTACTS 7 + +// --- Flags to indicate the type of params, for test cases 18-19 + +MULTIPLE_CONTACTS 1 +ZERO_CONTACTS 2 + +// --- Flags to indicate the type of filters ( params ), for test cases 20-23 + +FILTER1 1 +FILTER2 2 +FILTER3 3 +ALLFILTER 4 +NOFILTER 5 + +// --- Flags to indicate the type of filters ( params ), for test cases 25-27 + +FILTEREDCOUNT1 6 +FILTEREDCOUNT2 7 +FILTEREDCOUNT3 8 + +// --- Flags to indicate filters + +FILTERNOTDEFINED -1 +FILTERALL 0 +FILTERANDOPERATION 1 +FILTERONLINE 2 +FILTERNONBLOCKED 4 +FILTERAWAY 8 +FILTERNONOFFLINE 16 + + +[Enddefine] + +[Test] + +// --- Test cases 1 to 8, test the NewL function --- + + // --- Test Case with valid listid, valid displayname, valid contactsorter +title 1.Test_NewL_valid_listid_valid_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_NewL LISTID DISPLAYNAME +delete foobar +[Endtest] + + // --- Test Case with valid listid, null displayname, valid contactsorter +[Test] +title 2.Test_NewL_valid_listid_null_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_NewL LISTID NULL +delete foobar +[Endtest] + + // --- Test Case with null listid, valid displayname, valid contactsorter +[Test] +title 3.Test_NewL_null_listid_valid_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_NewL NULL DISPLAYNAME +delete foobar +[Endtest] + + // --- Test Case with null listid, null displayname, valid contactsorter +[Test] +title 4.Test_NewL_null_listid_null_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_NewL NULL NULL +delete foobar +[Endtest] + +// --- Test Case 5-6 to test ListId() function + +[Test] +title 5.Test_ListId_valid_listid +create CVIMPSTStorageContactList_UT foobar +foobar Test_ListId LISTID +delete foobar +[Endtest] + +[Test] +title 6.Test_ListId_null_listid +create CVIMPSTStorageContactList_UT foobar +foobar Test_ListId NULL +delete foobar +[Endtest] + +// --- Test Case 7-8 to test DisplayName function + +[Test] +title 7.Test_DisplayName_valid_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_DisplayName DISPLAYNAME LISTID +delete foobar +[Endtest] + +[Test] +title 8.Test_DisplayName_null_displayname +create CVIMPSTStorageContactList_UT foobar +foobar Test_DisplayName NULL LISTID +delete foobar +[Endtest] + +// --- Test Case 9-10 to test Count function +[Test] +title 9.Test_Count_Positive_Count +create CVIMPSTStorageContactList_UT foobar +foobar Test_Count 1 +delete foobar +[Endtest] + +[Test] +title 10.Test_Count_Negative_Count +create CVIMPSTStorageContactList_UT foobar +foobar Test_Count 2 +delete foobar +[Endtest] + +// --- Test Case 11- to test AddStorageContacttoCacheL function +[Test] +title 11.Test_AddContactToList-SINGLE_VALID_CONTACT +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList SINGLE_VALID_CONTACT +delete foobar +[Endtest] + +[Test] +title 12.Test_AddContactToList-SINGLE_NULL_CONTACT +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList SINGLE_NULL_CONTACT +delete foobar +[Endtest] + +[Test] +title 13.Test_AddContactToList-AT_POSITIVE_INDEX +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList AT_POSITIVE_INDEX +delete foobar +[Endtest] + +[Test] +title 14.Test_AddContactToList-AT_NEGATIVE_INDEX +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList AT_NEGATIVE_INDEX +delete foobar +[Endtest] + +[Test] +title 15.Test_AddContactToList-AT_ZERO_INDEX +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList AT_ZERO_INDEX +delete foobar +[Endtest] + +[Test] +title 16.Test_AddContactToList-SAME_CONTACT +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList SAME_CONTACT +delete foobar +[Endtest] + +[Test] +title 17.Test_AddContactToList-DIFFERENT_CONTACTS +create CVIMPSTStorageContactList_UT foobar +foobar Test_AddContactToList DIFFERENT_CONTACTS +delete foobar +[Endtest] + +// --- Test cases to test the Count function + +[Test] +title 18.Test_Count-MULTIPLE_CONTACTS +create CVIMPSTStorageContactList_UT foobar +foobar Test_Count MULTIPLE_CONTACTS +delete foobar +[Endtest] + +[Test] +title 19.Test_Count-ZERO_CONTACTS +create CVIMPSTStorageContactList_UT foobar +foobar Test_Count ZERO_CONTACTS +delete foobar +[Endtest] + +// --- Test cases for FilteredContact function + +[Test] +title 20.Test_FilteredContact-FILTER1 +create CVIMPSTStorageContactList_UT foobar +// Passing 1, indicating the test case variant. Map with +// the list of unit test case in the xls. Similarly in +// test cases 21 and 22. +foobar Test_FilteredContact 1 +delete foobar +[Endtest] + +[Test] +title 21.Test_FilteredContact-FILTER2 +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilteredContact 2 +delete foobar +[Endtest] + +[Test] +title 22.Test_FilteredContact-FILTER3 +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilteredContact 3 +delete foobar +[Endtest] + +// --- Test Cases to check FilteredCount function + +[Test] +title 25.Test_FilteredCount +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilteredCount 1 +delete foobar +[Endtest] + +[Test] +title 26.Test_FilteredCount +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilteredCount 2 +delete foobar +[Endtest] + +[Test] +title 27.Test_FilteredCount +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilteredCount 3 +delete foobar +[Endtest] + +// --- FilterAllowsContact test cases --- + +[Test] +title 28.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilterAllowsContact NULL FILTERNOTDEFINED 28 +delete foobar +[Endtest] + +[Test] +title 29.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilterAllowsContact NOTNULL FILTERONLINE 29 +delete foobar +[Endtest] + +[Test] +title 30.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilterAllowsContact NOTNULL FILTERAWAY 30 +delete foobar +[Endtest] + +[Test] +title 31.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FilterAllowsContact NOTNULL FILTERNOTDEFINED 31 +delete foobar +[Endtest] + +// --- FindIndexOfContact test cases --- + +[Test] +title 32.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FindIndexOfContact 1 +delete foobar +[Endtest] + +[Test] +title 33.Test_FilterAllowsContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FindIndexOfContact 2 +delete foobar +[Endtest] + +[Test] +title 34.Test_FindIndexOfContact +create CVIMPSTStorageContactList_UT foobar +foobar Test_FindIndexOfContact 3 +delete foobar +[Endtest] + diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/conf/CVIMPSTStorageContactSorter_UT.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/conf/CVIMPSTStorageContactSorter_UT.cfg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,88 @@ +[Define] + +[Enddefine] + +// --- Test Case 1, tests NewL() + +[Test] +title 1.CreateSorter +create CVIMPSTStorageContactSorter_UT foobar +foobar CreateSorter +delete foobar +[Endtest] + +// --- Test Case 2-3, tests SetSortAlgorithm() + +[Test] +title 2.SelectAlgorithm +create CVIMPSTStorageContactSorter_UT foobar +foobar SelectAlgorithm 1 +delete foobar +[Endtest] + +[Test] +title 3.SelectAlgorithm +create CVIMPSTStorageContactSorter_UT foobar +foobar SelectAlgorithm 2 +delete foobar +[Endtest] + +// --- Test Cases 4-6, tests Sort() + +[Test] +title 4.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort alpha +delete foobar +[Endtest] + +[Test] +title 5.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort presence +delete foobar +[Endtest] + +[Test] +title 6.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort default +delete foobar +[Endtest] + +// --- Test Cases 7-11, Compare() + +[Test] +title 7.CompareContacts 2 valid contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 2validcontacts +delete foobar +[Endtest] + +[Test] +title 8.CompareContacts 1 valid contact +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 1validcontact +delete foobar +[Endtest] + +[Test] +title 9.CompareContacts 1 null contact +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 1nullcontact +delete foobar +[Endtest] + +[Test] +title 10.CompareContacts 2 null contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 2nullcontacts +delete foobar +[Endtest] + +[Test] +title 11.CompareContacts same contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts samecontacts +delete foobar +[Endtest] diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/conf/CVIMPSTStorageContact_UT.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/conf/CVIMPSTStorageContact_UT.cfg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,205 @@ +[Define] + +USERID nokia@nokia.com +USERID1 sonyericsson@sony.com +DISPLAYNAME connectingpeople +DISPLAYNAME1 Lordaeron +AVATARCONTENT jejamma jejamma +NULL null + +UNKNOWN EUnknown +OFFLINE EOffline +ONLINE EOnline +INVISIBLE EInvisible +AWAY EAway +BUSY EBusy +ONPHONE EOnPhone +DND EDoNotDisturb +PENDING EPending +BLOCKED EBlocked + +STATUSTEXT TheAngelFallsForMe + +POSITIVEINDEX 3 +NEGATIVEINDEX -3 +ZEROINDEX 0 +NULLINDEX 0 + +[Enddefine] + + // Test Cases 1-8 , Test for the NewL function. + +[Test] +title 1.CreateStorageContact-Valid Userid Valid DisplayName +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact USERID DISPLAYNAME NULL +delete obj +[Endtest] + +[Test] +title 2.CreateStorageContact-Valid Userid Null DisplayName +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact USERID NULL NULL +delete obj +[Endtest] + +[Test] +title 3.CreateStorageContact-Null Userid Valid DisplayName +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact NULL DISPLAYNAME NULL +delete obj +[Endtest] + +[Test] +title 4.CreateStorageContact-Null Userid Null DisplayName +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact NULL NULL NULL +delete obj +[Endtest] + +[Test] +title 5.CreateStorageContact-Valid Userid Valid DisplayName Null ContactLink +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact USERID DISPLAYNAME CLINK +delete obj +[Endtest] + +[Test] +title 6.CreateStorageContact-Valid Userid Null DisplayName Null ContactLink +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact USERID NULL CLINK +delete obj +[Endtest] + +[Test] +title 7.CreateStorageContact-Null Userid Valid DisplayName Null ContactLink +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact NULL DISPLAYNAME CLINK +delete obj +[Endtest] + +[Test] +title 8.CreateStorageContact-Null Userid Null DisplayName Null ContactLink +create CVIMPSTStorageContact_UT obj +obj CreateStorageContact NULL NULL CLINK +delete obj +[Endtest] + +// Test Cases 9-10, Test for UserId() and SetUserId () + +[Test] +title 9.SetGetUserId-ValidId +create CVIMPSTStorageContact_UT obj +obj SetGetUserId USERID1 +delete obj +[Endtest] + +[Test] +title 10.SetGetUserId-NullId +create CVIMPSTStorageContact_UT obj +obj SetGetUserId NULL +delete obj +[Endtest] + +// Test Cases 11-12, Test for Avatar() and SetAvatarContentL() + +[Test] +title 11.SetAvatarContent-ValidContent +create CVIMPSTStorageContact_UT obj +obj SetAvatarContent AVATARCONTENT +delete obj +[Endtest] + +[Test] +title 12.SetAvatarContent-NullContent +create CVIMPSTStorageContact_UT obj +obj SetAvatarContent NULL +delete obj +[Endtest] + +// Test Cases 13-14, Test for DisplayName() and SetDisplayName() + +[Test] +title 13.SetGetDisplayName-ValidName +create CVIMPSTStorageContact_UT obj +obj SetGetDisplayName DISPLAYNAME1 +delete obj +[Endtest] + +[Test] +title 14.SetGetDisplayName-NullId +create CVIMPSTStorageContact_UT obj +obj SetGetDisplayName NULL +delete obj +[Endtest] + +// Test Cases 15-16, Test for OnlineStatus() and SetOnlineStatus() + +[Test] +title 15.SetGetPresenceStatus-ValidState +create CVIMPSTStorageContact_UT obj +obj SetGetPresenceStatus ONPHONE +delete obj +[Endtest] + +[Test] +title 16.SetGetPresenceStatus-InValidState +create CVIMPSTStorageContact_UT obj +obj SetGetPresenceStatus NULL +delete obj +[Endtest] + +// Test Cases 17-18, Test for StatusText() and SetStatusText() + +[Test] +title 17.SetGetStatusText-ValidText +create CVIMPSTStorageContact_UT obj +obj SetGetStatusText STATUSTEXT +delete obj +[Endtest] + +[Test] +title 18.SetGetStatusText-NullText +create CVIMPSTStorageContact_UT obj +obj SetGetStatusText NULL +delete obj +[Endtest] + +// Test Cases 19-22, Test for AvatarIndex() and SetAvatarIndex() + +[Test] +title 19.SetGetAvatarIndex-PositiveIndex +create CVIMPSTStorageContact_UT obj +obj SetGetAvatarIndex POSITIVEINDEX +delete obj +[Endtest] + +[Test] +title 20.SetGetAvatarIndex-NegativeIndex +create CVIMPSTStorageContact_UT obj +obj SetGetAvatarIndex NEGATIVEINDEX +delete obj +[Endtest] + +[Test] +title 21.SetGetAvatarIndex-ZeroIndex +create CVIMPSTStorageContact_UT obj +obj SetGetAvatarIndex ZEROINDEX +delete obj +[Endtest] + +[Test] +title 22.SetGetAvatarIndex-NullIndex +create CVIMPSTStorageContact_UT obj +obj SetGetAvatarIndex NULLINDEX +delete obj +[Endtest] + +// Test case 23, Test for ContactLink() + +[Test] +title 23.ContactLink +create CVIMPSTStorageContact_UT obj +obj ContactLink +delete obj +[Endtest] \ No newline at end of file diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/conf/imcache_test.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/conf/imcache_test.cfg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,156 @@ +/* +* ============================================================================== +* Name : imcache_test.cfg +* Part of : instantmessagingcache / imcache_test +* Description : instantmessagingcache related test cases +* Version: : % version:1 % +* +* Copyright (C) 2008 Nokia Corporation. +* This material, including documentation and any related +* computer programs, is protected by copyright controlled by +* Nokia Corporation. All rights are reserved. Copying, +* including reproducing, storing, adapting or translating, any +* or all of this material requires the prior written consent of +* Nokia Corporation. This material also contains confidential +* information which may not be disclosed to others without the +* prior written consent of Nokia Corporation. +* +* ============================================================================ +*/ + +[Test] +title 1. CreateSameUpdaterL +create imcache_test foobar +foobar CreateSameUpdaterL +delete foobar +[Endtest] + + +[Test] +title 2. CreateDifferentUpdaterL +create imcache_test foobar +foobar CreateDifferentUpdaterL +delete foobar +[Endtest] + + +[Test] +title 3. CreateSameAccessorL +create imcache_test foobar +foobar CreateSameAccessorL +delete foobar +[Endtest] + + +[Test] +title 4. CreateDifferentAccessorL +create imcache_test foobar +foobar CreateDifferentAccessorL +delete foobar +[Endtest] + +[Test] +title 5. StartNewConversationL +create imcache_test foobar +foobar StartNewConversationL +delete foobar +[Endtest] + + +[Test] +title 6. AppendSendMessageL +create imcache_test foobar +foobar AppendSendMessageL +delete foobar +[Endtest] + + +[Test] +title 7. AppendRecieveMessageL +create imcache_test foobar +foobar AppendRecieveMessageL +delete foobar +[Endtest] + + +[Test] +title 8. FetchExistingMessageL +create imcache_test foobar +foobar FetchExistingMessageL +delete foobar +[Endtest] + +[Test] +title 9. DeactivateConversationL +create imcache_test foobar +foobar DeactivateConversationL +delete foobar +[Endtest] + +[Test] +title 10. CloseConversationL +create imcache_test foobar +foobar CloseConversationL +delete foobar +[Endtest] + +[Test] +title 11. GetUnreadMsgCountL +create imcache_test foobar +foobar GetUnreadMsgCountL +delete foobar +[Endtest] + + +[Test] +title 12. GetNewMsgNotificationtL +create imcache_test foobar +foobar GetNewMsgNotificationtL +delete foobar +[Endtest] + +[Test] +title 13. ConversationUnExistTestL +create imcache_test foobar +foobar ConversationUnExistTestL +delete foobar +[Endtest] + + +[Test] +title 14. ConversationExistTestL +create imcache_test foobar +foobar ConversationExistTestL +delete foobar +[Endtest] + +[Test] +title 15. AppendMessageL +create imcache_test foobar +foobar AppendMessageL +delete foobar +[Endtest] + +[Test] +title 16. GetAllUnreadMsgCountL +create imcache_test foobar +foobar GetAllUnreadMsgCountL +delete foobar +[Endtest] + + +[Test] +title 17. GetChatListTestL +create imcache_test foobar +foobar GetChatListTestL +delete foobar +[Endtest] + +[Test] +title 18. AccessorCloseConversationTestL +create imcache_test foobar +foobar AccessorCloseConversationTestL +delete foobar +[Endtest] + + diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/conf/testinstantmsgalert.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/conf/testinstantmsgalert.cfg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,107 @@ +[Define] +USERID testmeco +[Enddefine] + + +[Test] +title 1.NewL-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_NewL USERID +delete object +[Endtest] +[Test] +title 2.PlayL-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_PlayL USERID +delete object +[Endtest] +[Test] +title 3.Stop-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_Stop USERID +delete object +[Endtest] +[Test] +title 4.SetVolume-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_SetVolume USERID +delete object +[Endtest] +[Test] +title 5.SetRingingType-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_SetRingingType USERID +delete object +[Endtest] +[Test] +title 6.SetVibra-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_SetVibra USERID +delete object +[Endtest] +[Test] +title 7.DoSetRingingType-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_DoSetRingingType USERID +delete object +[Endtest] +[Test] +title 8.ConvertVolume-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_ConvertVolume USERID +delete object +[Endtest] +[Test] +title 9.MapcInitComplete-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_MapcInitComplete USERID +delete object +[Endtest] +[Test] +title 10.MapcPlayComplete-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_MapcPlayComplete USERID +delete object +[Endtest] +[Test] +title 11.HandleKeyChange-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_HandleKeyChange USERID +delete object +[Endtest] +[Test] +title 12.HandleNotifyInt-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_HandleNotifyInt USERID +delete object +[Endtest] +[Test] +title 13.MatoPrepareComplete-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_MatoPrepareComplete USERID +delete object +[Endtest] +[Test] +title 14.MatoPlayComplete-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_MatoPlayComplete USERID +delete object +[Endtest] +[Test] +title 15.AddObserverL-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_AddObserverL USERID +delete object +[Endtest] +[Test] +title 16.RemoveObserver-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_RemoveObserver USERID +delete object +[Endtest] +[Test] +title 17.HandleError-CIMAlertManager +create testinstantmsgalert object +object CIMAlertManager_HandleError USERID +delete object +[Endtest] diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/group/bld.inf Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,51 @@ +/* +* 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: Build information file for test components in conversations and imsrv +* +*/ + + +// Project configuration file for test components for IM +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_TESTMMPFILES + +// conversations +#include "../../uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/bld.inf" +#include "../../uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/bld.inf" +#include "../../instantmessagesalert/tsrc/testinstantmsgalert/group/bld.inf" + +// imsrv +#include "../../../../mw/imsrv/imservices/instantmessagingcache/tsrc/group/bld.inf" +#include "../../../../mw/imsrv/ximpfw/tsrc/group/bld.inf" + + + +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 +../conf/CVIMPSTStorageContact_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContact_UT.cfg +../conf/CVIMPSTStorageContactList_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContactList_UT.cfg +../conf/CVIMPSTStorageContactSorter_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContactSorter_UT.cfg +../conf/imcache_test.cfg /epoc32/winscw/c/TestFramework/imcache_test.cfg +../conf/testinstantmsgalert.cfg /epoc32/winscw/c/TestFramework/testinstantmsgalert.cfg + + + diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/init/TestFramework.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/init/TestFramework.ini Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,57 @@ +# +# This is STIFTestFramework initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', + 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= C:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT or HTML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +[End_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start + +[New_Module] +ModuleName= testscripter +TestCaseFile= C:\testframework\imcache_test.cfg +[End_Module] + +[New_Module] +ModuleName= testscripter +TestCaseFile= C:\testframework\CVIMPSTStorageContact_UT.cfg +TestCaseFile= C:\testframework\CVIMPSTStorageContactList_UT.cfg +TestCaseFile= C:\testframework\CVIMPSTStorageContactSorter_UT.cfg +[End_Module] + +[New_Module] +ModuleName= testscripter +TestCaseFile= C:\testframework\testinstantmsgalert.cfg +[End_Module] + + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +[Logger_Defaults] + +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/sis/Nokia_RnDCert_02.der Binary file tsrc/sis/Nokia_RnDCert_02.der has changed diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/sis/Nokia_RnDCert_02.key --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/sis/Nokia_RnDCert_02.key Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQC/TDP7KKIaf5+uW4OD2iVZuUMC2a+SeQTjf6srlKcOm+CpPNXn +uLNm/8fdEnyOIuRXPRKmqhs1n0JkxEGHynELWMTuKXbQx9SRAGUXzyneGn+IJNnO +vOKHWgKCouX2hfI8rtkdqJpqmO460gGsMgw+lsbeyWyW9lnfLxq+ZC7sqQIDAQAB +AoGBALmUWZE8GBaQ3P4u9WUCSd3DJkkrmXIFSULSZeH/chlwCwDjbbhArHothVzo +REE3hEFFlERvHbplZ+mNouzy7boduvgUzbksGrbGMLJ2qO1GzWWVwV+GzOWKd3ss +/98Gwoy5R8pjnkqUE2wP1iJFw0FjvUTKcYv/z6t3LLJ0CsoBAkEA+c7ixvsviQ3J +s0INytCKU2bf8fqFQJi1VI82ukxNsujGTQ9upVSjuvqPvWyDvvTdrUBHqO+3qPut +sEh01Q8aiQJBAMQKDJPVRu4ud3mwUfEavzL5EjqwG1k9VCNGYsT4FwtrHcxu1oP/ +pk6M3rIZukqomoEEnHWPMwhrK3fhBqi0OSECQQDr40VXege4FnH5OI2Hj4afHMyp +VdQQXGMWFyopnzXblFz0lXb43cTCIiorR9XcMqNFHybLypkWE5o+lRzlt55pAkBQ +P/zeF5Sts//cpL0mgdh7OVKpC6ZmZaCnwAx2rUhhuDu+kDDoYCLoTOps5fNI1LRK +1GRoC3LMo3Jr5IYhUYWBAkBpCpN6k4JU/mszq98EojHerQNxk8sPqvQKUzTutohT +1gLX9yepGayB/TtT2EEJDkWOlnTy/dvN6W3vzbJYz97x +-----END RSA PRIVATE KEY----- diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/sis/all.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/sis/all.pkg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,52 @@ +; +; 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: +; +;Header +#{"All"}, (0x101FB3E3), 1, 0, 0 +;Language - standard language definitions +&EN +;Vendor ID +:"Nokia Corporation" +;Localised vendor +%{"Vendor-EN"} +;Supports Series 60 v 0.9 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + +;rom will not allow to update it if name is testframework, after install need to rename it to testframework.ini + +;INI FILE +"..\init\testframework.ini" -"c:\Testframework\ttestframework.ini" + +;CFG FILES +"..\conf\imcache_test.cfg" -"c:\Testframework\imcache_test.cfg" + "..\conf\CVIMPSTStorageContact_UT.cfg" -"c:\Testframework\CVIMPSTStorageContact_UT.cfg" + "..\conf\CVIMPSTStorageContactList_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactList_UT.cfg" + "..\conf\CVIMPSTStorageContactSorter_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactSorter_UT.cfg" + "..\conf\testinstantmsgalert.cfg" -"c:\Testframework\testinstantmsgalert.cfg" + + +;imcache_test dll files + +"\EPOC32\RELEASE\ARMV5\UREL\imcache_test.dll" -"!:\sys\bin\imcache_test.dll" + +;vimststorage_test dll files + "\epoc32\release\armv5\urel\CVIMPSTStorageContact_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContact_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactList_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactList_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactSorter_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactSorter_UTs.dll" + + +;testinstantmessagesalert dll files + "\epoc32\release\armv5\urel\testinstantmsgalert.dll" - "!:\Sys\Bin\testinstantmsgalert.dll" + \ No newline at end of file diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/sis/all.sis Binary file tsrc/sis/all.sis has changed diff -r 9a48e301e94b -r 2b4be3554d30 tsrc/sis/all.sisx Binary file tsrc/sis/all.sisx has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/blue.gif Binary file uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/blue.gif has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/ctc.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/ctc.css Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,35 @@ +/************************************************************************ +* CSS stylesheet file generated by ctc2html v2.4 +* Copyright (c) 2006-2008 Testwell Oy +************************************************************************/ + + .head1 {font-family: verdana, arial, helvetica, sans-serif; color: #000088; + font-size: 17pt; background-color: white; font-weight: bold;} + .head2 {font-family: verdana, arial, helvetica, sans-serif; color: #000000; + font-size: 17pt; background-color: white;} + .head3 {font-family: verdana, arial, helvetica, sans-serif; color: #000000; + font-size: 10pt; background-color: white;} + .black {font-family: verdana, arial, helvetica, sans-serif; color: #000000; + font-size: 10pt; background-color: white;} + .blackDecoNo {font-family: verdana, arial, helvetica, sans-serif; color: #000000; + text-decoration: none; font-size: 10pt; background-color: white;} + .red {font-family: verdana, arial, helvetica, sans-serif; color: #FF0000; + text-decoration: none; font-size: 10pt; background-color: white;} + .blue {font-family: verdana, arial, helvetica, sans-serif; color: #101080; + text-decoration: none; font-size: 10pt; background-color: white;} + .black_source {font-family: "courier new", courier, monospace; color: #000000; + font-size: 9pt; background-color: white;} + .red_source {font-family: "courier new", courier, monospace; color: #FF0000; + font-size: 9pt; background-color: white;} + .black_profile {font-family: "courier new", courier, monospace; color: #000000; + font-size: 9pt; background-color: #DFDFE5;} + .red_profile {font-family: "courier new", courier, monospace; color: #FF0000; + font-size: 9pt; background-color: #DFDFE5;} + a:hover {text-decoration: underline;} + table.sortable thead {font-family: verdana, arial, helvetica, sans-serif; color: #000000; + font-size: 10pt; background-color: white; + font-weight: bold; cursor: default;} + table.sortable th {border-bottom: thin solid black; padding-bottom: 0.20em; + padding-right: 0.20em;} + table.sortable td {padding-top: 0.20em; padding-right: 0.20em;} + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/ctc.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/ctc.js Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,353 @@ +///////////////////////////////////////////////////////////////////////// +// Javascript file generated by ctc2html v2.4 +// Copyright (c) 2006-2008 Testwell Oy +///////////////////////////////////////////////////////////////////////// +target=location.hash; +function load(){ +if(target=="#a1"){ +parent.index.location="indexC.html#a1"; +parent.profile.location="indexD1.html"; +} +if(target=="#a2"){ +parent.index.location="indexC.html#a2"; +parent.profile.location="indexD2.html"; +} +if(target=="#a3"){ +parent.index.location="indexC.html#a3"; +parent.profile.location="indexD3.html"; +} +if(target=="#a4"){ +parent.index.location="indexC.html#a4"; +parent.profile.location="indexD4.html"; +} +if(target=="#a5"){ +parent.index.location="indexC.html#a5"; +parent.profile.location="indexD5.html"; +} +if(target=="#a6"){ +parent.index.location="indexC.html#a6"; +parent.profile.location="indexD6.html"; +} +if(target=="#a7"){ +parent.index.location="indexC.html#a7"; +parent.profile.location="indexD7.html"; +} +if(target=="#a8"){ +parent.index.location="indexC.html#a8"; +parent.profile.location="indexD8.html"; +} +if(target=="#a9"){ +parent.index.location="indexC.html#a9"; +parent.profile.location="indexD9.html"; +} +if(target=="#a10"){ +parent.index.location="indexC.html#a10"; +parent.profile.location="indexD10.html"; +} +if(target=="#a11"){ +parent.index.location="indexC.html#a11"; +parent.profile.location="indexD11.html"; +} +if(target=="#a12"){ +parent.index.location="indexC.html#a12"; +parent.profile.location="indexD12.html"; +} +if(target=="#a13"){ +parent.index.location="indexC.html#a13"; +parent.profile.location="indexD13.html"; +} +if(target=="#a14"){ +parent.index.location="indexC.html#a14"; +parent.profile.location="indexD14.html"; +} +if(target=="#a15"){ +parent.index.location="indexC.html#a15"; +parent.profile.location="indexD15.html"; +} +if(target=="#a16"){ +parent.index.location="indexC.html#a16"; +parent.profile.location="indexD16.html"; +} +if(target=="#a17"){ +parent.index.location="indexC.html#a17"; +parent.profile.location="indexD17.html"; +} +if(target=="#a18"){ +parent.index.location="indexC.html#a18"; +parent.profile.location="indexD18.html"; +} +if(target=="#a19"){ +parent.index.location="indexC.html#a19"; +parent.profile.location="indexD19.html"; +} +if(target=="#a20"){ +parent.index.location="indexC.html#a20"; +parent.profile.location="indexD20.html"; +} +if(target=="#a21"){ +parent.index.location="indexC.html#a21"; +parent.profile.location="indexD21.html"; +} +if(target=="#a22"){ +parent.index.location="indexC.html#a22"; +parent.profile.location="indexD22.html"; +} +if(target=="#a23"){ +parent.index.location="indexC.html#a23"; +parent.profile.location="indexD23.html"; +} +if(target=="#a24"){ +parent.index.location="indexC.html#a24"; +parent.profile.location="indexD24.html"; +} +if(target=="#a25"){ +parent.index.location="indexC.html#a25"; +parent.profile.location="indexD25.html"; +} +if(target=="#a26"){ +parent.index.location="indexC.html#a26"; +parent.profile.location="indexD26.html"; +} +if(target=="#a27"){ +parent.index.location="indexC.html#a27"; +parent.profile.location="indexD27.html"; +} +if(target=="#a28"){ +parent.index.location="indexC.html#a28"; +parent.profile.location="indexD28.html"; +} +if(target=="#a29"){ +parent.index.location="indexC.html#a29"; +parent.profile.location="indexD29.html"; +} +if(target=="#a30"){ +parent.index.location="indexC.html#a30"; +parent.profile.location="indexD30.html"; +} +if(target=="#a31"){ +parent.index.location="indexC.html#a31"; +parent.profile.location="indexD31.html"; +} +if(target=="#a32"){ +parent.index.location="indexC.html#a32"; +parent.profile.location="indexD32.html"; +} +if(target=="#a33"){ +parent.index.location="indexC.html#a33"; +parent.profile.location="indexD33.html"; +} +if(target=="#a34"){ +parent.index.location="indexC.html#a34"; +parent.profile.location="indexD34.html"; +} +if(target=="#a35"){ +parent.index.location="indexC.html#a35"; +parent.profile.location="indexD35.html"; +} +if(target=="#a36"){ +parent.index.location="indexC.html#a36"; +parent.profile.location="indexD36.html"; +} +if(target=="#a37"){ +parent.index.location="indexC.html#a37"; +parent.profile.location="indexD37.html"; +} +if(target=="#a38"){ +parent.index.location="indexC.html#a38"; +parent.profile.location="indexD38.html"; +} +if(target=="#a39"){ +parent.index.location="indexC.html#a39"; +parent.profile.location="indexD39.html"; +} +if(target=="#a40"){ +parent.index.location="indexC.html#a40"; +parent.profile.location="indexD40.html"; +} +if(target=="#a41"){ +parent.index.location="indexC.html#a41"; +parent.profile.location="indexD41.html"; +} +if(target=="#a42"){ +parent.index.location="indexC.html#a42"; +parent.profile.location="indexD42.html"; +} +if(target=="#a43"){ +parent.index.location="indexC.html#a43"; +parent.profile.location="indexD43.html"; +} +} +function load2(){ +if(target=="#ad1"){ +parent.index2.location="indexH.html#ad1"; +parent.functions.location="indexB1.html"; +} +if(target=="#ad1"){ +parent.index2.location="indexH.html#ad1"; +parent.functions.location="indexB1.html"; +} +if(target=="#ad1"){ +parent.index2.location="indexH.html#ad1"; +parent.functions.location="indexB1.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad2"){ +parent.index2.location="indexH.html#ad2"; +parent.functions.location="indexB2.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +if(target=="#ad3"){ +parent.index2.location="indexH.html#ad3"; +parent.functions.location="indexB3.html"; +} +} diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/index.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,97 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Files Summary

+Directory Summary | Files Summary | Functions Summary | Execution Profile

+ + + + + + + + + + + + +
Symbol file(s): MON.sym (Tue Oct 06 16:19:13 2009)
Data file(s): MON.dat (Tue Oct 06 16:25:54 2009)
Listing produced at: Tue Oct 06 16:26:53 2009
Coverage view: As instrumented
 
Input listing: profile.txt
Html generated at: Tue Oct 6 16:27:11 2009
ctc2html v2.4 options: -i profile.txt 
Threshold percent: 100 %

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  File

Directory: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src
100 %   0/ 0 t_vimpstcmdprocess_cmdfactory_utestcases.cpp
100 %   0/ 0 t_vimpstcmdprocess_processarray_utest.cpp
80 % - 12/ 15 vimpstcmdprocess_utest.cpp
80 % - 12/ 15 DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src)
 
Directory: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub
0 % - 0/ 2 s_ccafactory.cpp
0 % - 0/ 27 s_cvpbkcontactlinkarray.cpp
50 % - 3/ 6 s_engineextentionfeatures.cpp
38 % - 3/ 8 s_enginesearchextention.cpp
0 % - 0/ 13 s_imsubservice.cpp
25 % - 1/ 4 s_mccaconnection.cpp
0 % - 0/ 11 s_mccaparameter.cpp
14 % - 1/ 7 s_mvpbkcontactlinkstub.cpp
100 %   4/ 4 s_processarrayobserver.cpp
57 % - 4/ 7 s_storageitemmodel.cpp
50 % - 1/ 2 s_vimpstcmdobserver.cpp
58 % - 15/ 26 s_vimpstengin.cpp
40 % - 12/ 30 s_vimpstenginepresencesubservice.cpp
0 % - 0/ 11 s_vimpstprocessarrayitem.cpp
67 % - 10/ 15 s_vimpststoragecontact.cpp
0 % - 0/ 21 s_vimpststoragecontactlist.cpp
60 % - 3/ 5 s_vimpststoragemanagerfactory.cpp
42 % - 11/ 26 s_vimpststorageserviceview.cpp
30 % - 68/ 225 DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub)
 
Directory: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src
100 %   9/ 9 cvimpstcmdaddcontact.cpp
100 %   8/ 8 cvimpstcmdaddtopbk.cpp
100 %   8/ 8 cvimpstcmdblockcontact.cpp
100 %   7/ 7 cvimpstcmdcancellogin.cpp
44 % - 4/ 9 cvimpstcmdcca.cpp
100 %   8/ 8 cvimpstcmdchangeownavtar.cpp
100 %   8/ 8 cvimpstcmdchangeownmessage.cpp
100 %   8/ 8 cvimpstcmdchangeownstatus.cpp
100 %   8/ 8 cvimpstcmdcloseconversation.cpp
100 %   8/ 8 cvimpstcmddeletecontact.cpp
56 % - 5/ 9 cvimpstcmdfactory.cpp
100 %   8/ 8 cvimpstcmdfetchblockedlist.cpp
0 % - 0/ 8 cvimpstcmdhandler.cpp
100 %   8/ 8 cvimpstcmdlogin.cpp
100 %   8/ 8 cvimpstcmdlogout.cpp
100 %   9/ 9 cvimpstcmdprocessselectedcontact.cpp
100 %   8/ 8 cvimpstcmdsearch.cpp
100 %   8/ 8 cvimpstcmdunblockcontact.cpp
87 % - 47/ 54 cvimpstprocessarray.cpp
57 % - 21/ 37 cvimpstprocessarrayitem.cpp
45 % - 5/ 11 cvimpstprocessfriendrequestitem.cpp
100 %   8/ 8 cvimstcmdfriendrequest.cpp
82 % - 211/ 257 DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src)
 

59 % - 291/ 497 OVERALL

+ + + + + + + +
Number of directories: 3
Number of monitored source files: 43
Number of functions: 497
Number of source lines: 8386
Number of measurement points: 994
TER: 59% (function)

+Directory Summary | Files Summary | Functions Summary | Execution Profile

+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexA.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexA.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,16 @@ + + +CTC++ Coverage Report + + + + + + + + + + + + + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB1.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,98 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Functions Summary +   #1/3

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Index | No Index


+Directory: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src
+TER: 80 % ( 12/ 15)

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_cmdfactory_utestcases.cpp
+Instrumentation mode: function
+TER: 100 % (  0/  0)
+To files: Previous | +Next

+ + + + + + + + +
TER % - covered/ all  Calls Line Function


100 %   0/ 0   t_vimpstcmdprocess_cmdfactory_utestcases.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_processarray_utest.cpp
+Instrumentation mode: function
+TER: 100 % (  0/  0)
+To files: Previous | +Next

+ + + + + + + + +
TER % - covered/ all  Calls Line Function


100 %   0/ 0   t_vimpstcmdprocess_processarray_utest.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\vimpstcmdprocess_utest.cpp
+Instrumentation mode: function
+TER: 80 % ( 12/ 15)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 102 Cvimpstcmdprocess_utest::Cvimpstcmdprocess_utest()
100 %   1/ 1 118 Cvimpstcmdprocess_utest::ConstructL()
100 %   1/ 1 136 Cvimpstcmdprocess_utest::NewL()
100 %   1/ 1 149 Cvimpstcmdprocess_utest::~Cvimpstcmdprocess_utest()
100 %   1/ 1 159 Cvimpstcmdprocess_utest::InitL()
100 %   1/ 1 175 Cvimpstcmdprocess_utest::GetTestCasesL()
100 %   1/ 1 130 190 Cvimpstcmdprocess_utest::RunTestCaseL()
100 %   1/ 1 130 237 Cvimpstcmdprocess_utest::OOMTestQueryL()
0 % - 0/ 1 258 Cvimpstcmdprocess_utest::OOMTestInitializeL()
0 % - 0/ 1 276 Cvimpstcmdprocess_utest::OOMHandleWarningL()
0 % - 0/ 1 291 Cvimpstcmdprocess_utest::OOMTestFinalizeL()
100 %   1/ 1 302 Cvimpstcmdprocess_utest::SendTestModuleVersion()
100 %   1/ 1 323 LibEntryL()
100 %   1/ 1 335 SetRequirements()
100 %   1/ 1 392 386 Cvimpstcmdprocess_utest::MainTestL()

80 % - 12/ 15   vimpstcmdprocess_utest.cpp
 

80 % - 12/ 15   DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src)

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB2.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,728 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Functions Summary +   #2/3

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Index | No Index


+Directory: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub
+TER: 30 % ( 68/ 225)

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_ccafactory.cpp
+Instrumentation mode: function
+TER: 0 % (  0/  2)
+To files: Previous | +Next

+ + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 32 TCCAFactory::NewParameterL()
0 % - 0/ 1 44 TCCAFactory::NewConnectionL()

0 % - 0/ 2   s_ccafactory.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_cvpbkcontactlinkarray.cpp
+Instrumentation mode: function
+TER: 0 % (  0/ 27)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 27 CVPbkContactLinkArray::NewL()
0 % - 0/ 1 35 CVPbkContactLinkArray::NewLC()
0 % - 0/ 1 51 CVPbkContactLinkArray::NewLC()
0 % - 0/ 1 70 CVPbkContactLinkArray::NewLC()
0 % - 0/ 1 90 CVPbkContactLinkArray::NewLC()
0 % - 0/ 1 102 CVPbkContactLinkArray::~CVPbkContactLinkArray()
0 % - 0/ 1 114 CVPbkContactLinkArray::AppendL()
0 % - 0/ 1 128 CVPbkContactLinkArray::InsertL()
0 % - 0/ 1 136 CVPbkContactLinkArray::Remove()
0 % - 0/ 1 144 CVPbkContactLinkArray::Delete()
0 % - 0/ 1 149 CVPbkContactLinkArray::ResetAndDestroy()
0 % - 0/ 1 156 CVPbkContactLinkArray::Reset()
0 % - 0/ 1 161 CVPbkContactLinkArray::PackedBufferSize()
0 % - 0/ 1 164 CVPbkContactLinkArray::Count()
0 % - 0/ 1 165 CVPbkContactLinkArray::At()
0 % - 0/ 1 171 CVPbkContactLinkArray::Find()
0 % - 0/ 1 172 CVPbkContactLinkArray::PackLC()
0 % - 0/ 1 184 CVPbkContactLinkArray::Streamable()
0 % - 0/ 1 190 CVPbkContactLinkArray::CVPbkContactLinkArray()
0 % - 0/ 1 191 CVPbkContactLinkArray::ConstructL()
0 % - 0/ 1 192 CVPbkContactLinkArray::ConstructL()
0 % - 0/ 1 194 CVPbkContactLinkArray::ConstructL()
0 % - 0/ 1 196 CVPbkContactLinkArray::DoCalculatePackedBufferSizeV2()
0 % - 0/ 1 197 CVPbkContactLinkArray::DoFillPackedBufferV2L()
0 % - 0/ 1 198 CVPbkContactLinkArray::InternalizeFromBufferL()
0 % - 0/ 1 200 CVPbkContactLinkArray::DoInternalizeFromBufferL()
0 % - 0/ 1 202 CVPbkContactLinkArray::DoInternalizeFromBufferV2L()

0 % - 0/ 27   s_cvpbkcontactlinkarray.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_engineextentionfeatures.cpp
+Instrumentation mode: function
+TER: 50 % (  3/  6)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 12 23 extentionfeatures_stub::NewL()
0 % - 0/ 1 29 extentionfeatures_stub::IsSupported()
0 % - 0/ 1 38 extentionfeatures_stub::SetSupported()
100 %   1/ 1 12 49 extentionfeatures_stub::Type()
100 %   1/ 1 12 74 extentionfeatures_stub::AddServerContactL()
0 % - 0/ 1 81 extentionfeatures_stub::DeleteServerContactL()

50 % - 3/ 6   s_engineextentionfeatures.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_enginesearchextention.cpp
+Instrumentation mode: function
+TER: 38 % (  3/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 23 searchextention_stub::NewL()
0 % - 0/ 1 29 searchextention_stub::IsSupported()
0 % - 0/ 1 38 searchextention_stub::SetSupported()
100 %   1/ 1 49 searchextention_stub::Type()
0 % - 0/ 1 54 searchextention_stub::RegisterObserver()
0 % - 0/ 1 60 searchextention_stub::UnRegisterObserver()
100 %   1/ 1 65 searchextention_stub::SearchContactsL()
0 % - 0/ 1 70 searchextention_stub::SubscribeForSearchKeysL()

38 % - 3/ 8   s_enginesearchextention.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_imsubservice.cpp
+Instrumentation mode: function
+TER: 0 % (  0/ 13)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 34 CVIMPSTEngineImSubService_Stub::CVIMPSTEngineImSubService_Stub()
0 % - 0/ 1 42 CVIMPSTEngineImSubService_Stub::ConstructL()
0 % - 0/ 1 53 CVIMPSTEngineImSubService_Stub::NewL()
0 % - 0/ 1 65 CVIMPSTEngineImSubService_Stub::NewLC()
0 % - 0/ 1 79 CVIMPSTEngineImSubService_Stub::~CVIMPSTEngineImSubService_Stub()
0 % - 0/ 1 85 CVIMPSTEngineImSubService_Stub::SubServiceState()
0 % - 0/ 1 96 CVIMPSTEngineImSubService_Stub::Type()
0 % - 0/ 1 108 CVIMPSTEngineImSubService_Stub::RegisterChatObserver()
0 % - 0/ 1 116 CVIMPSTEngineImSubService_Stub::UnRegisterChatObserver()
0 % - 0/ 1 124 CVIMPSTEngineImSubService_Stub::GetUnreadCountL()
0 % - 0/ 1 134 CVIMPSTEngineImSubService_Stub::IsConversationExistL()
0 % - 0/ 1 145 CVIMPSTEngineImSubService_Stub::CloseConversationL()
0 % - 0/ 1 154 CVIMPSTEngineImSubService_Stub::GetOpenChatListL()

0 % - 0/ 13   s_imsubservice.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaconnection.cpp
+Instrumentation mode: function
+TER: 25 % (  1/  4)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 28 MCCAConnectionStub::NewL()
0 % - 0/ 1 34 MCCAConnectionStub::Close()
0 % - 0/ 1 42 MCCAConnectionStub::LaunchApplicationL()
0 % - 0/ 1 49 MCCAConnectionStub::LaunchAppL()

25 % - 1/ 4   s_mccaconnection.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaparameter.cpp
+Instrumentation mode: function
+TER: 0 % (  0/ 11)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 43 MCCAParameterstub::NewL()
0 % - 0/ 1 54 MCCAParameterstub::ConnectionFlag()
0 % - 0/ 1 64 MCCAParameterstub::ContactDataFlag()
0 % - 0/ 1 75 MCCAParameterstub::ContactDataL()
0 % - 0/ 1 85 MCCAParameterstub::LaunchedViewUid()
0 % - 0/ 1 95 MCCAParameterstub::Version()
0 % - 0/ 1 107 MCCAParameterstub::SetConnectionFlag()
0 % - 0/ 1 119 MCCAParameterstub::SetContactDataFlag()
0 % - 0/ 1 135 MCCAParameterstub::SetContactDataL()
0 % - 0/ 1 147 MCCAParameterstub::SetLaunchedViewUid()
0 % - 0/ 1 152 MCCAParameterstub::Close()

0 % - 0/ 11   s_mccaparameter.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mvpbkcontactlinkstub.cpp
+Instrumentation mode: function
+TER: 14 % (  1/  7)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 154 23 CVPbkContactLinkStub::NewL()
0 % - 0/ 1 33 CVPbkContactLinkStub::ContactStore()
0 % - 0/ 1 46 CVPbkContactLinkStub::IsSame()
0 % - 0/ 1 59 CVPbkContactLinkStub::RefersTo()
0 % - 0/ 1 69 CVPbkContactLinkStub::Streamable()
0 % - 0/ 1 80 CVPbkContactLinkStub::Packing()
0 % - 0/ 1 90 CVPbkContactLinkStub::CloneLC()

14 % - 1/ 7   s_mvpbkcontactlinkstub.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_processarrayobserver.cpp
+Instrumentation mode: function
+TER: 100 % (  4/  4)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 22 vimpstprocessarrayobserver_stub::NewL()
100 %   1/ 1 32 28 vimpstprocessarrayobserver_stub::HandleAdditionL()
100 %   1/ 1 10 33 vimpstprocessarrayobserver_stub::HandleDeletionL()
100 %   1/ 1 37 vimpstprocessarrayobserver_stub::HandleAvatarChangeL()

100 %   4/ 4   s_processarrayobserver.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_storageitemmodel.cpp
+Instrumentation mode: function
+TER: 57 % (  4/  7)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 128 35 vimpststorageitemlist_stub::NewL()
100 %   1/ 1 134 43 vimpststorageitemlist_stub::Count()
100 %   1/ 1 134 54 vimpststorageitemlist_stub::Item()
100 %   1/ 1 69 vimpststorageitemlist_stub::IndexOfContact()
0 % - 0/ 1 82 vimpststorageitemlist_stub::IndexOfList()
0 % - 0/ 1 94 vimpststorageitemlist_stub::MdcaCount()
0 % - 0/ 1 105 vimpststorageitemlist_stub::MdcaPoint()

57 % - 4/ 7   s_storageitemmodel.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstcmdobserver.cpp
+Instrumentation mode: function
+TER: 50 % (  1/  2)
+To files: Previous | +Next

+ + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 38 23 vimpstcmdobserver_stub::CommandFinishedL()
0 % - 0/ 1 28 vimpstcmdobserver_stub::HandleCommandEventL()

50 % - 1/ 2   s_vimpstcmdobserver.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstengin.cpp
+Instrumentation mode: function
+TER: 58 % ( 15/ 26)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 44 vimpstengine_stub::GetBrandInfoL()
100 %   1/ 1 126 54 vimpstengine_stub::ServiceState()
100 %   1/ 1 230 65 vimpstengine_stub::ServiceId()
100 %   1/ 1 83 vimpstengine_stub::IsSubServiceSupportedL()
0 % - 0/ 1 95 vimpstengine_stub::IsSubServiceEnabled()
100 %   1/ 1 76 106 vimpstengine_stub::ContactStoreIdL()
100 %   1/ 1 76 116 vimpstengine_stub::ServiceName()
100 %   1/ 1 76 126 vimpstengine_stub::RegisterServiceSessionObserverL()
100 %   1/ 1 46 136 vimpstengine_stub::UnRegisterServiceSessionObserver()
100 %   1/ 1 76 146 vimpstengine_stub::IntializeStorageL()
100 %   1/ 1 46 154 vimpstengine_stub::UnIntializeStorage()
100 %   1/ 1 688 176 vimpstengine_stub::SubService()
100 %   1/ 1 16 203 vimpstengine_stub::ExtentionFeatures()
100 %   1/ 1 273 vimpstengine_stub::Login()
100 %   1/ 1 281 vimpstengine_stub::LogoutL()
0 % - 0/ 1 293 vimpstengine_stub::DefaultDomainNameL()
100 %   1/ 1 302 vimpstengine_stub::IsBlockSupportedL()
0 % - 0/ 1 307 vimpstengine_stub::ChangeConnectionL()
0 % - 0/ 1 317 vimpstengine_stub::IsPasswordAvailableL()
0 % - 0/ 1 326 vimpstengine_stub::DeleteDataBaseL()
0 % - 0/ 1 333 vimpstengine_stub::GetPreseceSubService()
100 %   1/ 1 349 vimpstengine_stub::FetchBlockedListL()
0 % - 0/ 1 357 vimpstengine_stub::RegisterBlockedListObserver()
0 % - 0/ 1 363 vimpstengine_stub::GetOwnUserIdFromCChOrStorageL()
0 % - 0/ 1 369 vimpstengine_stub::RetriveContextIfCChEnabledL()
0 % - 0/ 1 373 vimpstengine_stub::SetOwnUserIdIfChangedL()

58 % - 15/ 26   s_vimpstengin.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstenginepresencesubservice.cpp
+Instrumentation mode: function
+TER: 40 % ( 12/ 30)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 236 35 CVIMPSTEnginePresenceSubService_Stub::CVIMPSTEnginePresenceSubService_Stub()
100 %   1/ 1 236 43 CVIMPSTEnginePresenceSubService_Stub::ConstructL()
100 %   1/ 1 236 54 CVIMPSTEnginePresenceSubService_Stub::NewL()
100 %   1/ 1 236 66 CVIMPSTEnginePresenceSubService_Stub::NewLC()
0 % - 0/ 1 80 CVIMPSTEnginePresenceSubService_Stub::~CVIMPSTEnginePresenceSubService_Stub()
0 % - 0/ 1 86 CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSingleContactL()
0 % - 0/ 1 96 CVIMPSTEnginePresenceSubService_Stub::SubServiceState()
100 %   1/ 1 228 107 CVIMPSTEnginePresenceSubService_Stub::Type()
0 % - 0/ 1 118 CVIMPSTEnginePresenceSubService_Stub::Enabled()
0 % - 0/ 1 129 CVIMPSTEnginePresenceSubService_Stub::SubscribePresenceOfSingleContactL()
0 % - 0/ 1 138 CVIMPSTEnginePresenceSubService_Stub::UnSubscribePresenceOfSingleContactL()
100 %   1/ 1 12 148 CVIMPSTEnginePresenceSubService_Stub::PublishOwnPresenceL()
0 % - 0/ 1 162 CVIMPSTEnginePresenceSubService_Stub::FetchPresenceFromCache()
0 % - 0/ 1 171 CVIMPSTEnginePresenceSubService_Stub::SubscribeToPresenceCacheL()
0 % - 0/ 1 181 CVIMPSTEnginePresenceSubService_Stub::UnSubscribeToPresenceCacheL()
0 % - 0/ 1 194 CVIMPSTEnginePresenceSubService_Stub::UnSubscribeForAuthorizationL()
0 % - 0/ 1 202 CVIMPSTEnginePresenceSubService_Stub::SubscribeForAuthorizationL()
100 %   1/ 1 209 CVIMPSTEnginePresenceSubService_Stub::SendPresenceGrantPresentityL()
0 % - 0/ 1 219 CVIMPSTEnginePresenceSubService_Stub::IsChangeOwnStatusSupported()
0 % - 0/ 1 229 CVIMPSTEnginePresenceSubService_Stub::IsStatusMsgSupported()
0 % - 0/ 1 239 CVIMPSTEnginePresenceSubService_Stub::IsAvatarSupported()
0 % - 0/ 1 248 CVIMPSTEnginePresenceSubService_Stub::SetAvatarSupported()
100 %   1/ 1 126 258 CVIMPSTEnginePresenceSubService_Stub::RegisterPresenceEventObserverL()
100 %   1/ 1 46 269 CVIMPSTEnginePresenceSubService_Stub::UnRegisterPresenceEventObserver()
100 %   1/ 1 278 CVIMPSTEnginePresenceSubService_Stub::AddToBlockListL()
100 %   1/ 1 36 296 CVIMPSTEnginePresenceSubService_Stub::GetBlockedList()
0 % - 0/ 1 314 CVIMPSTEnginePresenceSubService_Stub::FetchBlockedListFromServerL()
100 %   1/ 1 322 CVIMPSTEnginePresenceSubService_Stub::RemoveFromBlockListL()
0 % - 0/ 1 335 CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSinleContactL()
0 % - 0/ 1 339 CVIMPSTEnginePresenceSubService_Stub::UpdatePresenceStateL()

40 % - 12/ 30   s_vimpstenginepresencesubservice.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstprocessarrayitem.cpp
+Instrumentation mode: function
+TER: 0 % (  0/ 11)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 25 vimpstprocessarrayitem_stub::NewL()
0 % - 0/ 1 31 vimpstprocessarrayitem_stub::vimpstprocessarrayitem_stub()
0 % - 0/ 1 57 vimpstprocessarrayitem_stub::IsMsgPending()
0 % - 0/ 1 62 vimpstprocessarrayitem_stub::SetMsgPending()
0 % - 0/ 1 70 vimpstprocessarrayitem_stub::Type()
0 % - 0/ 1 91 vimpstprocessarrayitem_stub::GetItemIndex()
0 % - 0/ 1 99 vimpstprocessarrayitem_stub::ContactLink()
0 % - 0/ 1 110 vimpstprocessarrayitem_stub::SetItemIndex()
0 % - 0/ 1 119 vimpstprocessarrayitem_stub::GetItemUserId()
0 % - 0/ 1 128 vimpstprocessarrayitem_stub::AvatarIndex()
0 % - 0/ 1 137 vimpstprocessarrayitem_stub::SetAvatarIndex()

0 % - 0/ 11   s_vimpstprocessarrayitem.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontact.cpp
+Instrumentation mode: function
+TER: 67 % ( 10/ 15)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 314 35 vimpststoragecontact_stub::NewL()
100 %   1/ 1 42 vimpststoragecontact_stub::~vimpststoragecontact_stub()
100 %   1/ 1 300 52 vimpststoragecontact_stub::UserId()
100 %   1/ 1 154 62 vimpststoragecontact_stub::Name()
100 %   1/ 1 136 71 vimpststoragecontact_stub::OnlineStatus()
0 % - 0/ 1 83 vimpststoragecontact_stub::SetOnlineStatus()
100 %   1/ 1 95 vimpststoragecontact_stub::StatusText()
0 % - 0/ 1 105 vimpststoragecontact_stub::SetStatusTextL()
0 % - 0/ 1 115 vimpststoragecontact_stub::SetAvatarContentL()
0 % - 0/ 1 126 vimpststoragecontact_stub::SetUserIdL()
0 % - 0/ 1 136 vimpststoragecontact_stub::SetNameL()
100 %   1/ 1 154 144 vimpststoragecontact_stub::ContactLink()
100 %   1/ 1 154 vimpststoragecontact_stub::AvatarContent()
100 %   1/ 1 163 vimpststoragecontact_stub::SetAvatarIndex()
100 %   1/ 1 172 vimpststoragecontact_stub::AvatarIndex()

67 % - 10/ 15   s_vimpststoragecontact.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontactlist.cpp
+Instrumentation mode: function
+TER: 0 % (  0/ 21)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 28 vimpststoragecontactlist_stub::ListId()
0 % - 0/ 1 37 vimpststoragecontactlist_stub::DisplayName()
0 % - 0/ 1 45 vimpststoragecontactlist_stub::AddStorageContactToCacheL()
0 % - 0/ 1 54 vimpststoragecontactlist_stub::RemoveContactFromCacheL()
0 % - 0/ 1 63 vimpststoragecontactlist_stub::RemoveContactFromCacheL()
0 % - 0/ 1 71 vimpststoragecontactlist_stub::ContactCount()
0 % - 0/ 1 81 vimpststoragecontactlist_stub::FindContactIndex()
0 % - 0/ 1 91 vimpststoragecontactlist_stub::FindContactEntry()
0 % - 0/ 1 99 vimpststoragecontactlist_stub::Sort()
0 % - 0/ 1 108 vimpststoragecontactlist_stub::ResortContact()
0 % - 0/ 1 118 vimpststoragecontactlist_stub::FindIndexOfContact()
0 % - 0/ 1 129 vimpststoragecontactlist_stub::Count()
0 % - 0/ 1 139 vimpststoragecontactlist_stub::OnlineCount()
0 % - 0/ 1 148 vimpststoragecontactlist_stub::operator_[]()
0 % - 0/ 1 158 vimpststoragecontactlist_stub::OnlineContact()
0 % - 0/ 1 168 vimpststoragecontactlist_stub::FilteredContact()
0 % - 0/ 1 179 vimpststoragecontactlist_stub::FilteredCount()
0 % - 0/ 1 189 vimpststoragecontactlist_stub::FilterAllowsContact()
0 % - 0/ 1 199 vimpststoragecontactlist_stub::FindContact()
0 % - 0/ 1 207 vimpststoragecontactlist_stub::FindContactByContactLink()
0 % - 0/ 1 216 vimpststoragecontactlist_stub::FindContactByLinkL()

0 % - 0/ 21   s_vimpststoragecontactlist.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragemanagerfactory.cpp
+Instrumentation mode: function
+TER: 60 % (  3/  5)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 36 CVIMPSTStorageManagerFactory::InitialiseLibraryL()
0 % - 0/ 1 46 CVIMPSTStorageManagerFactory::Release()
100 %   1/ 1 76 55 CVIMPSTStorageManagerFactory::InitialiseViewL()
100 %   1/ 1 154 68 CVIMPSTStorageManagerFactory::ContactListInterfaceL()
100 %   1/ 1 126 78 CVIMPSTStorageManagerFactory::ItemModelInterfaceL()

60 % - 3/ 5   s_vimpststoragemanagerfactory.cpp

+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststorageserviceview.cpp
+Instrumentation mode: function
+TER: 42 % ( 11/ 26)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 156 23 vimpstserviceview_stub::NewL()
100 %   1/ 1 126 29 vimpstserviceview_stub::AddObserverL()
100 %   1/ 1 46 34 vimpstserviceview_stub::RemoveObserver()
100 %   1/ 1 38 40 vimpstserviceview_stub::FindContactByUserId()
0 % - 0/ 1 51 vimpstserviceview_stub::ListCount()
0 % - 0/ 1 56 vimpstserviceview_stub::ListAt()
0 % - 0/ 1 64 vimpstserviceview_stub::FindContactList()
0 % - 0/ 1 69 vimpstserviceview_stub::CreateContactListL()
0 % - 0/ 1 77 vimpstserviceview_stub::RemoveContactList()
0 % - 0/ 1 83 vimpstserviceview_stub::ContactCount()
0 % - 0/ 1 90 vimpstserviceview_stub::UpdatePresenceL()
0 % - 0/ 1 99 vimpstserviceview_stub::UpdateAvatarL()
0 % - 0/ 1 105 vimpstserviceview_stub::CreateNewContactL()
100 %   1/ 1 114 vimpstserviceview_stub::CreateNewContactFromRetrivedIdL()
100 %   1/ 1 16 119 vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL()
0 % - 0/ 1 124 vimpstserviceview_stub::RemoveContactL()
0 % - 0/ 1 130 vimpstserviceview_stub::CreateNewFetchContactsL()
100 %   1/ 1 16 137 vimpstserviceview_stub::IsLocalStore()
100 %   1/ 1 16 143 vimpstserviceview_stub::RetriveLinkXSPIdsL()
100 %   1/ 1 24 147 vimpstserviceview_stub::GetRetrieveXSPIdL()
100 %   1/ 1 167 vimpstserviceview_stub::FindContactByLink()
0 % - 0/ 1 173 vimpstserviceview_stub::Sort()
100 %   1/ 1 146 178 vimpstserviceview_stub::OwnContactL()
0 % - 0/ 1 185 vimpstserviceview_stub::DeleteDatabaseL()
0 % - 0/ 1 190 vimpstserviceview_stub::SetOwnUserIdL()
0 % - 0/ 1 195 vimpstserviceview_stub::SetUnnamedTextL()

42 % - 11/ 26   s_vimpststorageserviceview.cpp
 

30 % - 68/ 225   DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub)

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexB3.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,848 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Functions Summary +   #3/3

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Index | No Index


+Directory: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src
+TER: 82 % ( 211/ 257)

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddcontact.cpp
+Instrumentation mode: function
+TER: 100 % (  9/  9)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 50 CVIMPSTCmdAddContact::CVIMPSTCmdAddContact()
100 %   1/ 1 63 CVIMPSTCmdAddContact::~CVIMPSTCmdAddContact()
100 %   1/ 1 72 CVIMPSTCmdAddContact::NewL()
100 %   1/ 1 84 CVIMPSTCmdAddContact::ConstructL()
100 %   1/ 1 93 CVIMPSTCmdAddContact::ExecuteLD()
100 %   1/ 1 152 CVIMPSTCmdAddContact::IsContactBlocked()
100 %   1/ 1 181 CVIMPSTCmdAddContact::AddObserver()
100 %   1/ 1 192 CVIMPSTCmdAddContact::CommandId()
100 %   1/ 1 201 CVIMPSTCmdAddContact::Result()

100 %   9/ 9   cvimpstcmdaddcontact.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddtopbk.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 37 CVIMPSTCmdAddToPbk::CVIMPSTCmdAddToPbk()
100 %   1/ 1 50 CVIMPSTCmdAddToPbk::~CVIMPSTCmdAddToPbk()
100 %   1/ 1 59 CVIMPSTCmdAddToPbk::NewL()
100 %   1/ 1 71 CVIMPSTCmdAddToPbk::ConstructL()
100 %   1/ 1 80 CVIMPSTCmdAddToPbk::ExecuteLD()
100 %   1/ 1 108 CVIMPSTCmdAddToPbk::AddObserver()
100 %   1/ 1 119 CVIMPSTCmdAddToPbk::CommandId()
100 %   1/ 1 128 CVIMPSTCmdAddToPbk::Result()

100 %   8/ 8   cvimpstcmdaddtopbk.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdblockcontact.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 41 CVIMPSTCmdBlockContact::CVIMPSTCmdBlockContact()
100 %   1/ 1 56 CVIMPSTCmdBlockContact::~CVIMPSTCmdBlockContact()
100 %   1/ 1 65 CVIMPSTCmdBlockContact::NewL()
100 %   1/ 1 78 CVIMPSTCmdBlockContact::ConstructL()
100 %   1/ 1 87 CVIMPSTCmdBlockContact::ExecuteLD()
100 %   1/ 1 125 CVIMPSTCmdBlockContact::AddObserver()
100 %   1/ 1 136 CVIMPSTCmdBlockContact::CommandId()
100 %   1/ 1 145 CVIMPSTCmdBlockContact::Result()

100 %   8/ 8   cvimpstcmdblockcontact.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcancellogin.cpp
+Instrumentation mode: function
+TER: 100 % (  7/  7)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 35 CVIMPSTCmdCancelLogin::CVIMPSTCmdCancelLogin()
100 %   1/ 1 46 CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin()
100 %   1/ 1 54 CVIMPSTCmdCancelLogin::NewL()
100 %   1/ 1 67 CVIMPSTCmdCancelLogin::ExecuteLD()
100 %   1/ 1 93 CVIMPSTCmdCancelLogin::AddObserver()
100 %   1/ 1 104 CVIMPSTCmdCancelLogin::CommandId()
100 %   1/ 1 113 CVIMPSTCmdCancelLogin::Result()

100 %   7/ 7   cvimpstcmdcancellogin.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcca.cpp
+Instrumentation mode: function
+TER: 44 % (  4/  9)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 42 CVIMPSTCmdCCA::CVIMPSTCmdCCA()
0 % - 0/ 1 60 CVIMPSTCmdCCA::~CVIMPSTCmdCCA()
100 %   1/ 1 68 CVIMPSTCmdCCA::NewL()
100 %   1/ 1 82 CVIMPSTCmdCCA::ConstructL()
0 % - 0/ 1 93 CVIMPSTCmdCCA::ExecuteLD()
0 % - 0/ 1 114 CVIMPSTCmdCCA::AddObserver()
100 %   1/ 1 125 CVIMPSTCmdCCA::CommandId()
0 % - 0/ 1 134 CVIMPSTCmdCCA::Result()
0 % - 0/ 1 144 CVIMPSTCmdCCA::LaunchCcaL()

44 % - 4/ 9   cvimpstcmdcca.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownavtar.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 36 CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar()
100 %   1/ 1 49 CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar()
100 %   1/ 1 58 CVIMPSTCmdChangeOwnAvtar::NewL()
100 %   1/ 1 70 CVIMPSTCmdChangeOwnAvtar::ConstructL()
100 %   1/ 1 79 CVIMPSTCmdChangeOwnAvtar::ExecuteLD()
100 %   1/ 1 111 CVIMPSTCmdChangeOwnAvtar::AddObserver()
100 %   1/ 1 122 CVIMPSTCmdChangeOwnAvtar::CommandId()
100 %   1/ 1 131 CVIMPSTCmdChangeOwnAvtar::Result()

100 %   8/ 8   cvimpstcmdchangeownavtar.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownmessage.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 37 CVIMPSTCmdChangeOwnMessage::CVIMPSTCmdChangeOwnMessage()
100 %   1/ 1 51 CVIMPSTCmdChangeOwnMessage::~CVIMPSTCmdChangeOwnMessage()
100 %   1/ 1 60 CVIMPSTCmdChangeOwnMessage::NewL()
100 %   1/ 1 72 CVIMPSTCmdChangeOwnMessage::ConstructL()
100 %   1/ 1 81 CVIMPSTCmdChangeOwnMessage::ExecuteLD()
100 %   1/ 1 114 CVIMPSTCmdChangeOwnMessage::AddObserver()
100 %   1/ 1 125 CVIMPSTCmdChangeOwnMessage::CommandId()
100 %   1/ 1 134 CVIMPSTCmdChangeOwnMessage::Result()

100 %   8/ 8   cvimpstcmdchangeownmessage.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownstatus.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 37 CVIMPSTCmdChangeOwnStatus::CVIMPSTCmdChangeOwnStatus()
100 %   1/ 1 51 CVIMPSTCmdChangeOwnStatus::~CVIMPSTCmdChangeOwnStatus()
100 %   1/ 1 60 CVIMPSTCmdChangeOwnStatus::NewL()
100 %   1/ 1 72 CVIMPSTCmdChangeOwnStatus::ConstructL()
100 %   1/ 1 81 CVIMPSTCmdChangeOwnStatus::ExecuteLD()
100 %   1/ 1 124 CVIMPSTCmdChangeOwnStatus::AddObserver()
100 %   1/ 1 135 CVIMPSTCmdChangeOwnStatus::CommandId()
100 %   1/ 1 144 CVIMPSTCmdChangeOwnStatus::Result()

100 %   8/ 8   cvimpstcmdchangeownstatus.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcloseconversation.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 37 CVIMPSTCmdCloseConversation::CVIMPSTCmdCloseConversation()
100 %   1/ 1 50 CVIMPSTCmdCloseConversation::~CVIMPSTCmdCloseConversation()
100 %   1/ 1 59 CVIMPSTCmdCloseConversation::NewL()
100 %   1/ 1 71 CVIMPSTCmdCloseConversation::ConstructL()
100 %   1/ 1 80 CVIMPSTCmdCloseConversation::ExecuteLD()
100 %   1/ 1 112 CVIMPSTCmdCloseConversation::AddObserver()
100 %   1/ 1 123 CVIMPSTCmdCloseConversation::CommandId()
100 %   1/ 1 132 CVIMPSTCmdCloseConversation::Result()

100 %   8/ 8   cvimpstcmdcloseconversation.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmddeletecontact.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 49 CVIMPSTCmdDeleteContact::CVIMPSTCmdDeleteContact()
100 %   1/ 1 62 CVIMPSTCmdDeleteContact::~CVIMPSTCmdDeleteContact()
100 %   1/ 1 71 CVIMPSTCmdDeleteContact::NewL()
100 %   1/ 1 83 CVIMPSTCmdDeleteContact::ConstructL()
100 %   1/ 1 92 CVIMPSTCmdDeleteContact::ExecuteLD()
100 %   1/ 1 159 CVIMPSTCmdDeleteContact::AddObserver()
100 %   1/ 1 170 CVIMPSTCmdDeleteContact::CommandId()
100 %   1/ 1 179 CVIMPSTCmdDeleteContact::Result()

100 %   8/ 8   cvimpstcmddeletecontact.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfactory.cpp
+Instrumentation mode: function
+TER: 56 % (  5/  9)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 76 54 CVIMPSTCmdFactory::CVIMPSTCmdFactory()
100 %   1/ 1 76 64 CVIMPSTCmdFactory::ConstructL()
100 %   1/ 1 76 95 CVIMPSTCmdFactory::NewL()
100 %   1/ 1 46 109 CVIMPSTCmdFactory::~CVIMPSTCmdFactory()
100 %   1/ 1 76 127 CVIMPSTCmdFactory::CreateCommandForIdL()
0 % - 0/ 1 255 CVIMPSTCmdFactory::HandleServiceEventL()
0 % - 0/ 1 270 CVIMPSTCmdFactory::AddObserverL()
0 % - 0/ 1 282 CVIMPSTCmdFactory::RemoveObserver()
0 % - 0/ 1 299 CVIMPSTCmdFactory::GetProcessInterface()

56 % - 5/ 9   cvimpstcmdfactory.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfetchblockedlist.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 40 CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList()
100 %   1/ 1 51 CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList()
100 %   1/ 1 60 CVIMPSTCmdFetchBlockedContactList::NewL()
100 %   1/ 1 71 CVIMPSTCmdFetchBlockedContactList::ConstructL()
100 %   1/ 1 80 CVIMPSTCmdFetchBlockedContactList::ExecuteLD()
100 %   1/ 1 105 CVIMPSTCmdFetchBlockedContactList::AddObserver()
100 %   1/ 1 116 CVIMPSTCmdFetchBlockedContactList::CommandId()
100 %   1/ 1 125 CVIMPSTCmdFetchBlockedContactList::Result()

100 %   8/ 8   cvimpstcmdfetchblockedlist.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdhandler.cpp
+Instrumentation mode: function
+TER: 0 % (  0/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

0 % - 0/ 1 31 CVIMPSTCmdHandler::CVIMPSTCmdHandler()
0 % - 0/ 1 39 CVIMPSTCmdHandler::~CVIMPSTCmdHandler()
0 % - 0/ 1 48 CVIMPSTCmdHandler::NewL()
0 % - 0/ 1 61 CVIMPSTCmdHandler::ConstructL()
0 % - 0/ 1 70 CVIMPSTCmdHandler::HandleCommandL()
0 % - 0/ 1 94 CVIMPSTCmdHandler::RegisterEventObserverL()
0 % - 0/ 1 103 CVIMPSTCmdHandler::UnRegisterEventObserver()
0 % - 0/ 1 111 CVIMPSTCmdHandler::GetProcessInterface()

0 % - 0/ 8   cvimpstcmdhandler.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogin.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 35 CVIMPSTCmdLogin::CVIMPSTCmdLogin()
100 %   1/ 1 48 CVIMPSTCmdLogin::~CVIMPSTCmdLogin()
100 %   1/ 1 57 CVIMPSTCmdLogin::NewL()
100 %   1/ 1 69 CVIMPSTCmdLogin::ConstructL()
100 %   1/ 1 78 CVIMPSTCmdLogin::ExecuteLD()
100 %   1/ 1 103 CVIMPSTCmdLogin::AddObserver()
100 %   1/ 1 114 CVIMPSTCmdLogin::CommandId()
100 %   1/ 1 123 CVIMPSTCmdLogin::Result()

100 %   8/ 8   cvimpstcmdlogin.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogout.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 38 CVIMPSTCmdLogout::CVIMPSTCmdLogout()
100 %   1/ 1 51 CVIMPSTCmdLogout::~CVIMPSTCmdLogout()
100 %   1/ 1 60 CVIMPSTCmdLogout::NewL()
100 %   1/ 1 72 CVIMPSTCmdLogout::ConstructL()
100 %   1/ 1 81 CVIMPSTCmdLogout::ExecuteLD()
100 %   1/ 1 106 CVIMPSTCmdLogout::AddObserver()
100 %   1/ 1 117 CVIMPSTCmdLogout::CommandId()
100 %   1/ 1 126 CVIMPSTCmdLogout::Result()

100 %   8/ 8   cvimpstcmdlogout.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdprocessselectedcontact.cpp
+Instrumentation mode: function
+TER: 100 % (  9/  9)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 16 49 CVIMPSTCmdProcessSelectedContact::CVIMPSTCmdProcessSelectedContact()
100 %   1/ 1 16 62 CVIMPSTCmdProcessSelectedContact::~CVIMPSTCmdProcessSelectedContact()
100 %   1/ 1 16 71 CVIMPSTCmdProcessSelectedContact::NewL()
100 %   1/ 1 16 83 CVIMPSTCmdProcessSelectedContact::ConstructL()
100 %   1/ 1 16 92 CVIMPSTCmdProcessSelectedContact::ExecuteLD()
100 %   1/ 1 195 CVIMPSTCmdProcessSelectedContact::AddObserver()
100 %   1/ 1 16 206 CVIMPSTCmdProcessSelectedContact::CommandId()
100 %   1/ 1 215 CVIMPSTCmdProcessSelectedContact::Result()
100 %   1/ 1 24 228 CVIMPSTCmdProcessSelectedContact::IsContactBlocked()

100 %   9/ 9   cvimpstcmdprocessselectedcontact.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdsearch.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 36 CVIMPSTCmdSearch::CVIMPSTCmdSearch()
100 %   1/ 1 51 CVIMPSTCmdSearch::~CVIMPSTCmdSearch()
100 %   1/ 1 60 CVIMPSTCmdSearch::NewL()
100 %   1/ 1 73 CVIMPSTCmdSearch::ConstructL()
100 %   1/ 1 82 CVIMPSTCmdSearch::ExecuteLD()
100 %   1/ 1 115 CVIMPSTCmdSearch::AddObserver()
100 %   1/ 1 126 CVIMPSTCmdSearch::CommandId()
100 %   1/ 1 135 CVIMPSTCmdSearch::Result()

100 %   8/ 8   cvimpstcmdsearch.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdunblockcontact.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 38 CVIMPSTCmdUnBlockContact::CVIMPSTCmdUnBlockContact()
100 %   1/ 1 51 CVIMPSTCmdUnBlockContact::~CVIMPSTCmdUnBlockContact()
100 %   1/ 1 60 CVIMPSTCmdUnBlockContact::NewL()
100 %   1/ 1 72 CVIMPSTCmdUnBlockContact::ConstructL()
100 %   1/ 1 81 CVIMPSTCmdUnBlockContact::ExecuteLD()
100 %   1/ 1 123 CVIMPSTCmdUnBlockContact::AddObserver()
100 %   1/ 1 134 CVIMPSTCmdUnBlockContact::CommandId()
100 %   1/ 1 143 CVIMPSTCmdUnBlockContact::Result()

100 %   8/ 8   cvimpstcmdunblockcontact.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarray.cpp
+Instrumentation mode: function
+TER: 87 % ( 47/ 54)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 126 55 CVIMPSTProcessArray::CVIMPSTProcessArray()
100 %   1/ 1 46 67 CVIMPSTProcessArray::~CVIMPSTProcessArray()
100 %   1/ 1 126 113 CVIMPSTProcessArray::NewL()
100 %   1/ 1 126 130 CVIMPSTProcessArray::ConstructL()
100 %   1/ 1 28 174 CVIMPSTProcessArray::HandleStorageChangeL()
100 %   1/ 1 541 CVIMPSTProcessArray::AddObserver()
0 % - 0/ 1 549 CVIMPSTProcessArray::RemoveObserver()
100 %   1/ 1 558 CVIMPSTProcessArray::GetItemNameText()
100 %   1/ 1 12 605 CVIMPSTProcessArray::GetItemUserId()
100 %   1/ 1 633 CVIMPSTProcessArray::ContactLink()
0 % - 0/ 1 664 CVIMPSTProcessArray::Count()
100 %   1/ 1 673 CVIMPSTProcessArray::IsSubServiceSupportedL()
100 %   1/ 1 32 682 CVIMPSTProcessArray::GetType()
100 %   1/ 1 134 706 CVIMPSTProcessArray::FillItemL()
100 %   1/ 1 136 767 CVIMPSTProcessArray::FillOwnDataL()
100 %   1/ 1 134 899 CVIMPSTProcessArray::FillArrayL()
100 %   1/ 1 134 919 CVIMPSTProcessArray::ResetArray()
100 %   1/ 1 935 CVIMPSTProcessArray::SetLoginStateL()
100 %   1/ 1 954 CVIMPSTProcessArray::GetLoginState()
100 %   1/ 1 963 CVIMPSTProcessArray::GetOnlineStatusL()
100 %   1/ 1 998 CVIMPSTProcessArray::StatusTextL()
100 %   1/ 1 1034 CVIMPSTProcessArray::RemoveFromUnknonOrInvitationListL()
100 %   1/ 1 1060 CVIMPSTProcessArray::RemoveFromUnknonListL()
100 %   1/ 1 1107 CVIMPSTProcessArray::RemoveFromInvitationListL()
0 % - 0/ 1 1152 CVIMPSTProcessArray::MapContactListPositions()
100 %   1/ 1 1176 CVIMPSTProcessArray::GetAndCreateOpenChatListL()
100 %   1/ 1 1222 CVIMPSTProcessArray::FindArrayItem()
100 %   1/ 1 12 1243 CVIMPSTProcessArray::HandleChatMessageEventL()
100 %   1/ 1 18 1339 CVIMPSTProcessArray::HandleAddRequestEventL()
100 %   1/ 1 1402 CVIMPSTProcessArray::DoHandleUnKnownContactMessageL()
0 % - 0/ 1 1437 CVIMPSTProcessArray::IsMsgPending()
0 % - 0/ 1 1454 CVIMPSTProcessArray::IsConversationExist()
0 % - 0/ 1 1471 CVIMPSTProcessArray::ResetPendingMsg()
100 %   1/ 1 1486 CVIMPSTProcessArray::ResetOpenConversationPendingMsg()
100 %   1/ 1 1502 CVIMPSTProcessArray::FindAnyContact()
100 %   1/ 1 1519 CVIMPSTProcessArray::FindAnyContactServiceField()
100 %   1/ 1 1535 CVIMPSTProcessArray::FindAndMarkContactAsOpenChat()
100 %   1/ 1 136 1558 CVIMPSTProcessArray::IsUnreadMessageExistsL()
100 %   1/ 1 138 1581 CVIMPSTProcessArray::IsConversationExistL()
100 %   1/ 1 1598 CVIMPSTProcessArray::FindContactIndexL()
100 %   1/ 1 134 1615 CVIMPSTProcessArray::FillUnknownContactsL()
100 %   1/ 1 134 1636 CVIMPSTProcessArray::FillAddRequestDataL()
100 %   1/ 1 136 1657 CVIMPSTProcessArray::RemoveUnKnownContacts()
100 %   1/ 1 134 1675 CVIMPSTProcessArray::RemoveAddRequestData()
100 %   1/ 1 1695 CVIMPSTProcessArray::LoginUserIdFromStoreL()
100 %   1/ 1 1710 CVIMPSTProcessArray::AvatarIndex()
100 %   1/ 1 1733 CVIMPSTProcessArray::SetAvatarIndex()
100 %   1/ 1 1754 CVIMPSTProcessArray::AvatarContent()
100 %   1/ 1 1775 CVIMPSTProcessArray::OwnAvatarContentL()
100 %   1/ 1 1786 CVIMPSTProcessArray::OwnAvatarIndexL()
0 % - 0/ 1 1796 CVIMPSTProcessArray::SetOwnAvatarIndexL()
100 %   1/ 1 20 1807 CVIMPSTProcessArray::FindAnyAddRequest()
100 %   1/ 1 1824 CVIMPSTProcessArray::GetSelectedItemIndex()
100 %   1/ 1 1841 CVIMPSTProcessArray::IsContactBlocked()

87 % - 47/ 54   cvimpstprocessarray.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarrayitem.cpp
+Instrumentation mode: function
+TER: 57 % ( 21/ 37)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 154 29 CVIMPSTProcessContactItem::NewL()
100 %   1/ 1 154 45 CVIMPSTProcessContactItem::ConstructL()
100 %   1/ 1 154 57 CVIMPSTProcessContactItem::CVIMPSTProcessContactItem()
100 %   1/ 1 66 66 CVIMPSTProcessContactItem::~CVIMPSTProcessContactItem()
100 %   1/ 1 18 76 CVIMPSTProcessContactItem::Type()
0 % - 0/ 1 85 CVIMPSTProcessContactItem::GetItemNameText()
100 %   1/ 1 18 98 CVIMPSTProcessContactItem::GetItemUserId()
100 %   1/ 1 110 CVIMPSTProcessContactItem::SetMsgPending()
0 % - 0/ 1 118 CVIMPSTProcessContactItem::IsMsgPending()
100 %   1/ 1 127 CVIMPSTProcessContactItem::SetConversationOpen()
0 % - 0/ 1 135 CVIMPSTProcessContactItem::IsConversationOpen()
0 % - 0/ 1 143 CVIMPSTProcessContactListItem::NewL()
0 % - 0/ 1 156 CVIMPSTProcessContactListItem::ConstructL()
0 % - 0/ 1 164 CVIMPSTProcessContactListItem::CVIMPSTProcessContactListItem()
0 % - 0/ 1 172 CVIMPSTProcessContactListItem::~CVIMPSTProcessContactListItem()
0 % - 0/ 1 182 CVIMPSTProcessContactListItem::Type()
0 % - 0/ 1 191 CVIMPSTProcessContactListItem::IsCollapsed()
0 % - 0/ 1 200 CVIMPSTProcessContactListItem::SetCollapsed()
0 % - 0/ 1 209 CVIMPSTProcessContactListItem::GetItemNameText()
0 % - 0/ 1 218 CVIMPSTProcessContactListItem::SetItemNameText()
100 %   1/ 1 144 227 CVIMPSTProcessOwnDataItem::NewL()
100 %   1/ 1 144 240 CVIMPSTProcessOwnDataItem::ConstructL()
100 %   1/ 1 144 248 CVIMPSTProcessOwnDataItem::CVIMPSTProcessOwnDataItem()
100 %   1/ 1 64 257 CVIMPSTProcessOwnDataItem::~CVIMPSTProcessOwnDataItem()
100 %   1/ 1 12 266 CVIMPSTProcessOwnDataItem::Type()
100 %   1/ 1 14 275 CVIMPSTProcessOwnDataItem::GetItemUserId()
100 %   1/ 1 288 CVIMPSTProcessUnknownContactItem::CVIMPSTProcessUnknownContactItem()
100 %   1/ 1 297 CVIMPSTProcessUnknownContactItem::NewL()
100 %   1/ 1 310 CVIMPSTProcessUnknownContactItem::ConstructL()
100 %   1/ 1 322 CVIMPSTProcessUnknownContactItem::~CVIMPSTProcessUnknownContactItem()
0 % - 0/ 1 332 CVIMPSTProcessUnknownContactItem::GetItemNameText()
0 % - 0/ 1 341 CVIMPSTProcessUnknownContactItem::Type()
100 %   1/ 1 349 CVIMPSTProcessUnknownContactItem::GetItemUserId()
100 %   1/ 1 358 CVIMPSTProcessUnknownContactItem::SetMsgPending()
0 % - 0/ 1 366 CVIMPSTProcessUnknownContactItem::IsMsgPending()
100 %   1/ 1 375 CVIMPSTProcessUnknownContactItem::SetConversationOpen()
0 % - 0/ 1 383 CVIMPSTProcessUnknownContactItem::IsConversationOpen()

57 % - 21/ 37   cvimpstprocessarrayitem.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessfriendrequestitem.cpp
+Instrumentation mode: function
+TER: 45 % (  5/ 11)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 27 CVIMPSTProcessFriendRequestItem::CVIMPSTProcessFriendRequestItem()
100 %   1/ 1 36 CVIMPSTProcessFriendRequestItem::NewL()
100 %   1/ 1 50 CVIMPSTProcessFriendRequestItem::ConstructL()
100 %   1/ 1 62 CVIMPSTProcessFriendRequestItem::~CVIMPSTProcessFriendRequestItem()
0 % - 0/ 1 72 CVIMPSTProcessFriendRequestItem::GetItemNameText()
0 % - 0/ 1 84 CVIMPSTProcessFriendRequestItem::Type()
100 %   1/ 1 18 93 CVIMPSTProcessFriendRequestItem::GetItemUserId()
0 % - 0/ 1 102 CVIMPSTProcessFriendRequestItem::SetMsgPending()
0 % - 0/ 1 110 CVIMPSTProcessFriendRequestItem::IsMsgPending()
0 % - 0/ 1 118 CVIMPSTProcessFriendRequestItem::SetConversationOpen()
0 % - 0/ 1 126 CVIMPSTProcessFriendRequestItem::IsConversationOpen()

45 % - 5/ 11   cvimpstprocessfriendrequestitem.cpp

+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimstcmdfriendrequest.cpp
+Instrumentation mode: function
+TER: 100 % (  8/  8)
+To files: Previous | +Next

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TER % - covered/ all  Calls Line Function

100 %   1/ 1 37 CVIMPSTCmdFriendRequest::CVIMPSTCmdFriendRequest()
100 %   1/ 1 50 CVIMPSTCmdFriendRequest::~CVIMPSTCmdFriendRequest()
100 %   1/ 1 59 CVIMPSTCmdFriendRequest::NewL()
100 %   1/ 1 71 CVIMPSTCmdFriendRequest::ConstructL()
100 %   1/ 1 80 CVIMPSTCmdFriendRequest::ExecuteLD()
100 %   1/ 1 113 CVIMPSTCmdFriendRequest::AddObserver()
100 %   1/ 1 124 CVIMPSTCmdFriendRequest::CommandId()
100 %   1/ 1 133 CVIMPSTCmdFriendRequest::Result()

100 %   8/ 8   cvimstcmdfriendrequest.cpp
 

82 % - 211/ 257   DIRECTORY OVERALL (\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src)

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To directories: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexC.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexC.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,598 @@ + + +CTC++ Coverage Report + + + + + + + + +Index
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_cmdfactory_utestcases.cpp
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_processarray_utest.cpp
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\vimpstcmdprocess_utest.cpp
   Cvimpstcmdprocess_utest::Cvimpstcmdprocess_utest()
   Cvimpstcmdprocess_utest::ConstructL()
   Cvimpstcmdprocess_utest::NewL()
   Cvimpstcmdprocess_utest::~Cvimpstcmdprocess_utest()
   Cvimpstcmdprocess_utest::InitL()
   Cvimpstcmdprocess_utest::GetTestCasesL()
   Cvimpstcmdprocess_utest::RunTestCaseL()
   Cvimpstcmdprocess_utest::OOMTestQueryL()
   Cvimpstcmdprocess_utest::OOMTestInitializeL()
   Cvimpstcmdprocess_utest::OOMHandleWarningL()
   Cvimpstcmdprocess_utest::OOMTestFinalizeL()
   Cvimpstcmdprocess_utest::SendTestModuleVersion()
   LibEntryL()
   SetRequirements()
   Cvimpstcmdprocess_utest::MainTestL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_ccafactory.cpp
   TCCAFactory::NewParameterL()
   TCCAFactory::NewConnectionL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_cvpbkcontactlinkarray.cpp
   CVPbkContactLinkArray::NewL()
   CVPbkContactLinkArray::NewLC()
   CVPbkContactLinkArray::NewLC()
   CVPbkContactLinkArray::NewLC()
   CVPbkContactLinkArray::NewLC()
   CVPbkContactLinkArray::~CVPbkContactLinkArray()
   CVPbkContactLinkArray::AppendL()
   CVPbkContactLinkArray::InsertL()
   CVPbkContactLinkArray::Remove()
   CVPbkContactLinkArray::Delete()
   CVPbkContactLinkArray::ResetAndDestroy()
   CVPbkContactLinkArray::Reset()
   CVPbkContactLinkArray::PackedBufferSize()
   CVPbkContactLinkArray::Count()
   CVPbkContactLinkArray::At()
   CVPbkContactLinkArray::Find()
   CVPbkContactLinkArray::PackLC()
   CVPbkContactLinkArray::Streamable()
   CVPbkContactLinkArray::CVPbkContactLinkArray()
   CVPbkContactLinkArray::ConstructL()
   CVPbkContactLinkArray::ConstructL()
   CVPbkContactLinkArray::ConstructL()
   CVPbkContactLinkArray::DoCalculatePackedBufferSizeV2()
   CVPbkContactLinkArray::DoFillPackedBufferV2L()
   CVPbkContactLinkArray::InternalizeFromBufferL()
   CVPbkContactLinkArray::DoInternalizeFromBufferL()
   CVPbkContactLinkArray::DoInternalizeFromBufferV2L()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_engineextentionfeatures.cpp
   extentionfeatures_stub::NewL()
   extentionfeatures_stub::IsSupported()
   extentionfeatures_stub::SetSupported()
   extentionfeatures_stub::Type()
   extentionfeatures_stub::AddServerContactL()
   extentionfeatures_stub::DeleteServerContactL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_enginesearchextention.cpp
   searchextention_stub::NewL()
   searchextention_stub::IsSupported()
   searchextention_stub::SetSupported()
   searchextention_stub::Type()
   searchextention_stub::RegisterObserver()
   searchextention_stub::UnRegisterObserver()
   searchextention_stub::SearchContactsL()
   searchextention_stub::SubscribeForSearchKeysL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_imsubservice.cpp
   CVIMPSTEngineImSubService_Stub::CVIMPSTEngineImSubService_Stub()
   CVIMPSTEngineImSubService_Stub::ConstructL()
   CVIMPSTEngineImSubService_Stub::NewL()
   CVIMPSTEngineImSubService_Stub::NewLC()
   CVIMPSTEngineImSubService_Stub::~CVIMPSTEngineImSubService_Stub()
   CVIMPSTEngineImSubService_Stub::SubServiceState()
   CVIMPSTEngineImSubService_Stub::Type()
   CVIMPSTEngineImSubService_Stub::RegisterChatObserver()
   CVIMPSTEngineImSubService_Stub::UnRegisterChatObserver()
   CVIMPSTEngineImSubService_Stub::GetUnreadCountL()
   CVIMPSTEngineImSubService_Stub::IsConversationExistL()
   CVIMPSTEngineImSubService_Stub::CloseConversationL()
   CVIMPSTEngineImSubService_Stub::GetOpenChatListL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaconnection.cpp
   MCCAConnectionStub::NewL()
   MCCAConnectionStub::Close()
   MCCAConnectionStub::LaunchApplicationL()
   MCCAConnectionStub::LaunchAppL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaparameter.cpp
   MCCAParameterstub::NewL()
   MCCAParameterstub::ConnectionFlag()
   MCCAParameterstub::ContactDataFlag()
   MCCAParameterstub::ContactDataL()
   MCCAParameterstub::LaunchedViewUid()
   MCCAParameterstub::Version()
   MCCAParameterstub::SetConnectionFlag()
   MCCAParameterstub::SetContactDataFlag()
   MCCAParameterstub::SetContactDataL()
   MCCAParameterstub::SetLaunchedViewUid()
   MCCAParameterstub::Close()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mvpbkcontactlinkstub.cpp
   CVPbkContactLinkStub::NewL()
   CVPbkContactLinkStub::ContactStore()
   CVPbkContactLinkStub::IsSame()
   CVPbkContactLinkStub::RefersTo()
   CVPbkContactLinkStub::Streamable()
   CVPbkContactLinkStub::Packing()
   CVPbkContactLinkStub::CloneLC()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_processarrayobserver.cpp
   vimpstprocessarrayobserver_stub::NewL()
   vimpstprocessarrayobserver_stub::HandleAdditionL()
   vimpstprocessarrayobserver_stub::HandleDeletionL()
   vimpstprocessarrayobserver_stub::HandleAvatarChangeL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_storageitemmodel.cpp
   vimpststorageitemlist_stub::NewL()
   vimpststorageitemlist_stub::Count()
   vimpststorageitemlist_stub::Item()
   vimpststorageitemlist_stub::IndexOfContact()
   vimpststorageitemlist_stub::IndexOfList()
   vimpststorageitemlist_stub::MdcaCount()
   vimpststorageitemlist_stub::MdcaPoint()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstcmdobserver.cpp
   vimpstcmdobserver_stub::CommandFinishedL()
   vimpstcmdobserver_stub::HandleCommandEventL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstengin.cpp
   vimpstengine_stub::GetBrandInfoL()
   vimpstengine_stub::ServiceState()
   vimpstengine_stub::ServiceId()
   vimpstengine_stub::IsSubServiceSupportedL()
   vimpstengine_stub::IsSubServiceEnabled()
   vimpstengine_stub::ContactStoreIdL()
   vimpstengine_stub::ServiceName()
   vimpstengine_stub::RegisterServiceSessionObserverL()
   vimpstengine_stub::UnRegisterServiceSessionObserver()
   vimpstengine_stub::IntializeStorageL()
   vimpstengine_stub::UnIntializeStorage()
   vimpstengine_stub::SubService()
   vimpstengine_stub::ExtentionFeatures()
   vimpstengine_stub::Login()
   vimpstengine_stub::LogoutL()
   vimpstengine_stub::DefaultDomainNameL()
   vimpstengine_stub::IsBlockSupportedL()
   vimpstengine_stub::ChangeConnectionL()
   vimpstengine_stub::IsPasswordAvailableL()
   vimpstengine_stub::DeleteDataBaseL()
   vimpstengine_stub::GetPreseceSubService()
   vimpstengine_stub::FetchBlockedListL()
   vimpstengine_stub::RegisterBlockedListObserver()
   vimpstengine_stub::GetOwnUserIdFromCChOrStorageL()
   vimpstengine_stub::RetriveContextIfCChEnabledL()
   vimpstengine_stub::SetOwnUserIdIfChangedL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstenginepresencesubservice.cpp
   CVIMPSTEnginePresenceSubService_Stub::CVIMPSTEnginePresenceSubService_Stub()
   CVIMPSTEnginePresenceSubService_Stub::ConstructL()
   CVIMPSTEnginePresenceSubService_Stub::NewL()
   CVIMPSTEnginePresenceSubService_Stub::NewLC()
   CVIMPSTEnginePresenceSubService_Stub::~CVIMPSTEnginePresenceSubService_Stub()
   CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSingleContactL()
   CVIMPSTEnginePresenceSubService_Stub::SubServiceState()
   CVIMPSTEnginePresenceSubService_Stub::Type()
   CVIMPSTEnginePresenceSubService_Stub::Enabled()
   CVIMPSTEnginePresenceSubService_Stub::SubscribePresenceOfSingleContactL()
   CVIMPSTEnginePresenceSubService_Stub::UnSubscribePresenceOfSingleContactL()
   CVIMPSTEnginePresenceSubService_Stub::PublishOwnPresenceL()
   CVIMPSTEnginePresenceSubService_Stub::FetchPresenceFromCache()
   CVIMPSTEnginePresenceSubService_Stub::SubscribeToPresenceCacheL()
   CVIMPSTEnginePresenceSubService_Stub::UnSubscribeToPresenceCacheL()
   CVIMPSTEnginePresenceSubService_Stub::UnSubscribeForAuthorizationL()
   CVIMPSTEnginePresenceSubService_Stub::SubscribeForAuthorizationL()
   CVIMPSTEnginePresenceSubService_Stub::SendPresenceGrantPresentityL()
   CVIMPSTEnginePresenceSubService_Stub::IsChangeOwnStatusSupported()
   CVIMPSTEnginePresenceSubService_Stub::IsStatusMsgSupported()
   CVIMPSTEnginePresenceSubService_Stub::IsAvatarSupported()
   CVIMPSTEnginePresenceSubService_Stub::SetAvatarSupported()
   CVIMPSTEnginePresenceSubService_Stub::RegisterPresenceEventObserverL()
   CVIMPSTEnginePresenceSubService_Stub::UnRegisterPresenceEventObserver()
   CVIMPSTEnginePresenceSubService_Stub::AddToBlockListL()
   CVIMPSTEnginePresenceSubService_Stub::GetBlockedList()
   CVIMPSTEnginePresenceSubService_Stub::FetchBlockedListFromServerL()
   CVIMPSTEnginePresenceSubService_Stub::RemoveFromBlockListL()
   CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSinleContactL()
   CVIMPSTEnginePresenceSubService_Stub::UpdatePresenceStateL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstprocessarrayitem.cpp
   vimpstprocessarrayitem_stub::NewL()
   vimpstprocessarrayitem_stub::vimpstprocessarrayitem_stub()
   vimpstprocessarrayitem_stub::IsMsgPending()
   vimpstprocessarrayitem_stub::SetMsgPending()
   vimpstprocessarrayitem_stub::Type()
   vimpstprocessarrayitem_stub::GetItemIndex()
   vimpstprocessarrayitem_stub::ContactLink()
   vimpstprocessarrayitem_stub::SetItemIndex()
   vimpstprocessarrayitem_stub::GetItemUserId()
   vimpstprocessarrayitem_stub::AvatarIndex()
   vimpstprocessarrayitem_stub::SetAvatarIndex()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontact.cpp
   vimpststoragecontact_stub::NewL()
   vimpststoragecontact_stub::~vimpststoragecontact_stub()
   vimpststoragecontact_stub::UserId()
   vimpststoragecontact_stub::Name()
   vimpststoragecontact_stub::OnlineStatus()
   vimpststoragecontact_stub::SetOnlineStatus()
   vimpststoragecontact_stub::StatusText()
   vimpststoragecontact_stub::SetStatusTextL()
   vimpststoragecontact_stub::SetAvatarContentL()
   vimpststoragecontact_stub::SetUserIdL()
   vimpststoragecontact_stub::SetNameL()
   vimpststoragecontact_stub::ContactLink()
   vimpststoragecontact_stub::AvatarContent()
   vimpststoragecontact_stub::SetAvatarIndex()
   vimpststoragecontact_stub::AvatarIndex()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontactlist.cpp
   vimpststoragecontactlist_stub::ListId()
   vimpststoragecontactlist_stub::DisplayName()
   vimpststoragecontactlist_stub::AddStorageContactToCacheL()
   vimpststoragecontactlist_stub::RemoveContactFromCacheL()
   vimpststoragecontactlist_stub::RemoveContactFromCacheL()
   vimpststoragecontactlist_stub::ContactCount()
   vimpststoragecontactlist_stub::FindContactIndex()
   vimpststoragecontactlist_stub::FindContactEntry()
   vimpststoragecontactlist_stub::Sort()
   vimpststoragecontactlist_stub::ResortContact()
   vimpststoragecontactlist_stub::FindIndexOfContact()
   vimpststoragecontactlist_stub::Count()
   vimpststoragecontactlist_stub::OnlineCount()
   vimpststoragecontactlist_stub::operator_[]()
   vimpststoragecontactlist_stub::OnlineContact()
   vimpststoragecontactlist_stub::FilteredContact()
   vimpststoragecontactlist_stub::FilteredCount()
   vimpststoragecontactlist_stub::FilterAllowsContact()
   vimpststoragecontactlist_stub::FindContact()
   vimpststoragecontactlist_stub::FindContactByContactLink()
   vimpststoragecontactlist_stub::FindContactByLinkL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragemanagerfactory.cpp
   CVIMPSTStorageManagerFactory::InitialiseLibraryL()
   CVIMPSTStorageManagerFactory::Release()
   CVIMPSTStorageManagerFactory::InitialiseViewL()
   CVIMPSTStorageManagerFactory::ContactListInterfaceL()
   CVIMPSTStorageManagerFactory::ItemModelInterfaceL()
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststorageserviceview.cpp
   vimpstserviceview_stub::NewL()
   vimpstserviceview_stub::AddObserverL()
   vimpstserviceview_stub::RemoveObserver()
   vimpstserviceview_stub::FindContactByUserId()
   vimpstserviceview_stub::ListCount()
   vimpstserviceview_stub::ListAt()
   vimpstserviceview_stub::FindContactList()
   vimpstserviceview_stub::CreateContactListL()
   vimpstserviceview_stub::RemoveContactList()
   vimpstserviceview_stub::ContactCount()
   vimpstserviceview_stub::UpdatePresenceL()
   vimpstserviceview_stub::UpdateAvatarL()
   vimpstserviceview_stub::CreateNewContactL()
   vimpstserviceview_stub::CreateNewContactFromRetrivedIdL()
   vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL()
   vimpstserviceview_stub::RemoveContactL()
   vimpstserviceview_stub::CreateNewFetchContactsL()
   vimpstserviceview_stub::IsLocalStore()
   vimpstserviceview_stub::RetriveLinkXSPIdsL()
   vimpstserviceview_stub::GetRetrieveXSPIdL()
   vimpstserviceview_stub::FindContactByLink()
   vimpstserviceview_stub::Sort()
   vimpstserviceview_stub::OwnContactL()
   vimpstserviceview_stub::DeleteDatabaseL()
   vimpstserviceview_stub::SetOwnUserIdL()
   vimpstserviceview_stub::SetUnnamedTextL()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddcontact.cpp
   CVIMPSTCmdAddContact::CVIMPSTCmdAddContact()
   CVIMPSTCmdAddContact::~CVIMPSTCmdAddContact()
   CVIMPSTCmdAddContact::NewL()
   CVIMPSTCmdAddContact::ConstructL()
   CVIMPSTCmdAddContact::ExecuteLD()
   CVIMPSTCmdAddContact::IsContactBlocked()
   CVIMPSTCmdAddContact::AddObserver()
   CVIMPSTCmdAddContact::CommandId()
   CVIMPSTCmdAddContact::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddtopbk.cpp
   CVIMPSTCmdAddToPbk::CVIMPSTCmdAddToPbk()
   CVIMPSTCmdAddToPbk::~CVIMPSTCmdAddToPbk()
   CVIMPSTCmdAddToPbk::NewL()
   CVIMPSTCmdAddToPbk::ConstructL()
   CVIMPSTCmdAddToPbk::ExecuteLD()
   CVIMPSTCmdAddToPbk::AddObserver()
   CVIMPSTCmdAddToPbk::CommandId()
   CVIMPSTCmdAddToPbk::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdblockcontact.cpp
   CVIMPSTCmdBlockContact::CVIMPSTCmdBlockContact()
   CVIMPSTCmdBlockContact::~CVIMPSTCmdBlockContact()
   CVIMPSTCmdBlockContact::NewL()
   CVIMPSTCmdBlockContact::ConstructL()
   CVIMPSTCmdBlockContact::ExecuteLD()
   CVIMPSTCmdBlockContact::AddObserver()
   CVIMPSTCmdBlockContact::CommandId()
   CVIMPSTCmdBlockContact::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcancellogin.cpp
   CVIMPSTCmdCancelLogin::CVIMPSTCmdCancelLogin()
   CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin()
   CVIMPSTCmdCancelLogin::NewL()
   CVIMPSTCmdCancelLogin::ExecuteLD()
   CVIMPSTCmdCancelLogin::AddObserver()
   CVIMPSTCmdCancelLogin::CommandId()
   CVIMPSTCmdCancelLogin::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcca.cpp
   CVIMPSTCmdCCA::CVIMPSTCmdCCA()
   CVIMPSTCmdCCA::~CVIMPSTCmdCCA()
   CVIMPSTCmdCCA::NewL()
   CVIMPSTCmdCCA::ConstructL()
   CVIMPSTCmdCCA::ExecuteLD()
   CVIMPSTCmdCCA::AddObserver()
   CVIMPSTCmdCCA::CommandId()
   CVIMPSTCmdCCA::Result()
   CVIMPSTCmdCCA::LaunchCcaL()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownavtar.cpp
   CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar()
   CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar()
   CVIMPSTCmdChangeOwnAvtar::NewL()
   CVIMPSTCmdChangeOwnAvtar::ConstructL()
   CVIMPSTCmdChangeOwnAvtar::ExecuteLD()
   CVIMPSTCmdChangeOwnAvtar::AddObserver()
   CVIMPSTCmdChangeOwnAvtar::CommandId()
   CVIMPSTCmdChangeOwnAvtar::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownmessage.cpp
   CVIMPSTCmdChangeOwnMessage::CVIMPSTCmdChangeOwnMessage()
   CVIMPSTCmdChangeOwnMessage::~CVIMPSTCmdChangeOwnMessage()
   CVIMPSTCmdChangeOwnMessage::NewL()
   CVIMPSTCmdChangeOwnMessage::ConstructL()
   CVIMPSTCmdChangeOwnMessage::ExecuteLD()
   CVIMPSTCmdChangeOwnMessage::AddObserver()
   CVIMPSTCmdChangeOwnMessage::CommandId()
   CVIMPSTCmdChangeOwnMessage::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownstatus.cpp
   CVIMPSTCmdChangeOwnStatus::CVIMPSTCmdChangeOwnStatus()
   CVIMPSTCmdChangeOwnStatus::~CVIMPSTCmdChangeOwnStatus()
   CVIMPSTCmdChangeOwnStatus::NewL()
   CVIMPSTCmdChangeOwnStatus::ConstructL()
   CVIMPSTCmdChangeOwnStatus::ExecuteLD()
   CVIMPSTCmdChangeOwnStatus::AddObserver()
   CVIMPSTCmdChangeOwnStatus::CommandId()
   CVIMPSTCmdChangeOwnStatus::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcloseconversation.cpp
   CVIMPSTCmdCloseConversation::CVIMPSTCmdCloseConversation()
   CVIMPSTCmdCloseConversation::~CVIMPSTCmdCloseConversation()
   CVIMPSTCmdCloseConversation::NewL()
   CVIMPSTCmdCloseConversation::ConstructL()
   CVIMPSTCmdCloseConversation::ExecuteLD()
   CVIMPSTCmdCloseConversation::AddObserver()
   CVIMPSTCmdCloseConversation::CommandId()
   CVIMPSTCmdCloseConversation::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmddeletecontact.cpp
   CVIMPSTCmdDeleteContact::CVIMPSTCmdDeleteContact()
   CVIMPSTCmdDeleteContact::~CVIMPSTCmdDeleteContact()
   CVIMPSTCmdDeleteContact::NewL()
   CVIMPSTCmdDeleteContact::ConstructL()
   CVIMPSTCmdDeleteContact::ExecuteLD()
   CVIMPSTCmdDeleteContact::AddObserver()
   CVIMPSTCmdDeleteContact::CommandId()
   CVIMPSTCmdDeleteContact::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfactory.cpp
   CVIMPSTCmdFactory::CVIMPSTCmdFactory()
   CVIMPSTCmdFactory::ConstructL()
   CVIMPSTCmdFactory::NewL()
   CVIMPSTCmdFactory::~CVIMPSTCmdFactory()
   CVIMPSTCmdFactory::CreateCommandForIdL()
   CVIMPSTCmdFactory::HandleServiceEventL()
   CVIMPSTCmdFactory::AddObserverL()
   CVIMPSTCmdFactory::RemoveObserver()
   CVIMPSTCmdFactory::GetProcessInterface()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfetchblockedlist.cpp
   CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList()
   CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList()
   CVIMPSTCmdFetchBlockedContactList::NewL()
   CVIMPSTCmdFetchBlockedContactList::ConstructL()
   CVIMPSTCmdFetchBlockedContactList::ExecuteLD()
   CVIMPSTCmdFetchBlockedContactList::AddObserver()
   CVIMPSTCmdFetchBlockedContactList::CommandId()
   CVIMPSTCmdFetchBlockedContactList::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdhandler.cpp
   CVIMPSTCmdHandler::CVIMPSTCmdHandler()
   CVIMPSTCmdHandler::~CVIMPSTCmdHandler()
   CVIMPSTCmdHandler::NewL()
   CVIMPSTCmdHandler::ConstructL()
   CVIMPSTCmdHandler::HandleCommandL()
   CVIMPSTCmdHandler::RegisterEventObserverL()
   CVIMPSTCmdHandler::UnRegisterEventObserver()
   CVIMPSTCmdHandler::GetProcessInterface()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogin.cpp
   CVIMPSTCmdLogin::CVIMPSTCmdLogin()
   CVIMPSTCmdLogin::~CVIMPSTCmdLogin()
   CVIMPSTCmdLogin::NewL()
   CVIMPSTCmdLogin::ConstructL()
   CVIMPSTCmdLogin::ExecuteLD()
   CVIMPSTCmdLogin::AddObserver()
   CVIMPSTCmdLogin::CommandId()
   CVIMPSTCmdLogin::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogout.cpp
   CVIMPSTCmdLogout::CVIMPSTCmdLogout()
   CVIMPSTCmdLogout::~CVIMPSTCmdLogout()
   CVIMPSTCmdLogout::NewL()
   CVIMPSTCmdLogout::ConstructL()
   CVIMPSTCmdLogout::ExecuteLD()
   CVIMPSTCmdLogout::AddObserver()
   CVIMPSTCmdLogout::CommandId()
   CVIMPSTCmdLogout::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdprocessselectedcontact.cpp
   CVIMPSTCmdProcessSelectedContact::CVIMPSTCmdProcessSelectedContact()
   CVIMPSTCmdProcessSelectedContact::~CVIMPSTCmdProcessSelectedContact()
   CVIMPSTCmdProcessSelectedContact::NewL()
   CVIMPSTCmdProcessSelectedContact::ConstructL()
   CVIMPSTCmdProcessSelectedContact::ExecuteLD()
   CVIMPSTCmdProcessSelectedContact::AddObserver()
   CVIMPSTCmdProcessSelectedContact::CommandId()
   CVIMPSTCmdProcessSelectedContact::Result()
   CVIMPSTCmdProcessSelectedContact::IsContactBlocked()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdsearch.cpp
   CVIMPSTCmdSearch::CVIMPSTCmdSearch()
   CVIMPSTCmdSearch::~CVIMPSTCmdSearch()
   CVIMPSTCmdSearch::NewL()
   CVIMPSTCmdSearch::ConstructL()
   CVIMPSTCmdSearch::ExecuteLD()
   CVIMPSTCmdSearch::AddObserver()
   CVIMPSTCmdSearch::CommandId()
   CVIMPSTCmdSearch::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdunblockcontact.cpp
   CVIMPSTCmdUnBlockContact::CVIMPSTCmdUnBlockContact()
   CVIMPSTCmdUnBlockContact::~CVIMPSTCmdUnBlockContact()
   CVIMPSTCmdUnBlockContact::NewL()
   CVIMPSTCmdUnBlockContact::ConstructL()
   CVIMPSTCmdUnBlockContact::ExecuteLD()
   CVIMPSTCmdUnBlockContact::AddObserver()
   CVIMPSTCmdUnBlockContact::CommandId()
   CVIMPSTCmdUnBlockContact::Result()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarray.cpp
   CVIMPSTProcessArray::CVIMPSTProcessArray()
   CVIMPSTProcessArray::~CVIMPSTProcessArray()
   CVIMPSTProcessArray::NewL()
   CVIMPSTProcessArray::ConstructL()
   CVIMPSTProcessArray::HandleStorageChangeL()
   CVIMPSTProcessArray::AddObserver()
   CVIMPSTProcessArray::RemoveObserver()
   CVIMPSTProcessArray::GetItemNameText()
   CVIMPSTProcessArray::GetItemUserId()
   CVIMPSTProcessArray::ContactLink()
   CVIMPSTProcessArray::Count()
   CVIMPSTProcessArray::IsSubServiceSupportedL()
   CVIMPSTProcessArray::GetType()
   CVIMPSTProcessArray::FillItemL()
   CVIMPSTProcessArray::FillOwnDataL()
   CVIMPSTProcessArray::FillArrayL()
   CVIMPSTProcessArray::ResetArray()
   CVIMPSTProcessArray::SetLoginStateL()
   CVIMPSTProcessArray::GetLoginState()
   CVIMPSTProcessArray::GetOnlineStatusL()
   CVIMPSTProcessArray::StatusTextL()
   CVIMPSTProcessArray::RemoveFromUnknonOrInvitationListL()
   CVIMPSTProcessArray::RemoveFromUnknonListL()
   CVIMPSTProcessArray::RemoveFromInvitationListL()
   CVIMPSTProcessArray::MapContactListPositions()
   CVIMPSTProcessArray::GetAndCreateOpenChatListL()
   CVIMPSTProcessArray::FindArrayItem()
   CVIMPSTProcessArray::HandleChatMessageEventL()
   CVIMPSTProcessArray::HandleAddRequestEventL()
   CVIMPSTProcessArray::DoHandleUnKnownContactMessageL()
   CVIMPSTProcessArray::IsMsgPending()
   CVIMPSTProcessArray::IsConversationExist()
   CVIMPSTProcessArray::ResetPendingMsg()
   CVIMPSTProcessArray::ResetOpenConversationPendingMsg()
   CVIMPSTProcessArray::FindAnyContact()
   CVIMPSTProcessArray::FindAnyContactServiceField()
   CVIMPSTProcessArray::FindAndMarkContactAsOpenChat()
   CVIMPSTProcessArray::IsUnreadMessageExistsL()
   CVIMPSTProcessArray::IsConversationExistL()
   CVIMPSTProcessArray::FindContactIndexL()
   CVIMPSTProcessArray::FillUnknownContactsL()
   CVIMPSTProcessArray::FillAddRequestDataL()
   CVIMPSTProcessArray::RemoveUnKnownContacts()
   CVIMPSTProcessArray::RemoveAddRequestData()
   CVIMPSTProcessArray::LoginUserIdFromStoreL()
   CVIMPSTProcessArray::AvatarIndex()
   CVIMPSTProcessArray::SetAvatarIndex()
   CVIMPSTProcessArray::AvatarContent()
   CVIMPSTProcessArray::OwnAvatarContentL()
   CVIMPSTProcessArray::OwnAvatarIndexL()
   CVIMPSTProcessArray::SetOwnAvatarIndexL()
   CVIMPSTProcessArray::FindAnyAddRequest()
   CVIMPSTProcessArray::GetSelectedItemIndex()
   CVIMPSTProcessArray::IsContactBlocked()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarrayitem.cpp
   CVIMPSTProcessContactItem::NewL()
   CVIMPSTProcessContactItem::ConstructL()
   CVIMPSTProcessContactItem::CVIMPSTProcessContactItem()
   CVIMPSTProcessContactItem::~CVIMPSTProcessContactItem()
   CVIMPSTProcessContactItem::Type()
   CVIMPSTProcessContactItem::GetItemNameText()
   CVIMPSTProcessContactItem::GetItemUserId()
   CVIMPSTProcessContactItem::SetMsgPending()
   CVIMPSTProcessContactItem::IsMsgPending()
   CVIMPSTProcessContactItem::SetConversationOpen()
   CVIMPSTProcessContactItem::IsConversationOpen()
   CVIMPSTProcessContactListItem::NewL()
   CVIMPSTProcessContactListItem::ConstructL()
   CVIMPSTProcessContactListItem::CVIMPSTProcessContactListItem()
   CVIMPSTProcessContactListItem::~CVIMPSTProcessContactListItem()
   CVIMPSTProcessContactListItem::Type()
   CVIMPSTProcessContactListItem::IsCollapsed()
   CVIMPSTProcessContactListItem::SetCollapsed()
   CVIMPSTProcessContactListItem::GetItemNameText()
   CVIMPSTProcessContactListItem::SetItemNameText()
   CVIMPSTProcessOwnDataItem::NewL()
   CVIMPSTProcessOwnDataItem::ConstructL()
   CVIMPSTProcessOwnDataItem::CVIMPSTProcessOwnDataItem()
   CVIMPSTProcessOwnDataItem::~CVIMPSTProcessOwnDataItem()
   CVIMPSTProcessOwnDataItem::Type()
   CVIMPSTProcessOwnDataItem::GetItemUserId()
   CVIMPSTProcessUnknownContactItem::CVIMPSTProcessUnknownContactItem()
   CVIMPSTProcessUnknownContactItem::NewL()
   CVIMPSTProcessUnknownContactItem::ConstructL()
   CVIMPSTProcessUnknownContactItem::~CVIMPSTProcessUnknownContactItem()
   CVIMPSTProcessUnknownContactItem::GetItemNameText()
   CVIMPSTProcessUnknownContactItem::Type()
   CVIMPSTProcessUnknownContactItem::GetItemUserId()
   CVIMPSTProcessUnknownContactItem::SetMsgPending()
   CVIMPSTProcessUnknownContactItem::IsMsgPending()
   CVIMPSTProcessUnknownContactItem::SetConversationOpen()
   CVIMPSTProcessUnknownContactItem::IsConversationOpen()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessfriendrequestitem.cpp
   CVIMPSTProcessFriendRequestItem::CVIMPSTProcessFriendRequestItem()
   CVIMPSTProcessFriendRequestItem::NewL()
   CVIMPSTProcessFriendRequestItem::ConstructL()
   CVIMPSTProcessFriendRequestItem::~CVIMPSTProcessFriendRequestItem()
   CVIMPSTProcessFriendRequestItem::GetItemNameText()
   CVIMPSTProcessFriendRequestItem::Type()
   CVIMPSTProcessFriendRequestItem::GetItemUserId()
   CVIMPSTProcessFriendRequestItem::SetMsgPending()
   CVIMPSTProcessFriendRequestItem::IsMsgPending()
   CVIMPSTProcessFriendRequestItem::SetConversationOpen()
   CVIMPSTProcessFriendRequestItem::IsConversationOpen()
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimstcmdfriendrequest.cpp
   CVIMPSTCmdFriendRequest::CVIMPSTCmdFriendRequest()
   CVIMPSTCmdFriendRequest::~CVIMPSTCmdFriendRequest()
   CVIMPSTCmdFriendRequest::NewL()
   CVIMPSTCmdFriendRequest::ConstructL()
   CVIMPSTCmdFriendRequest::ExecuteLD()
   CVIMPSTCmdFriendRequest::AddObserver()
   CVIMPSTCmdFriendRequest::CommandId()
   CVIMPSTCmdFriendRequest::Result()
diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD1.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,755 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #1/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_cmdfactory_utestcases.cpp
+Instrumentation mode: function
+TER: 100 % ( 0/ 0)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : t_vimpstcmdprocess_cmdfactory_utestCases.cpp
  4 *  Part of     : vimpstcmdprocess_utest
  5 *
  6 *  Description : vimpstcmdprocess_utest test module.
  7 *  Version:   %version: 3 %
  8 *
  9 *  Copyright (C) 2002 - 2007 Nokia Corporation.
  10 *  This material, including documentation and any related 
  11 *  computer programs, is protected by copyright controlled by 
  12 *  Nokia Corporation. All rights are reserved. Copying, 
  13 *  including reproducing, storing,  adapting or translating, any 
  14 *  or all of this material requires the prior written consent of 
  15 *  Nokia Corporation. This material also contains confidential 
  16 *  information which may not be disclosed to others without the 
  17 *  prior written consent of Nokia Corporation.
  18 *
  19 * ============================================================================
  20 */
  21 
  22 /**
  23  * GLOBAL VARIABLES SECTION
  24  */
  25 #ifdef TEST_VAR_DECLARATIONS
  26    //Global variable declration    
  27 #endif
  28 /**
  29  * END OF GLOBAL VARIABLES SECTION
  30  */
  31 
  32 
  33 /**
  34  * TEST CASES SECTION
  35  */
  36 #ifdef TEST_CASES
  37 /**
  38  * STIF_SETUP defines activities needed before every test case.
  39  */
  40 STIF_SETUP
  41 {
  42 //No set up required
  43 }
  44 
  45 /**
  46  * STIF_TEARDOWN defines activities needed after every test case
  47  */
  48 STIF_TEARDOWN
  49 {
  50 
  51 }
  52 
  53 /**
  54  * STIF_TESTDEFINE defines a test case
  55  *
  56  *  Example test case - length of string is checked.
  57  *  The only argument of macro is a name of test case.
  58  */
  59 STIF_TESTDEFINE(t_CreateCommand_login)
  60 {
  61 vimpstengine_stub engin;
  62 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  63 TInt data  = 1;
  64 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELoginService,&data) ;
  65 //delete factory;
  66 //factory = NULL;
  67 TInt comm_sent = ELoginService;
  68 TInt comm_recev = commd->CommandId();
  69 commd->ExecuteLD();
  70 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  71 }
  72 
  73 
  74 STIF_TESTDEFINE(t_CreateCommand_logout)
  75 {
  76 vimpstengine_stub engin;
  77 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  78 TInt data  = 1;
  79 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELogoutService,&data) ;
  80 TInt comm_sent = ELogoutService;
  81 TInt comm_recev = commd->CommandId();
  82 commd->ExecuteLD();
  83 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  84 }
  85 
  86 STIF_TESTDEFINE(t_CreateCommand_LaunchCCA)
  87 {
  88 vimpstengine_stub engin;
  89 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  90 TLaunchCCAData data;
  91 data.iIndex = 1;
  92 data.iConnection = MCCAConnectionStub::NewL();
  93 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELaunchCCA,&data) ;
  94 TInt comm_sent = ELaunchCCA;
  95 TInt comm_recev = commd->CommandId();
  96 //commd->ExecuteLD();
  97 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  98 }
  99 
  100 STIF_TESTDEFINE(t_CreateCommand_AddContact)
  101 {
  102 vimpstengine_stub engin;
  103 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  104 TInt data  = 1;
  105 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EAddContact,&data) ;
  106 TInt comm_sent = EAddContact;
  107 TInt comm_recev = commd->CommandId();
  108 commd->ExecuteLD();
  109 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  110 }
  111 
  112 STIF_TESTDEFINE(t_CreateCommand_DeleteContact)
  113 {
  114 vimpstengine_stub engin;
  115 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  116 TInt data  = 1;
  117 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EDeleteContact,&data) ;
  118 delete factory;
  119 factory = NULL;
  120 TInt comm_sent = EDeleteContact;
  121 TInt comm_recev = commd->CommandId();
  122 commd->ExecuteLD();
  123 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  124 }
  125 
  126 
  127 STIF_TESTDEFINE(t_CreateCommand_ChangeOwnStatus)
  128 {
  129 vimpstengine_stub engin;
  130 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  131 TStatusAndStatusText status;
  132 _LIT(KStatusMsg,"away");
  133 status.iStatusText.Copy(KStatusMsg);
  134 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnStatus,&status) ;
  135 delete factory;
  136 factory = NULL;
  137 TInt comm_sent = EChangeOwnStatus;
  138 TInt comm_recev = commd->CommandId();
  139 commd->ExecuteLD();
  140 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  141 }
  142 
  143 STIF_TESTDEFINE(t_CreateCommand_ChangeOwnMessage)
  144 {
  145 vimpstengine_stub engin;
  146 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  147 
  148 TStatusAndStatusText status;
  149 _LIT(KStatusMsg,"away");
  150 status.iStatusText.Copy(KStatusMsg);
  151 
  152 TInt data  = 1;
  153 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnMessage,&status) ;
  154 delete factory;
  155 factory = NULL;
  156 TInt comm_sent = EChangeOwnMessage;
  157 TInt comm_recev = commd->CommandId();
  158 commd->ExecuteLD();
  159 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  160 }
  161 
  162 STIF_TESTDEFINE(t_CreateCommand_Search)
  163 {
  164 vimpstengine_stub engin;
  165 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  166 RArray<TVIMPSTSearchKeyData> aKeyDataArray;
  167 
  168 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ESearch,&aKeyDataArray) ;
  169 delete factory;
  170 factory = NULL;
  171 TInt comm_sent = ESearch;
  172 TInt comm_recev = commd->CommandId();
  173 commd->ExecuteLD();
  174 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  175 }
  176 
  177 
  178 STIF_TESTDEFINE(t_CreateCommand_FriendRejected)
  179 {
  180 vimpstengine_stub engin;
  181 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  182 _LIT(KContactId,"contact");
  183 TBufC<10> buf (KContactId);
  184 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EFriendRejected, &buf) ;
  185 delete factory;
  186 factory = NULL;
  187 TInt comm_sent = EFriendRejected;
  188 TInt comm_recev = commd->CommandId();
  189 commd->ExecuteLD();
  190 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  191 }
  192 
  193 
  194 STIF_TESTDEFINE(t_CreateCommand_ChangeOwnAvtar)
  195 {
  196 vimpstengine_stub engin;
  197 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  198 TAvatarData data;
  199 
  200 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnAvtar,&data) ;
  201 delete factory;
  202 factory = NULL;
  203 TInt comm_sent = EChangeOwnAvtar;
  204 TInt comm_recev = commd->CommandId();
  205 commd->ExecuteLD();
  206 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  207 }
  208 
  209 
  210 STIF_TESTDEFINE(t_CreateCommand_CloseConversation)
  211 {
  212 vimpstengine_stub engin;
  213 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  214 _LIT(KContactId,"contact");
  215 TBufC<10> buf(KContactId);
  216 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECloseConversation,&buf) ;
  217 delete factory;
  218 factory = NULL;
  219 TInt comm_sent = ECloseConversation;
  220 TInt comm_recev = commd->CommandId();
  221 commd->ExecuteLD();
  222 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  223 }
  224 
  225 
  226 STIF_TESTDEFINE(t_CreateCommand_AddToPbk)
  227 {
  228 vimpstengine_stub engin;
  229 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  230 
  231 vimpststoragecontact_stub store;
  232 
  233 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EAddToPbk,&store) ;
  234 delete factory;
  235 factory = NULL;
  236 TInt comm_sent = EAddToPbk;
  237 TInt comm_recev = commd->CommandId();
  238 commd->ExecuteLD();
  239 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  240 }
  241 
  242 
  243 STIF_TESTDEFINE(t_CreateCommand_CancelLogin)
  244 {
  245 vimpstengine_stub engin;
  246 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  247 TInt data  = 1;
  248 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECancelLogin,&data) ;
  249 delete factory;
  250 factory = NULL;
  251 TInt comm_sent = ECancelLogin;
  252 TInt comm_recev = commd->CommandId();
  253 commd->ExecuteLD();
  254 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  255 }
  256 
  257 STIF_TESTDEFINE(t_CreateCommand_ProcessAcceptedContactNew)
  258 {
  259 vimpstengine_stub engin;
  260 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  261 TVPbkSelectedData iSelectedData;
  262 
  263 _LIT8(KContactId,"contact");
  264 TPtrC8 buddy = KContactId;
  265 iSelectedData.iPackedLinks = buddy.AllocL();
  266 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessAcceptedContactNew,&iSelectedData) ;
  267 //delete factory;
  268 //factory = NULL;
  269 TInt comm_sent = ECmdProcessAcceptedContactNew;
  270 TInt comm_recev = commd->CommandId();
  271 commd->ExecuteLD();
  272 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  273 }
  274 STIF_TESTDEFINE(t_CreateCommand_ProcessSelectedContactNew)
  275 {
  276 vimpstengine_stub engin;
  277 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  278 TVPbkSelectedData iSelectedData;
  279 
  280 _LIT8(KContactId,"contact");
  281 TPtrC8 buddy = KContactId;
  282 iSelectedData.iPackedLinks = buddy.AllocL();
  283 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessSelectedContactNew,&iSelectedData) ;
  284 //delete factory;
  285 //factory = NULL;
  286 TInt comm_sent = ECmdProcessSelectedContactNew;
  287 TInt comm_recev = commd->CommandId();
  288 commd->ExecuteLD();
  289 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  290 }
  291 STIF_TESTDEFINE(t_CreateCommand_ProcessAcceptedContactExist)
  292 {
  293 vimpstengine_stub engin;
  294 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  295 TVPbkSelectedData iSelectedData;
  296 
  297 _LIT8(KContactId,"contact");
  298 TPtrC8 buddy = KContactId;
  299 iSelectedData.iPackedLinks = buddy.AllocL();
  300 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessAcceptedContactExist,&iSelectedData) ;
  301 //delete factory;
  302 //factory = NULL;
  303 TInt comm_sent = ECmdProcessAcceptedContactExist;
  304 TInt comm_recev = commd->CommandId();
  305 commd->ExecuteLD();
  306 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  307 }
  308 STIF_TESTDEFINE(t_CreateCommand_ProcessSelectedContactExist)
  309 {
  310 vimpstengine_stub engin;
  311 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  312 TVPbkSelectedData iSelectedData;
  313 
  314 _LIT8(KContactId,"contact");
  315 TPtrC8 buddy = KContactId;
  316 iSelectedData.iPackedLinks = buddy.AllocL();
  317 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessSelectedContactExist,&iSelectedData) ;
  318 //delete factory;
  319 //factory = NULL;
  320 TInt comm_sent = ECmdProcessSelectedContactExist;
  321 TInt comm_recev = commd->CommandId();
  322 commd->ExecuteLD();
  323 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  324 }
  325 
  326 //============================ExecuteLD---------------------
  327 
  328 STIF_TESTDEFINE(t_ExeCommand_login)
  329 {
  330 vimpstengine_stub engin;
  331 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  332 TInt data  = 1;
  333 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELoginService,&data) ;
  334 TInt comm_sent = ELoginService;
  335 TInt comm_recev = commd->CommandId();
  336 vimpstcmdobserver_stub ob;
  337 commd->AddObserver(ob);
  338 commd->ExecuteLD();
  339 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  340 }
  341 
  342 
  343 STIF_TESTDEFINE(t_ExeCommand_logout)
  344 {
  345 vimpstengine_stub engin;
  346 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  347 TInt data  = 1;
  348 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELogoutService,&data) ;
  349 TInt comm_sent = ELogoutService;
  350 TInt comm_recev = commd->CommandId();
  351 vimpstcmdobserver_stub ob;
  352 commd->AddObserver(ob);
  353 commd->ExecuteLD();
  354 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  355 }
  356 
  357 STIF_TESTDEFINE(t_ExeCommand_LaunchCCA)
  358 {/*
  359 vimpstengine_stub engin;
  360 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  361 TLaunchCCAData data;
  362 data.iIndex = 2;
  363 //TInt data  = 1;
  364 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ELaunchCCA,&data) ;
  365 TInt comm_sent = ELaunchCCA;
  366 TInt comm_recev = commd->CommandId();
  367 vimpstcmdobserver_stub ob;
  368 commd->AddObserver(ob);
  369 //commd->iIndex = 0;
  370 commd->ExecuteLD();
  371 STIF_ASSERT_EQUALS(comm_sent, comm_recev );*/
  372 }
  373 STIF_TESTDEFINE(t_ExeCommand_AddContact)
  374 {
  375 vimpstengine_stub engin;
  376 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  377 TInt data  = 1;
  378 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EAddContact,&data) ;
  379 TInt comm_sent = EAddContact;
  380 TInt comm_recev = commd->CommandId();
  381 vimpstcmdobserver_stub ob;
  382 commd->AddObserver(ob);
  383 commd->ExecuteLD();
  384 
  385 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  386 }
  387 
  388 STIF_TESTDEFINE(t_ExeCommand_DeleteContact)
  389 {
  390 vimpstengine_stub engin;
  391 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  392 TInt data  = 1;
  393 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EDeleteContact,&data) ;
  394 delete factory;
  395 factory = NULL;
  396 TInt comm_sent = EDeleteContact;
  397 TInt comm_recev = commd->CommandId();
  398 vimpstcmdobserver_stub ob;
  399 commd->AddObserver(ob);
  400 commd->ExecuteLD();
  401 
  402 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  403 }
  404 
  405 
  406 STIF_TESTDEFINE(t_ExeCommand_ChangeOwnStatus)
  407 {
  408 vimpstengine_stub engin;
  409 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  410 TStatusAndStatusText status;
  411 _LIT(KStatusMsg,"away");
  412 status.iStatusText.Copy(KStatusMsg);
  413 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnStatus,&status) ;
  414 delete factory;
  415 factory = NULL;
  416 TInt comm_sent = EChangeOwnStatus;
  417 TInt comm_recev = commd->CommandId();
  418 vimpstcmdobserver_stub ob;
  419 commd->AddObserver(ob);
  420 commd->ExecuteLD();
  421 
  422 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  423 }
  424 
  425 STIF_TESTDEFINE(t_ExeCommand_ChangeOwnMessage)
  426 {
  427 vimpstengine_stub engin;
  428 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  429 
  430 TStatusAndStatusText status;
  431 _LIT(KStatusMsg,"away");
  432 status.iStatusText.Copy(KStatusMsg);
  433 
  434 TInt data  = 1;
  435 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnMessage,&status) ;
  436 delete factory;
  437 factory = NULL;
  438 TInt comm_sent = EChangeOwnMessage;
  439 TInt comm_recev = commd->CommandId();
  440 vimpstcmdobserver_stub ob;
  441 commd->AddObserver(ob);
  442 commd->ExecuteLD();
  443 
  444 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  445 }
  446 
  447 STIF_TESTDEFINE(t_ExeCommand_Search)
  448 {
  449 vimpstengine_stub engin;
  450 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  451 RArray<TVIMPSTSearchKeyData> aKeyDataArray;
  452 
  453 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ESearch,&aKeyDataArray) ;
  454 delete factory;
  455 factory = NULL;
  456 TInt comm_sent = ESearch;
  457 TInt comm_recev = commd->CommandId();
  458 vimpstcmdobserver_stub ob;
  459 commd->AddObserver(ob);
  460 commd->ExecuteLD();
  461 
  462 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  463 }
  464 
  465 
  466 STIF_TESTDEFINE(t_ExeCommand_FriendRejected)
  467 {
  468 vimpstengine_stub engin;
  469 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  470 _LIT(KContactId,"contact");
  471 TBufC<10> buf (KContactId);
  472 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EFriendRejected, &buf) ;
  473 delete factory;
  474 factory = NULL;
  475 TInt comm_sent = EFriendRejected;
  476 TInt comm_recev = commd->CommandId();
  477 vimpstcmdobserver_stub ob;
  478 commd->AddObserver(ob);
  479 commd->ExecuteLD();
  480 
  481 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  482 }
  483 
  484 
  485 STIF_TESTDEFINE(t_ExeCommand_ChangeOwnAvtar)
  486 {
  487 vimpstengine_stub engin;
  488 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  489 TAvatarData data;
  490 
  491 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EChangeOwnAvtar,&data) ;
  492 delete factory;
  493 factory = NULL;
  494 TInt comm_sent = EChangeOwnAvtar;
  495 TInt comm_recev = commd->CommandId();
  496 vimpstcmdobserver_stub ob;
  497 commd->AddObserver(ob);
  498 commd->ExecuteLD();
  499 
  500 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  501 }
  502 
  503 
  504 STIF_TESTDEFINE(t_ExeCommand_CloseConversation)
  505 {
  506 vimpstengine_stub engin;
  507 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  508 _LIT(KContactId,"contact");
  509 TBufC<10> buf(KContactId);
  510 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECloseConversation,&buf) ;
  511 delete factory;
  512 factory = NULL;
  513 TInt comm_sent = ECloseConversation;
  514 TInt comm_recev = commd->CommandId();
  515 vimpstcmdobserver_stub ob;
  516 commd->AddObserver(ob);
  517 commd->ExecuteLD();
  518 
  519 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  520 }
  521 
  522 
  523 STIF_TESTDEFINE(t_ExeCommand_AddToPbk)
  524 {
  525 vimpstengine_stub engin;
  526 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  527 
  528 vimpststoragecontact_stub store;
  529 
  530 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EAddToPbk,&store) ;
  531 delete factory;
  532 factory = NULL;
  533 TInt comm_sent = EAddToPbk;
  534 TInt comm_recev = commd->CommandId();
  535 vimpstcmdobserver_stub ob;
  536 commd->AddObserver(ob);
  537 commd->ExecuteLD();
  538 
  539 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  540 }
  541 
  542 
  543 STIF_TESTDEFINE(t_ExeCommand_CancelLogin)
  544 {
  545 vimpstengine_stub engin;
  546 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  547 TInt data  = 1;
  548 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECancelLogin,&data) ;
  549 delete factory;
  550 factory = NULL;
  551 TInt comm_sent = ECancelLogin;
  552 TInt comm_recev = commd->CommandId();
  553 vimpstcmdobserver_stub ob;
  554 commd->AddObserver(ob);
  555 commd->ExecuteLD();
  556 
  557 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  558 }
  559 
  560 //Test case for Block/unblock...
  561 
  562 STIF_TESTDEFINE(t_CreateCommand_BlockContact)
  563 {
  564 vimpstengine_stub engin;
  565 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  566 _LIT(KContactId,"contact");
  567 TBufC<10> buf (KContactId);
  568 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdBlockContact, &buf) ;
  569 delete factory;
  570 factory = NULL;
  571 TInt comm_sent = ECmdBlockContact;
  572 TInt comm_recev = commd->CommandId();
  573 
  574 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  575 }
  576 
  577 STIF_TESTDEFINE(t_CreateCommand_UnBlockContact)
  578 {
  579 vimpstengine_stub engin;
  580 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  581 _LIT(KContactId,"contact");
  582 TBufC<10> buf (KContactId);
  583 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdUnBlockContact, &buf) ;
  584 delete factory;
  585 factory = NULL;
  586 TInt comm_sent = ECmdUnBlockContact;
  587 TInt comm_recev = commd->CommandId();
  588 
  589 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  590 }
  591 
  592 STIF_TESTDEFINE(t_ExecuteCommand_BlockContact)
  593 {
  594 vimpstengine_stub engin;
  595 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  596 _LIT(KContactId,"contact");
  597 TBufC<10> buf (KContactId);
  598 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdBlockContact, &buf) ;
  599 delete factory;
  600 factory = NULL;
  601 vimpstcmdobserver_stub observer;
  602 commd->AddObserver(observer);
  603 TInt comm_sent = ECmdBlockContact;
  604 TInt comm_recev = commd->CommandId();
  605 TRAPD(err,commd->ExecuteLD());
  606 
  607 STIF_ASSERT_EQUALS(err, KErrNone );
  608 }
  609 
  610 STIF_TESTDEFINE(t_ExecuteCommand_UnBlockContact)
  611 {
  612 vimpstengine_stub engin;
  613 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  614 _LIT(KContactId,"contact");
  615 TBufC<10> buf (KContactId);
  616 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdUnBlockContact, &buf) ;
  617 delete factory;
  618 factory = NULL;
  619 vimpstcmdobserver_stub observer;
  620 commd->AddObserver(observer);
  621 TInt comm_sent = ECmdUnBlockContact;
  622 TInt comm_recev = commd->CommandId();
  623 TRAPD(err,commd->ExecuteLD());
  624 
  625 STIF_ASSERT_EQUALS(err, KErrNone);
  626 }
  627 STIF_TESTDEFINE(t_ExecuteCommand_FetchBlockContactList)
  628 {
  629 vimpstengine_stub engin;
  630 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  631 _LIT(KContactId,"contact");
  632 TBufC<10> buf (KContactId);
  633 MVIMPSTCmd* commd = factory->CreateCommandForIdL(EFetchBlockedList) ;
  634 delete factory;
  635 factory = NULL;
  636 vimpstcmdobserver_stub observer;
  637 commd->AddObserver(observer);
  638 TInt comm_sent = EFetchBlockedList;
  639 TInt comm_recev = commd->CommandId();
  640 TRAPD(err,commd->ExecuteLD());
  641 
  642 STIF_ASSERT_EQUALS(err, KErrNone);
  643 }
  644 STIF_TESTDEFINE(t_ExecuteCommand_ProcessAcceptedContactNew)
  645 {
  646 vimpstengine_stub engin;
  647 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  648 TVPbkSelectedData iSelectedData;
  649 
  650 _LIT8(KPackedlink,"packedlink");
  651 TPtrC8 link = KPackedlink;
  652 iSelectedData.iPackedLinks = link.AllocL();
  653 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessAcceptedContactNew,&iSelectedData) ;
  654 //delete factory;
  655 //factory = NULL;
  656 vimpstcmdobserver_stub observer;
  657 commd->AddObserver(observer);
  658 TInt comm_sent = ECmdProcessAcceptedContactNew;
  659 TInt comm_recev = commd->CommandId();
  660 commd->ExecuteLD();
  661 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  662 }
  663 
  664 STIF_TESTDEFINE(t_ExecuteCommand_ProcessSelectedContactNew)
  665 {
  666 vimpstengine_stub engin;
  667 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  668 TVPbkSelectedData iSelectedData;
  669 
  670 _LIT8(KPackedlink,"packedlink");
  671 TPtrC8 link = KPackedlink;
  672 iSelectedData.iPackedLinks = link.AllocL();
  673 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessSelectedContactNew,&iSelectedData) ;
  674 //delete factory;
  675 //factory = NULL;
  676 vimpstcmdobserver_stub observer;
  677 commd->AddObserver(observer);
  678 TInt comm_sent = ECmdProcessSelectedContactNew;
  679 TInt comm_recev = commd->CommandId();
  680 commd->ExecuteLD();
  681 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  682 }
  683 
  684 STIF_TESTDEFINE(t_ExecuteCommand_ProcessAcceptedContactExist)
  685 {
  686 vimpstengine_stub engin;
  687 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  688 TVPbkSelectedData iSelectedData;
  689 
  690 _LIT8(KPackedlink,"packedlink");
  691 TPtrC8 link = KPackedlink;
  692 iSelectedData.iPackedLinks = link.AllocL();
  693 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessAcceptedContactExist,&iSelectedData) ;
  694 //delete factory;
  695 //factory = NULL;
  696 vimpstcmdobserver_stub observer;
  697 commd->AddObserver(observer);
  698 TInt comm_sent = ECmdProcessAcceptedContactExist;
  699 TInt comm_recev = commd->CommandId();
  700 commd->ExecuteLD();
  701 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  702 }
  703 
  704 STIF_TESTDEFINE(t_ExecuteCommand_ProcessSelectedContactExist)
  705 {
  706 vimpstengine_stub engin;
  707 CVIMPSTCmdFactory *factory = CVIMPSTCmdFactory::NewL(engin);
  708 TVPbkSelectedData iSelectedData;
  709 
  710 _LIT8(KPackedlink,"packedlink");
  711 TPtrC8 link = KPackedlink;
  712 iSelectedData.iPackedLinks = link.AllocL();
  713 MVIMPSTCmd* commd = factory->CreateCommandForIdL(ECmdProcessSelectedContactExist,&iSelectedData) ;
  714 //delete factory;
  715 //factory = NULL;
  716 vimpstcmdobserver_stub observer;
  717 commd->AddObserver(observer);
  718 TInt comm_sent = ECmdProcessSelectedContactExist;
  719 TInt comm_recev = commd->CommandId();
  720 commd->ExecuteLD();
  721 STIF_ASSERT_EQUALS(comm_sent, comm_recev );
  722 }
  723 
  724 #endif
  725 /**
  726  * END OF TEST CASES SECTION
  727  */
***TER 100% (0/0) of SOURCE FILE t_vimpstcmdprocess_cmdfactory_utestcases.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD10.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD10.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,198 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #10/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaparameter.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 11)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2  * ============================================================================
  3  *  Name        : mccaparameter.cpp
  4  *  Part of     : CCA / CCAClient
  5  *  Description : This is a class for creating data of contact
  6  *                for launching CCA application.
  7  *  Version     : %version: 5 % << Don't touch! Updated by Synergy at check-out.
  8  *
  9  *  Copyright © 2007 Nokia.  All rights reserved.
  10  *  This material, including documentation and any related computer
  11  *  programs, is protected by copyright controlled by Nokia.  All
  12  *  rights are reserved.  Copying, including reproducing, storing,
  13  *  adapting or translating, any or all of this material requires the
  14  *  prior written consent of Nokia.  This material also contains
  15  *  confidential information which may not be disclosed to others
  16  *  without the prior written consent of Nokia.
  17  * ============================================================================
  18  * Template version: 4.2
  19  */
  20 
  21 #include "s_mccaparameter.h"
  22 
  23 
  24 /** @file mccaparameter.h
  25  *
  26  *  MCCAParameter class is used to store, control and define how the CCA application is launched
  27  *  with the contact specified data.
  28  *
  29  *  Example usage of the API:
  30  *  @code
  31  *   MCCAParameter* aParameter = TCCAFactory::NewParameterL()
  32  *   aParameter->SetConnectionFlag(ENormal);
  33  *   aParameter->SetContactDataFlag(EContactId);
  34  *   aParameter->SetContactDataL(aString);
  35  *
  36  *   aParameter->SetLaunchedViewUid(aUid);
  37  *
  38  *  @endcode
  39  *
  40  *  @lib ccaclient
  41  *  @since S60 v5.0
  42  */
 
- 43 MCCAParameter* MCCAParameterstub::NewL()
  44     {
  45     MCCAParameter* parameter = new(ELeave)MCCAParameterstub;
  46         return parameter;
  47     }
  48 
  49     /**
  50      * Getter for the flags of connection.
  51      * @since S60 5.0
  52      * @return the flags.
  53      */
 
- 54      MCCAParameter::TConnectionFlags MCCAParameterstub::ConnectionFlag()
  55         {
  56         
  57         }
  58 
  59     /**
  60      * Getter for the contact data flags.
  61      * @since S60 5.0
  62      * @return the flags.
  63      */
 
- 64      MCCAParameter::TContactDataFlags MCCAParameterstub::ContactDataFlag()
  65         {
  66         
  67         }
  68 
  69     /**
  70      * Getter for the contact data.
  71      * @leave KErrArgument if data not set.
  72      * @since S60 5.0
  73      * @return the reference of contact data.
  74      */
 
- 75      HBufC& MCCAParameterstub::ContactDataL()
  76         {
  77         
  78         }
  79 
  80     /**
  81      * Getter for the view uid.
  82      * @since S60 5.0
  83      * @return the Uid.
  84      */
 
- 85      TUid MCCAParameterstub::LaunchedViewUid()
  86         {
  87         
  88         }
  89 
  90     /**
  91      * Getter for the version.
  92      * @since S60 5.0
  93      * @return the version.
  94      */
 
- 95      TInt32 MCCAParameterstub::Version()
  96         {
  97                 
  98                 }
  99 
  100     /**
  101      * Setter for the flag of connection.
  102      *
  103      * @see TConnectionFlags
  104      * @since S60 5.0
  105      * @param aFlags: flags of connection
  106      */
 
- 107      void MCCAParameterstub::SetConnectionFlag(const MCCAParameter::TConnectionFlags aConnectionFlags)
  108         {
  109         
  110         }
  111 
  112     /**
  113      * Setter for the contact data flag.
  114      *
  115      * @see TContactDataFlags
  116      * @since S60 5.0
  117      * @param aFlags: flags of connection
  118      */
 
- 119      void MCCAParameterstub::SetContactDataFlag(const MCCAParameter::TContactDataFlags aContactDataFlags)
  120         {
  121         }        
  122 
  123     /**
  124      * Setter for the contact data.
  125      * If you are using TContactDataFlags::EContactLink, the MVPbkContactLink
  126      * should be streamed with PackLC before given for this method.
  127      * Ownership is NOT transferred.
  128      * @see MVPbkContactLink from  phonebook.
  129      * @leave KErrNotFound if contact data flag is not
  130      *        set before calling this method.
  131      * @see MCCAParameter::SetContactDataFlags
  132      * @since S60 5.0
  133      * @param aContactData: given contact data.
  134      */
 
- 135      void MCCAParameterstub::SetContactDataL(const TDesC& aContactData)
  136         {
  137         }
  138 
  139     /**
  140      * Setter for the launched view uid. Use this when there
  141      * is need to get a particular view opened first on launch of CCA.
  142      * If view uid is not set, CCA uses the default view.
  143      * NOT IMPLEMENTED YET!
  144      * @since S60 5.0
  145      * @param aContactData: given contact data.
  146      */
 
- 147      void MCCAParameterstub::SetLaunchedViewUid(const TUid aUid)
  148         {
  149         
  150         }
  151 
 
- 152     void MCCAParameterstub::Close() 
  153          {
  154          
  155          }
  156 
  157     
  158     // End of File
  159     
***TER 0% (0/11) of SOURCE FILE s_mccaparameter.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD11.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD11.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,134 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #11/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mvpbkcontactlinkstub.cpp
+Instrumentation mode: function
+TER: 14 % ( 1/ 7)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : s_MVPbkContactLinkstub.cpp
  4 *  Part of     : Virtual Phonebook / VPbkEng.dll
  5 *  Description : Virtual Phonebook contact link for referencing contacts 
  6 *                in different stores.
  7 *  Version     : %version: 1 %
  8 *
  9 *  Copyright © 2002-2007 Nokia.  All rights reserved.
  10 *  This material, including documentation and any related computer
  11 *  programs, is protected by copyright controlled by Nokia.  All
  12 *  rights are reserved.  Copying, including reproducing, storing,
  13 *  adapting or translating, any or all of this material requires the
  14 *  prior written consent of Nokia.  This material also contains
  15 *  confidential information which may not be disclosed to others
  16 *  without the prior written consent of Nokia.
  17 * ============================================================================
  18 */
  19 
  20 // INCLUDES
  21 #include "s_MVPbkContactLinkstub.h"
  22 
 
154   23 MVPbkContactLink* CVPbkContactLinkStub::NewL()
  24     {
  25     MVPbkContactLink* list = new(ELeave)CVPbkContactLinkStub;
  26         return list;
  27     }
  28 
  29 /**
  30  * Returns the contact store which this link belongs to.
  31  * @return Contact store associated with this link.
  32  */
 
- 33 MVPbkContactStore& CVPbkContactLinkStub::ContactStore() const 
  34 {
  35 MVPbkContactStore* ret=NULL;
  36 return *ret;   
  37 }
  38 
  39 /**
  40  * Returns ETrue if this link refers to the same contact than
  41  * aOther, EFalse otherwise.
  42  * @param aOther Contact to check equality for.
  43  * @return ETrue if this link refers to the same contact than
  44  *         aOther, EFalse otherwise.
  45  */
 
- 46 TBool CVPbkContactLinkStub::IsSame(const MVPbkContactLink& aOther) const 
  47 {
  48 if (this == &aOther)
  49 return ETrue;
  50 
  51 return EFalse;
  52 }
  53 
  54 /**
  55  * Checks if this link refers to the contact aContact.
  56  * @param aContact Contact to check.
  57  * @return ETrue if this link refers to aContact, EFalse otherwise.
  58  */
 
- 59 TBool CVPbkContactLinkStub::RefersTo(const MVPbkBaseContact& /*aContact*/) const 
  60 {
  61 return ETrue;   
  62 }
  63 
  64 /**
  65  * Returns persistent streaming interface for this object, or NULL
  66  * if persistent streaming is not supported.
  67  * @return Persistent streaming object or NULL if not supported.
  68  */
 
- 69 const MVPbkStreamable* CVPbkContactLinkStub::Streamable() const 
  70 {
  71 return NULL;   
  72 };
  73 
  74 /**
  75  * Returns a packing interface for this link.
  76  * @see CVPbkContactLinkArray
  77  * @internal
  78  * @return Link packing object.
  79  */
 
- 80 const MVPbkContactLinkPacking& CVPbkContactLinkStub::Packing() const 
  81 {
  82 MVPbkContactLinkPacking* ret = NULL;
  83 return *ret;   
  84 };
  85 
  86 /**
  87  * Returns a clone of this contact link.
  88  * @return Contact link copy.
  89  */
 
- 90 MVPbkContactLink* CVPbkContactLinkStub::CloneLC() const 
  91 {
  92 MVPbkContactLink* link = CVPbkContactLinkStub::NewL();
  93     return link;   
  94 }
  95 
  96 
  97         
  98     
  99 // End of File
***TER 14% (1/7) of SOURCE FILE s_mvpbkcontactlinkstub.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD12.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD12.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,75 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #12/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_processarrayobserver.cpp
+Instrumentation mode: function
+TER: 100 % ( 4/ 4)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_processarrayobserver.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_processarrayobserver.h"
  21 
 
  22 MVIMPSTProcessArrayObserver* vimpstprocessarrayobserver_stub::NewL()
  23     {
  24   MVIMPSTProcessArrayObserver* ob = new(ELeave)vimpstprocessarrayobserver_stub;
  25         return ob;
  26     }
  27 
 
32 32   28 void vimpstprocessarrayobserver_stub::HandleAdditionL(TVIMPSTEnums::TItem type,  TInt aIndex)
  29 {
  30    
  31 }
  32 
 
10 10   33 void vimpstprocessarrayobserver_stub::HandleDeletionL(TVIMPSTEnums::TItem type, TInt aIndex)
  34 {
  35    
  36 }
 
  37 void vimpstprocessarrayobserver_stub:: HandleAvatarChangeL( const TDesC& aUserId )
  38 {
  39     
  40 }
  41         
  42 
  43 // End of File
***TER 100% (4/4) of SOURCE FILE s_processarrayobserver.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD13.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD13.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,147 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #13/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_storageitemmodel.cpp
+Instrumentation mode: function
+TER: 57 % ( 4/ 7)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : cvimpststoragecontact.cpp
  4 *  Part of     : IMUiserviceTab / vimpststorage
  5 *  Description : Implementation of contact data container
  6 *  Version     : %version: 29 %
  7 *
  8 *  Copyright (c) 2008 Nokia Corporation.
  9 *  This material, including documentation and any related 
  10 *  computer programs, is protected by copyright controlled by 
  11 *  Nokia Corporation. All rights are reserved. Copying, 
  12 *  including reproducing, storing, adapting or translating, any 
  13 *  or all of this material requires the prior written consent of 
  14 *  Nokia Corporation. This material also contains confidential 
  15 *  information which may not be disclosed to others without the 
  16 *  prior written consent of Nokia Corporation.
  17 * ==============================================================================
  18 */
  19 
  20 
  21 // INCLUDE FILES
  22 #include "s_storageitemmodel.h"
  23 #include "s_vimpststoragecontact.h"
  24 
  25 
  26 // ============================ MEMBER FUNCTIONS ===============================
  27 
  28 
  29 
  30 // -----------------------------------------------------------------------------
  31 // CVIMPSTStorageContact::NewL
  32 // Two-phased constructor.
  33 // -----------------------------------------------------------------------------
  34 //
 
128   35 MVIMPSTStorageItemModel* vimpststorageitemlist_stub::NewL()
  36     {
  37     MVIMPSTStorageItemModel* list = new(ELeave)vimpststorageitemlist_stub;
  38         return list;
  39     }
  40 
  41 
  42     
 
134   43 TInt vimpststorageitemlist_stub::Count() const
  44 {
  45 return 1;
  46 }
  47 
  48            /**
  49             * Returns List item at given index.
  50             * @param aIndex
  51             * @return SItem List item
  52   
  53             */
 
134   54 MVIMPSTStorageItemModel::SItem vimpststorageitemlist_stub::Item( TInt aIndex  ) const
  55 {
  56 MVIMPSTStorageItemModel::SItem item;
  57 item.iType = MVIMPSTStorageItemModel::EContactItem;
  58 item.iContactList = NULL;
  59 item.iContact = vimpststoragecontact_stub::NewL();
  60 return item;
  61 }
  62            
  63            
  64            /**
  65             * Get index for contact.
  66             * @param aContact. Contact item to be found.
  67             * @return TInt Index of contact. If contact not found returns KErrNotFound
  68             */
 
  69            TInt vimpststorageitemlist_stub::IndexOfContact( MVIMPSTStorageContact* aContact ) const 
  70            {
  71            return 1;
  72            }
  73            
  74            /**
  75             * Get index for list
  76             * @param aList. Contact item to be found.
  77             * @param aIgnoreOwnItem. If ETrue own item is not taken into account
  78             *                        when resolving index.
  79             * @param aIgnoreEmptyLists If ETrue, empty lists are ignored.
  80             * @return TInt Index of list. If list not found returns KErrNotFound
  81             */
 
- 82            TInt vimpststorageitemlist_stub::IndexOfList( MVIMPSTStorageContactList* aList,
  83                                      TBool aIgnoreOwnItem ,
  84                                      TBool aIgnoreEmptyLists ) const
  85                                      {
  86                                      return 1;
  87                                      }
  88            
  89            // -----------------------------------------------------------------------------
  90            // CVIMPSTContactListModel::MdcaCount
  91            // (other items were commented in a header).
  92            // -----------------------------------------------------------------------------
  93            //
 
- 94            TInt vimpststorageitemlist_stub::MdcaCount() const
  95                {
  96                
  97                return Count();
  98                }
  99 
  100            // -----------------------------------------------------------------------------
  101            // CVIMPSTContactListModel::MdcaPoint
  102            // (other items were commented in a header).
  103            // -----------------------------------------------------------------------------
  104            //
 
- 105            TPtrC vimpststorageitemlist_stub::MdcaPoint( TInt /*aIndex */) const
  106                {
  107                
  108                // These will be filtered out
  109                return KNullDesC();
  110                } 
  111 
  112 //  End of File  
***TER 57% (4/7) of SOURCE FILE s_storageitemmodel.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD14.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD14.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,64 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #14/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstcmdobserver.cpp
+Instrumentation mode: function
+TER: 50 % ( 1/ 2)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_vimpstcmdobserver.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_vimpstcmdobserver.h"
  21 #include "mvimpstcmd.h"
  22 
 
38 38   23 void vimpstcmdobserver_stub::CommandFinishedL(const MVIMPSTCmd& aCommand ) 
  24 {
  25 TInt res = aCommand.Result();
  26 }
  27 
 
- 28 void vimpstcmdobserver_stub::HandleCommandEventL(TVIMPSTEnums::TVIMPSTRegistrationState aState, TInt aServiceError) 
  29 {
  30    
  31 }
  32 
  33 
  34 // End of File
***TER 50% (1/2) of SOURCE FILE s_vimpstcmdobserver.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD15.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD15.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,432 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #15/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstengin.cpp
+Instrumentation mode: function
+TER: 58 % ( 15/ 26)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_vimpstengin.cpp
  4 *  Part of     : 
  5 *  Description : Interface for presence context.
  6 *  Version     : %version: 9 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_vimpstengin.h"
  21 //#include "s_enginecontmgtextfeatures.h"
  22 #include "s_enginesearchextention.h"
  23 #include "s_vimpstenginepresencesubservice.h"
  24 #include "s_imsubservice.h"
  25 #include "tvimpstenums.h"
  26 #include "s_engineextentionfeatures.h"
  27 
  28 /*
  29 */
  30 /*MVIMPSTEngine& vimpstengine_stub::NewL()
  31 {
  32    return new vimpstengine_stub;
  33 }*/
  34 
  35 /**
  36 * Gets the Brand Information for the current service
  37 * @param aBrandLanguage - Holds the BrandLanguage
  38 * @param aBrandVersion - Holds the Version to be used
  39 * @param aBrandId - Holds the brandId 
  40 * caller should allocate memory for all params and send the same to this API
  41 * The result will be available in the InParams otself.
  42 * @return TInt Error code
  43 */
 
- 44 TInt vimpstengine_stub::GetBrandInfoL(TLanguage& /*aBrandLanguage*/, 
  45       TInt& /*aBrandVersion*/, TDes8& /*aBrandId*/) const 
  46    {
  47    return 1;         
  48    }
  49 
  50 /**
  51 * Returns the Service State - Cumulative Service State of the SubServices
  52 * @return TVIMPSTRegistrationState, current service state.
  53 */
 
126   54 TVIMPSTEnums::TVIMPSTRegistrationState vimpstengine_stub::ServiceState() const 
  55    {
  56    TVIMPSTEnums::TVIMPSTRegistrationState state = TVIMPSTEnums::ESVCERegistered;
  57    return state;
  58    }
  59 
  60 
  61 /**
  62 * Gets the Service Id
  63 * @return TUint32 Service Id
  64 */
 
230   65 TUint32 vimpstengine_stub::ServiceId() const
  66 {
  67 return 1;   
  68    
  69 }
  70    
  71 
  72 
  73 
  74 
  75 
  76 
  77 /**
  78 * Returns a SubService is Supported or not
  79 * Components intertested in knowing whether a SubService is Supported or not can use this API
  80 * @param aType - Type of the SubService TVIMPSTEnums::SubServiceType - Defined in tvimpstenums.h
  81 * @return TBool, ETrue if the SubService is Supported in this Service, else returns EFalse
  82 */         
 
  83 TBool vimpstengine_stub::IsSubServiceSupportedL(TVIMPSTEnums::SubServiceType /*aType*/) const 
  84    {
  85    return ETrue;
  86    }
  87       
  88 
  89 /**
  90 * Returns TBool whether a SubService is Enabled or not
  91 * Components intertested in knowing whether a SubService is Enabled or not can use this API
  92 * @param aType - Type of the SubService TVIMPSTEnums::SubServiceType - Defined in tvimpstenums.h
  93 * @return TBool, ETrue if the SubService is Enabled in this Service, else returns EFalse
  94 */
 
- 95 TBool vimpstengine_stub::IsSubServiceEnabled(TVIMPSTEnums::SubServiceType /*aType*/) const 
  96 {
  97    return ETrue;
  98 }
  99 
  100 /**
  101 * Gets the StoreName for given service
  102 * @param aContactStoreId, Virtual store id. 
  103 * The caller of the this function has to assign required memory for aContactStoreId
  104 * aContactStoreId will be filled with the Virtual Store Id by this API
  105 */
 
76 76   106 void vimpstengine_stub::ContactStoreIdL( 
  107       TDes& /*aContactStoreId*/ ) const 
  108 {
  109    
  110 }
  111 
  112 /**
  113 * returns the Service Name   
  114 * @return TDesC&, reference to service name. Ownership is not transferred.
  115 */
 
76   116 const TDesC& vimpstengine_stub::ServiceName() const 
  117 {
  118    return KNullDesC;
  119 }
  120 
  121 
  122 /**
  123 * Register Session Observer.
  124 * @aObserver, observer ot be registered.
  125 */
 
76 76   126 void vimpstengine_stub::RegisterServiceSessionObserverL
  127             (MVIMPSTEngineServiceStateEventObserver* /*aObserver*/) 
  128 {
  129    
  130 }
  131 
  132 /**
  133 * UnRegisters Session Observer
  134 * @aObserver, observer ot be Unregistered.   
  135 */
 
46 46   136 void vimpstengine_stub::UnRegisterServiceSessionObserver
  137             (MVIMPSTEngineServiceStateEventObserver* /*aObserver*/) 
  138 {
  139    
  140 }
  141 
  142   
  143 /**
  144 * intialize storage 
  145 */   
 
76 76   146 void vimpstengine_stub::IntializeStorageL() 
  147 {
  148    
  149 }
  150 
  151 /**
  152 * unintialize storage
  153 */   
 
46 46   154 void vimpstengine_stub::UnIntializeStorage() 
  155 {
  156    
  157 }
  158 
  159 
  160 /**
  161 * Get the Ptr to the SubService given the Type of the SubService
  162 * This API returns a Generalised SubService Class MVIMPSTEngineSubService
  163 * Ownership of the SubService is not Transferred to the Caller
  164 * The Caller can use this (MVIMPSTEngineSubService*) ptr to typecast to appropriate SubService Interface
  165 * Usage    :          MVIMPSTEngineIMSubService* imSubService = 
  166 *                           dynamic_cast<MVIMPSTEngineIMSubService*> 
  167 *                           (iEngine.SubService(TVIMPSTEnums::EIM));
  168 *             
  169 *                if(imSubService)
  170 *                    {
  171 *                    imSubService->CloseConversationL( iContactId );
  172 *                    }
  173 * @param aType - SubService Type (TVIMPSTEnums::SubServiceType) defined in tvimpstenums.h
  174 * @return - Ptr to the SubService - Value can even be NULL
  175 */ 
 
688   176 MVIMPSTEngineSubService* vimpstengine_stub::SubService(TVIMPSTEnums::SubServiceType aType) const
  177 {
  178 MVIMPSTEngineSubService* subservice = NULL;
  179 switch(aType)
  180         {
  181         case TVIMPSTEnums::EPresence:
  182             {
  183             TRAP_IGNORE(subservice = CVIMPSTEnginePresenceSubService_Stub::NewL());
  184             return subservice ;
  185             break;
  186             }
  187      /*   case TVIMPSTEnums::EIM:
  188                     {
  189                     TRAP_IGNORE(subservice = CVIMPSTEngineImSubService_Stub::NewL());
  190                     return subservice ;
  191                     break;
  192                     }*/
  193             
  194         default:
  195             break;
  196         }
  197    return subservice;
  198 }
  199 
  200 
  201 /**
  202 */
 
16   203 MVIMPSTEngineExtentionFeatures* vimpstengine_stub::ExtentionFeatures(TVIMPSTEnums::ExtentionType aType) const 
  204 {
  205    MVIMPSTEngineExtentionFeatures* extFeature = NULL;
  206    switch(aType)
  207       {
  208       case TVIMPSTEnums::EContactManagement:
  209          {
  210          TRAP_IGNORE(extFeature = extentionfeatures_stub::NewL());
  211          return extFeature ;
  212          break;
  213          }
  214       case TVIMPSTEnums::ESearch:
  215          {
  216          TRAP_IGNORE(extFeature = searchextention_stub::NewL());
  217          return extFeature ;
  218          break;
  219          }
  220       }
  221       
  222       return extFeature;
  223 }
  224 
  225 /**
  226 * Sets the User Name for the Service 
  227 * Stores the username to CCH Plugin
  228 *
  229 void vimpstengine_stub::SetUserNameL(const TDesC& /*aUserid) 
  230 {
  231    
  232 }
  233 */
  234 /**
  235 * Sets the Password for the Service 
  236 * Stores the Password to CCH Plugin
  237 * @param Password, Password to be stored.
  238 *
  239 void vimpstengine_stub::SetPassword(const TDesC& /*aPassword) 
  240 {
  241    
  242 }
  243 
  244 
  245 /**
  246 * gets the UserName for the Service          
  247 * @return HBufC* - Ownership is transferred to the caller
  248 * This API allocates memory for the UserName and transfers the Ownership to the Caller
  249 *
  250 HBufC* vimpstengine_stub::UserNameL() const 
  251 {
  252 _LIT(KText,"Nutan@presence");
  253    HBufC* buf = HBufC::NewL(20);
  254   
  255    *buf = KText; 
  256 
  257    return buf;
  258 }
  259 
  260 /**
  261 * gets the Password for the Service          
  262 * @return HBufC* - Ownership is transferred to the caller
  263 * This API allocates memory for the Password and transfers the Ownership to the Caller
  264 *
  265 HBufC* vimpstengine_stub::PasswordL() const 
  266 {
  267    return NULL;
  268 }
  269 */
  270 /**
  271 * API used to login to the Service                  
  272 */
 
  273 TInt vimpstengine_stub::Login() 
  274 {
  275    return 1;
  276 }
  277 
  278 /**
  279 * API used to Logout to the Service                  
  280 */
 
  281 void vimpstengine_stub::LogoutL() 
  282 {
  283    
  284 }
  285 
  286 
  287 /**
  288 * Gets the default domain name for given service
  289 * @param aDefaultDomainName, Domain Name. 
  290 * The caller of the this function has to assign required memory for aDefaultDomainName
  291 * aDefaultDomainName will be filled with the deafault domain name by this API
  292 */         
 
- 293 void vimpstengine_stub::DefaultDomainNameL( TDes& /*aDefaultDomainName */) const 
  294 {
  295    
  296 }
  297 /**
  298  * IsBlockSupportedL
  299  * @returns ETrue if block/unblock is supported 
  300  * else EFalse
  301  */
 
  302 TBool vimpstengine_stub::IsBlockSupportedL()
  303 {
  304    return ETrue;
  305 }
  306 
 
- 307 TInt vimpstengine_stub::ChangeConnectionL()
  308 {
  309    return 1;
  310 }
  311 /**
  312 * See MVIMPSTEngine
  313 
  314 * @return True if password is present in the settings else returns false
  315 *
  316 */
 
- 317 TBool vimpstengine_stub::IsPasswordAvailableL()
  318 {
  319 return ETrue;
  320 }
  321 
  322 
  323 /**
  324           * Inform storage that data base need to be deleted.
  325           */
 
- 326  void  vimpstengine_stub::DeleteDataBaseL()
  327     {
  328     
  329     }
  330  /*----------------------------------------------------------
  331   * vimpstengine_stub::GetPreseceSubService
  332   *-----------------------------------------------------------*/
 
- 333  MVIMPSTEnginePresenceSubService* vimpstengine_stub::GetPreseceSubService()
  334      {
  335      MVIMPSTEngineSubService* subService = SubService(TVIMPSTEnums::EPresence);
  336      if (subService)
  337          {
  338          //Get Presence SubService     
  339          MVIMPSTEnginePresenceSubService& presenceSubService = 
  340          MVIMPSTEnginePresenceSubService::Cast(*subService);
  341          return &presenceSubService ;
  342          }
  343      return NULL;
  344      }
  345  /*----------------------------------------------------------
  346   * vimpstengine_stub::FetchBlockedListL
  347   *-----------------------------------------------------------*/
  348 
 
  349  void vimpstengine_stub::FetchBlockedListL()
  350      {
  351      
  352      }
  353  /*----------------------------------------------------------
  354   * vimpstengine_stub::RegisterBlockedListObserver
  355   *-----------------------------------------------------------*/
  356 
 
- 357  void vimpstengine_stub::RegisterBlockedListObserver(
  358                      MVIMPSTEngineBlockedListFetchEventObserver* aOb)
  359      {
  360      
  361      }
  362  
 
- 363  HBufC* vimpstengine_stub::GetOwnUserIdFromCChOrStorageL() const
  364  {
  365  HBufC* temp = NULL;
  366  return temp;
  367  }
  368  
 
- 369  void vimpstengine_stub::RetriveContextIfCChEnabledL() 
  370      {
  371      
  372      }
 
- 373  void vimpstengine_stub::SetOwnUserIdIfChangedL(const TDesC& aUserId ) 
  374      {
  375      
  376      }
  377      
  378 //end of file
***TER 58% (15/26) of SOURCE FILE s_vimpstengin.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD16.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD16.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,401 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #16/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstenginepresencesubservice.cpp
+Instrumentation mode: function
+TER: 40 % ( 12/ 30)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2  * ==============================================================================
  3  *  Name        : s_vimpstenginepresencesubservice.cpp
  4  *  Part of     : IMUiServiceTab\internal\vimstcmdprocess_ut
  5  *  Description : Handles the use of Precense Framework
  6  *
  7  *  Copyright © 2007 Nokia.  All rights reserved.
  8  *  This material, including documentation and any related computer
  9  *  programs, is protected by copyright controlled by Nokia.  All
  10  *  rights are reserved.  Copying, including reproducing, storing,
  11  *  adapting or translating, any or all of this material requires the
  12  *  prior written consent of Nokia.  This material also contains
  13  *  confidential information which may not be disclosed to others
  14  *  without the prior written consent of Nokia.
  15  * ============================================================================
  16  * Template version: 4.2
  17  */
  18 
  19 // INCLUDE FILES
  20 #include "s_vimpstenginepresencesubservice.h"
  21 //Presence Observer
  22 //#include "mvimpstenginepresencesubserviceeventobserver.h"
  23 
  24 // CONTANTS
  25 const TInt KUriMaxLength = 255; 
  26 _LIT( KListNameAllBuddy ,"buddylist" );
  27 
  28 // ================= MEMBER FUNCTIONS =======================
  29 
  30 // ---------------------------------------------------------------------------
  31 // CVIMPSTEnginePresenceSubService_Stub::
  32 //      CVIMPSTEnginePresenceSubService_Stub()
  33 // ---------------------------------------------------------------------------
  34 //
 
236 236   35 CVIMPSTEnginePresenceSubService_Stub::CVIMPSTEnginePresenceSubService_Stub(  ) 
  36         {
  37         }
  38 
  39 // ---------------------------------------------------------------------------
  40 // CVIMPSTEnginePresenceSubService_Stub::ConstructL()
  41 // ---------------------------------------------------------------------------
  42 //
 
236 236   43 void CVIMPSTEnginePresenceSubService_Stub::ConstructL()
  44     {
  45    
  46 
  47     }
  48 
  49 // ---------------------------------------------------------------------------
  50 // CVIMPSTEnginePresenceSubService_Stub::NewL()
  51 // ---------------------------------------------------------------------------
  52 //
  53 CVIMPSTEnginePresenceSubService_Stub* 
 
236   54 CVIMPSTEnginePresenceSubService_Stub::NewL(  )
  55     {
  56     CVIMPSTEnginePresenceSubService_Stub* self = NewLC();
  57     CleanupStack::Pop(self);
  58     return self;
  59     }
  60 
  61 // ---------------------------------------------------------------------------
  62 // CVIMPSTEnginePresenceSubService_Stub::NewLC()
  63 // ---------------------------------------------------------------------------
  64 //
  65 CVIMPSTEnginePresenceSubService_Stub* 
 
236   66 CVIMPSTEnginePresenceSubService_Stub::NewLC( )
  67     {
  68     CVIMPSTEnginePresenceSubService_Stub* self =
  69     new (ELeave) CVIMPSTEnginePresenceSubService_Stub( );
  70     CleanupStack::PushL(self);
  71     self->ConstructL();
  72     return self;
  73     }
  74 
  75 // ---------------------------------------------------------------------------
  76 // CVIMPSTEnginePresenceSubService_Stub::
  77 //      ~CVIMPSTEnginePresenceSubService_Stub()
  78 // ---------------------------------------------------------------------------
  79 //
 
- 80 CVIMPSTEnginePresenceSubService_Stub::~CVIMPSTEnginePresenceSubService_Stub()
  81     {
  82    
  83     }
  84 
  85 
 
- 86  void CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSingleContactL(const TDesC& aContact)
  87     {
  88     
  89     }
  90 // ---------------------------------------------------------------------------
  91 // CVIMPSTEnginePresenceSubService_Stub::
  92 //      ServiceState()
  93 // ---------------------------------------------------------------------------
  94 //
  95 
 
- 96 TVIMPSTEnums::TVIMPSTRegistrationState CVIMPSTEnginePresenceSubService_Stub::SubServiceState() const
  97    {
  98    return TVIMPSTEnums::ESVCERegistered;
  99    }
  100 
  101 // ---------------------------------------------------------------------------
  102 // CVIMPSTEnginePresenceSubService_Stub::
  103 //      Type()
  104 // ---------------------------------------------------------------------------
  105 //
  106 
 
228   107 TVIMPSTEnums::SubServiceType CVIMPSTEnginePresenceSubService_Stub::Type() const
  108     {             
  109    return TVIMPSTEnums::EPresence;
  110    }
  111 
  112 // ---------------------------------------------------------------------------
  113 // CVIMPSTEnginePresenceSubService_Stub::
  114 //      Enabled()
  115 // ---------------------------------------------------------------------------
  116 //
  117 
 
- 118 TBool CVIMPSTEnginePresenceSubService_Stub::Enabled()
  119     {
  120     return  ETrue;    
  121     }
  122 
  123 
  124 
  125 // ---------------------------------------------------------------------------
  126 // CVIMPSTEnginePresenceSubService_Stub::SubscribePresenceOfSingleContactL
  127 // ---------------------------------------------------------------------------
  128 //
 
- 129 void CVIMPSTEnginePresenceSubService_Stub::SubscribePresenceOfSingleContactL( const TDesC& /*aUriOfTheContact*/)
  130     {
  131     
  132     }
  133 // ---------------------------------------------------------------------------
  134 // CVIMPSTEnginePresenceSubService_Stub::
  135 //      UnsubscribePrecenseOfSingleContactL
  136 // ---------------------------------------------------------------------------
  137 //
 
- 138 void CVIMPSTEnginePresenceSubService_Stub::UnSubscribePresenceOfSingleContactL(
  139         const TDesC& /*aUriOfTheContact */)
  140     {
  141    
  142     }
  143 
  144 // ---------------------------------------------------------
  145 // CVIMPSTEnginePresenceSubService_Stub::PublishOwnPresenceL
  146 // 
  147 // ---------------------------------------------------------    
 
12   148 TInt CVIMPSTEnginePresenceSubService_Stub::PublishOwnPresenceL(TVIMPSTEnums::TOnlineStatus /*aStatus*/, 
  149                                             const TDesC& /*aValue*/,
  150                                                const TDesC&  /*aFilename= KNullDesC*/, 
  151                                                const TDesC8& /*aMimetype = KNullDesC8*/,
  152                                                TBool /*aIsAvatar = EFalse*/ )
  153     {
  154    return KErrNone;
  155     }
  156 
  157 
  158 /// ---------------------------------------------------------
  159 // CVIMPSTEnginePresenceSubService_Stub::FetchPresenceFormCache
  160 // 
  161 // ---------------------------------------------------------    
 
- 162 TInt CVIMPSTEnginePresenceSubService_Stub::FetchPresenceFromCache()
  163     {
  164    
  165    return KErrNone;
  166     }
  167 // ---------------------------------------------------------------------------
  168 // CVIMPSTEnginePresenceSubService_Stub::SubscribeToPresenceCacheL
  169 // ---------------------------------------------------------------------------
  170 //  
 
- 171 void CVIMPSTEnginePresenceSubService_Stub::SubscribeToPresenceCacheL(const TDesC& /*aUserId*/ )
  172     {
  173                                               
  174     }
  175 
  176 
  177 // ---------------------------------------------------------------------------
  178 // CVIMPSTEnginePresenceSubService_Stub::UnSubscribeToPresenceCacheL
  179 // ---------------------------------------------------------------------------
  180 //  
 
- 181 void CVIMPSTEnginePresenceSubService_Stub::UnSubscribeToPresenceCacheL(const TDesC& /*aWVID*/)
  182     {
  183                                            
  184     }
  185 
  186 
  187 
  188 
  189 
  190 // ---------------------------------------------------------
  191 // CVIMPSTEnginePresenceSubService_Stub::UnSubscribeForAuthorizationL
  192 //  
  193 // ---------------------------------------------------------    
 
- 194 void  CVIMPSTEnginePresenceSubService_Stub::UnSubscribeForAuthorizationL()
  195     {
  196         }
  197 
  198 // ---------------------------------------------------------
  199 // CVIMPSTEnginePresenceSubService_Stub::SubscribeForAuthorizationL
  200 //  
  201 // ---------------------------------------------------------    
 
- 202 void  CVIMPSTEnginePresenceSubService_Stub::SubscribeForAuthorizationL()
  203     {
  204        }
  205 // ---------------------------------------------------------
  206 // CVIMPSTEnginePresenceSubService_Stub::SendPresenceGrantPresentityResponseL
  207 //  
  208 // ---------------------------------------------------------    
 
  209 TInt CVIMPSTEnginePresenceSubService_Stub::SendPresenceGrantPresentityL( const TDesC& /*aContactId*/ , TBool /*aResponse*/ )
  210     {
  211     return KErrNone;
  212     }  
  213 
  214 // ---------------------------------------------------------
  215 // CVIMPSTEnginePresenceSubService_Stub::IsChangeOwnStatusSupported
  216 // 
  217 // ---------------------------------------------------------        
  218 
 
- 219 TBool CVIMPSTEnginePresenceSubService_Stub::IsChangeOwnStatusSupported() 
  220     {
  221     //TODO:: get the feature supported from ximp and return
  222     return ETrue;
  223     }
  224 
  225 // ---------------------------------------------------------
  226 // CVIMPSTEnginePresenceSubService_Stub::IsStatusMsgSupported
  227 // 
  228 // ---------------------------------------------------------        
 
- 229 TBool CVIMPSTEnginePresenceSubService_Stub::IsStatusMsgSupported()
  230     {
  231     //TODO:: get the feature supported from ximp and return
  232     return ETrue;
  233     }
  234 
  235 // ---------------------------------------------------------
  236 // CVIMPSTEnginePresenceSubService_Stub::IsAvatarSupported
  237 // 
  238 // ---------------------------------------------------------        
 
- 239 TBool CVIMPSTEnginePresenceSubService_Stub::IsAvatarSupported()
  240     {
  241     return EFalse;
  242     }
  243  
  244  // ---------------------------------------------------------
  245 // CVIMPSTEnginePresenceSubService_Stub::SetAvatarSupported
  246 // 
  247 // ---------------------------------------------------------        
 
- 248 void CVIMPSTEnginePresenceSubService_Stub::SetAvatarSupported(TBool /*aSupported*/ )
  249     {
  250    
  251     }
  252 
  253 // ---------------------------------------------------------
  254 // CVIMPSTEnginePresenceSubService_Stub::RegisterPresenceEventObserver
  255 // 
  256 // ---------------------------------------------------------   
  257 //TODO::Should be named as RegisterPresenceEventObserverL
 
126 126   258 void CVIMPSTEnginePresenceSubService_Stub::RegisterPresenceEventObserverL(
  259         MVIMPSTEnginePresenceSubServiceEventObserver* /*aObserver*/)
  260     {
  261     
  262     }
  263 
  264 // ---------------------------------------------------------
  265 // CVIMPSTEnginePresenceSubService_Stub::UnRegisterPresenceEventObserver
  266 // 
  267 // ---------------------------------------------------------   
  268 
 
46 46   269 void CVIMPSTEnginePresenceSubService_Stub::UnRegisterPresenceEventObserver(
  270         MVIMPSTEnginePresenceSubServiceEventObserver* /*aObserver*/)
  271     {
  272     
  273     }   
  274 // ---------------------------------------------------------------------------
  275 // CVIMPSTEnginePresenceSubService_Stub::AddToBlockListL
  276 // ---------------------------------------------------------------------------
  277 //
 
  278 TInt CVIMPSTEnginePresenceSubService_Stub::AddToBlockListL( const TDesC& aUriOfTheContact )
  279     {
  280     TInt err = KErrNotFound;
  281    _LIT(KAt, "@");
  282    TInt loc = aUriOfTheContact.Find(KAt());
  283    if( 0 == aUriOfTheContact.Length())
  284        return KErrNotFound;
  285    
  286    else if(KErrNotFound == loc )
  287       return KErrNotFound;
  288    else
  289        err = KErrNone;
  290     return err;
  291     }
  292 // ---------------------------------------------------------------------------
  293 // CVIMPSTEnginePresenceSubService_Stub::GetBlockedList
  294 // ---------------------------------------------------------------------------
  295 //
 
36   296 RPointerArray<HBufC>* CVIMPSTEnginePresenceSubService_Stub::GetBlockedList()
  297     {
  298     RPointerArray<HBufC> *blockedlist =  new (ELeave) RPointerArray<HBufC>;
  299     
  300     _LIT(KText,"blocked@presence");
  301         HBufC* buddyId = HBufC::NewL(32);
  302         CleanupStack::PushL(buddyId);
  303         *buddyId = KText;
  304         blockedlist->Append(buddyId);
  305 
  306         CleanupStack::Pop();
  307       
  308     return blockedlist;
  309     }
  310 // ---------------------------------------------------------------------------
  311 // CVIMPSTEnginePresenceSubService_Stub::FetchBlockedListFromServerL
  312 // ---------------------------------------------------------------------------
  313 //
 
- 314 void CVIMPSTEnginePresenceSubService_Stub::FetchBlockedListFromServerL(MVIMPSTEngineBlockedListFetchEventObserver* aOb)
  315     {
  316     
  317     }
  318 // ---------------------------------------------------------------------------
  319 // CVIMPSTEnginePresenceSubService_Stub::RemoveFromBlockListL
  320 // ---------------------------------------------------------------------------
  321 //
 
  322 TInt CVIMPSTEnginePresenceSubService_Stub::RemoveFromBlockListL( const TDesC& aUriOfTheContact )
  323     {
  324     TInt err = KErrNotFound;
  325     _LIT(KAt, "@");
  326     TInt loc = aUriOfTheContact.Find(KAt());
  327     if( 0 == aUriOfTheContact.Length())
  328       return KErrNotFound;
  329    else if(KErrNotFound == loc )
  330        return KErrNotFound;
  331    else
  332        err = KErrNone;
  333      return err;
  334     }
 
- 335  void CVIMPSTEnginePresenceSubService_Stub::FetchPresenceOfSinleContactL(const TDesC& aUserId)
  336     {
  337     }
  338  
 
- 339  void CVIMPSTEnginePresenceSubService_Stub::UpdatePresenceStateL()
  340     {
  341        
  342     }
  343 // End of file
***TER 40% (12/30) of SOURCE FILE s_vimpstenginepresencesubservice.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD17.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD17.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,186 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #17/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstprocessarrayitem.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 11)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_vimpstcmdobserver.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 1 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_vimpstprocessarrayItem.h"
  21 #include "tvimpstenums.h"
  22 
  23     
  24     
 
- 25     MVIMPSTProcessArrayItem* vimpstprocessarrayitem_stub::NewL(TDesC & aItemName)
  26        {
  27        MVIMPSTProcessArrayItem* item = new(ELeave) vimpstprocessarrayitem_stub(aItemName);
  28        return item;
  29        }
  30   
 
- 31   vimpstprocessarrayitem_stub::vimpstprocessarrayitem_stub(TDesC & aItemName)
  32   :iItemName(aItemName)
  33   {
  34      
  35   }
  36   
  37   
  38   
  39      
  40      
  41      /**
  42       * Sets the name of the listbox item 
  43       * @param aName: Name of the listbox item to be set
  44       * @return void
  45       */
  46 
  47      
  48 
  49      /**
  50       * gets the messages pending status of the contact item 
  51       * @return iSMsgPending: true if the contact has pending messages 
  52       * else false
  53       */
  54      
  55          
  56 
 
- 57    TBool vimpstprocessarrayitem_stub::IsMsgPending() 
  58       {
  59       return EFalse;
  60       }
  61   
 
- 62    void vimpstprocessarrayitem_stub::SetMsgPending(TBool aMsgPending) 
  63       {
  64       
  65       }
  66     /**
  67     * Returns the default type of the listbox item 
  68     * @return TEnumsPC::TItem: type of the listbox item as either EContactitem, EContactListItem etc
  69     */
 
- 70      TVIMPSTEnums::TItem vimpstprocessarrayitem_stub::Type() 
  71         {
  72         return TVIMPSTEnums::EContactItem;
  73         }
  74     
  75     /**
  76     * Returns the name of the listbox item 
  77     * @return TPtrC: name of the listbox item to be displayed
  78     */
  79      
  80     /**
  81     * Sets the name of the listbox item 
  82     * @param aName: Name of the listbox item to be set
  83     * @return void
  84     */
  85     //virtual void SetItemNameText(const TDesC& aName) = 0;
  86         
  87     /**
  88     * Returns the array index of the listbox item on engine/storage side
  89     * @return TInt: index of the listbox item on engine/storage side
  90     */
 
- 91      TInt vimpstprocessarrayitem_stub::GetItemIndex() 
  92      {
  93         return 0;
  94      }
  95     
  96     /**
  97     * return the VPBK Contact Link
  98     */
 
- 99      MVPbkContactLink* vimpstprocessarrayitem_stub::ContactLink() 
  100      {
  101         return NULL;
  102      }
  103     
  104     
  105     /**
  106     * Sets the on engine/storage side index of the listbox item 
  107     * @param aIndex: index of the listbox item on engine/storage side
  108     * @return void
  109     */
 
- 110     void vimpstprocessarrayitem_stub::SetItemIndex(TInt aIndex) 
  111     {
  112        
  113     }
  114     
  115     /**
  116     * Returns the user id of the listbox item 
  117     * @return TPtrC: user id of the listbox item.
  118     */
 
- 119     TPtrC vimpstprocessarrayitem_stub::GetItemUserId() 
  120     {
  121     TPtrC ptr;
  122     return ptr;   
  123     }
  124     /**
  125      * Returns the avatar index of the listbox item 
  126      * @return TInt: avatar index of the listbox item.
  127      */
 
- 128     TInt  vimpstprocessarrayitem_stub::AvatarIndex() 
  129     {
  130        return 0;
  131     }
  132     
  133     /**
  134      * sets the avatar index of the listbox item 
  135      * @param aAvatarIndex: avatar index to be set 
  136      */
 
- 137     void  vimpstprocessarrayitem_stub::SetAvatarIndex(TInt aAvatarIndex )
  138     {
  139        
  140     }
  141    
  142    
  143     
  144     
  145     
  146 
  147 // End of File
***TER 0% (0/11) of SOURCE FILE s_vimpstprocessarrayitem.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD18.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD18.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,220 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #18/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontact.cpp
+Instrumentation mode: function
+TER: 67 % ( 10/ 15)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : cvimpststoragecontact.cpp
  4 *  Part of     : IMUiserviceTab / vimpststorage
  5 *  Description : Implementation of contact data container
  6 *  Version     : %version: 29 %
  7 *
  8 *  Copyright (c) 2008 Nokia Corporation.
  9 *  This material, including documentation and any related 
  10 *  computer programs, is protected by copyright controlled by 
  11 *  Nokia Corporation. All rights are reserved. Copying, 
  12 *  including reproducing, storing, adapting or translating, any 
  13 *  or all of this material requires the prior written consent of 
  14 *  Nokia Corporation. This material also contains confidential 
  15 *  information which may not be disclosed to others without the 
  16 *  prior written consent of Nokia Corporation.
  17 * ==============================================================================
  18 */
  19 
  20 
  21 // INCLUDE FILES
  22 #include "s_vimpststoragecontact.h"
  23 #include <MVPBKSTORECONTACT.H>
  24  #include "s_MVPbkContactLinkstub.h"
  25  
  26 // ============================ MEMBER FUNCTIONS ===============================
  27 
  28 
  29 
  30 // -----------------------------------------------------------------------------
  31 // CVIMPSTStorageContact::NewL
  32 // Two-phased constructor.
  33 // -----------------------------------------------------------------------------
  34 //
 
314   35 MVIMPSTStorageContact* vimpststoragecontact_stub::NewL()
  36     {
  37     MVIMPSTStorageContact* contact = new(ELeave)vimpststoragecontact_stub;
  38         return contact;
  39     }
  40 
  41 // Destructor
 
  42 vimpststoragecontact_stub::~vimpststoragecontact_stub()
  43     {
  44     
  45     }
  46     
  47 // -----------------------------------------------------------------------------
  48 // CVIMPSTStorageContact::UserId
  49 // From MVIMPSTStorageContact
  50 // -----------------------------------------------------------------------------
  51 //
 
300   52 const TDesC& vimpststoragecontact_stub::UserId() const
  53     {
  54     return KDummy();
  55     }
  56 
  57 // -----------------------------------------------------------------------------
  58 // CVIMPSTStorageContact::UserId
  59 // From MVIMPSTStorageContact
  60 // -----------------------------------------------------------------------------
  61 //
 
154   62 const TDesC& vimpststoragecontact_stub::Name() const
  63 {
  64 return KDummy();
  65 }
  66 // -----------------------------------------------------------------------------
  67 // CVIMPSTStorageContact::OnlineStatus
  68 // From MVIMPSTStorageContact
  69 // -----------------------------------------------------------------------------
  70 //
 
136   71 TVIMPSTEnums::TOnlineStatus vimpststoragecontact_stub::OnlineStatus() const
  72 {
  73 TVIMPSTEnums::TOnlineStatus status = TVIMPSTEnums::EOffline;
  74 return status;       
  75 }
  76 
  77 
  78 // -----------------------------------------------------------------------------
  79 // CVIMPSTStorageContact::SetOnlineStatus
  80 // From MVIMPSTStorageContact
  81 // -----------------------------------------------------------------------------
  82 //
 
- 83 void vimpststoragecontact_stub::SetOnlineStatus( 
  84                         TVIMPSTEnums::TOnlineStatus /*aOnlineStatus*/ )
  85     {
  86       //iPresenceStatus = aOnlineStatus;
  87     }
  88         
  89 
  90 // -----------------------------------------------------------------------------
  91 // CVIMPSTStorageContact::StatusText
  92 // From MVIMPSTStorageContact
  93 // -----------------------------------------------------------------------------
  94 //
 
  95 const TDesC& vimpststoragecontact_stub::StatusText() const
  96     {
  97     return KDummy();
  98     }
  99 
  100 // -----------------------------------------------------------------------------
  101 // CVIMPSTStorageContact::SetStatusTextL
  102 // From MVIMPSTStorageContact
  103 // -----------------------------------------------------------------------------
  104 //
 
- 105 void vimpststoragecontact_stub::SetStatusTextL( const TDesC& /*aStatusText*/ )
  106     {
  107     
  108     }
  109 
  110 // -----------------------------------------------------------------------------
  111 // CVIMPSTStorageContact::SetAvatarContentL
  112 // From MVIMPSTStorageContact
  113 // -----------------------------------------------------------------------------
  114 //
 
- 115 void vimpststoragecontact_stub::SetAvatarContentL( const TDesC8& /*aAvatarContent*/, MVIMPSTStorageVPbkContactStore& /*aVPPkStoreHandler*/ )
  116     {
  117     
  118     }
  119 
  120    
  121 // -----------------------------------------------------------------------------
  122 // CVIMPSTStorageContact::SetUserIdL
  123 // From MVIMPSTStorageExtendedStorageContact
  124 // -----------------------------------------------------------------------------
  125 //
 
- 126 void vimpststoragecontact_stub::SetUserIdL( const TDesC& /*aUserId*/ )
  127     {
  128     
  129     }
  130 
  131 // -----------------------------------------------------------------------------
  132 // CVIMPSTStorageContact::SetNameL
  133 // From MVIMPSTStorageExtendedStorageContact
  134 // -----------------------------------------------------------------------------
  135 //
 
- 136 void vimpststoragecontact_stub::SetNameL( const TDesC& /*aName*/ )
  137     {
  138     
  139     }
  140 // ---------------------------------------------------------------------------
  141 // CVIMPSTStorageContact::ContactLink()
  142 // ---------------------------------------------------------------------------
  143 // 
 
154   144 MVPbkContactLink* vimpststoragecontact_stub::ContactLink() const
  145     {
  146     MVPbkContactLink* link = CVPbkContactLinkStub::NewL();
  147     return link;
  148     }
  149  
  150 // ---------------------------------------------------------------------------
  151 // CVIMPSTStorageContact::AvatarContent
  152 // ---------------------------------------------------------------------------
  153 //  
 
  154 const TDesC8& vimpststoragecontact_stub::AvatarContent() const
  155     {
  156     _LIT8(Kavatar,"avatar");
  157     return Kavatar();
  158     }
  159 // ---------------------------------------------------------------------------
  160 // CVIMPSTStorageContact::SetAvatarIndex()
  161 // ---------------------------------------------------------------------------
  162 // 
 
  163 void vimpststoragecontact_stub::SetAvatarIndex(TInt aIndex ) 
  164     {
  165    iAvatarIndex = aIndex;
  166     }
  167  
  168 // ---------------------------------------------------------------------------
  169 // CVIMPSTStorageContact::AvatarIndex
  170 // ---------------------------------------------------------------------------
  171 //  
 
  172 TInt vimpststoragecontact_stub::AvatarIndex() const
  173     {
  174     return 1;
  175     }
  176 
  177 //  End of File  
***TER 67% (10/15) of SOURCE FILE s_vimpststoragecontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD19.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD19.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,271 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #19/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontactlist.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 21)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : cvimpststoragecontactlist.cpp
  4 *  Part of     : IMUiServiceTab / vimpststorage
  5 *  Description : Contact list container implementation
  6 *  Version     : %version: ou1s60rt#15.1.7 %
  7 *
  8 *  Copyright (c) 2008 Nokia Corporation.
  9 *  This material, including documentation and any related 
  10 *  computer programs, is protected by copyright controlled by 
  11 *  Nokia Corporation. All rights are reserved. Copying, 
  12 *  including reproducing, storing, adapting or translating, any 
  13 *  or all of this material requires the prior written consent of 
  14 *  Nokia Corporation. This material also contains confidential 
  15 *  information which may not be disclosed to others without the 
  16 *  prior written consent of Nokia Corporation.
  17 * ==============================================================================
  18 */
  19 
  20 // INCLUDE FILES
  21 #include "s_vimpststoragecontactlist.h"
  22 
  23 // ============================ MEMBER FUNCTIONS ===============================    
  24 // -----------------------------------------------------------------------------
  25 // CVIMPSTStorageContactList::ListId
  26 // -----------------------------------------------------------------------------
  27 //
 
- 28 const TDesC& vimpststoragecontactlist_stub::ListId() const
  29     {
  30     return KNullDesC;    
  31     }
  32     
  33 // -----------------------------------------------------------------------------
  34 // CVIMPSTStorageContactList::DisplayName
  35 // -----------------------------------------------------------------------------
  36 //
 
- 37 TPtrC vimpststoragecontactlist_stub::DisplayName() const
  38     {
  39     return NULL;
  40     }
  41 // -----------------------------------------------------------------------------
  42 // CVIMPSTStorageContactList::AddStorageContactToCacheL
  43 // -----------------------------------------------------------------------------
  44 //
 
- 45 TInt vimpststoragecontactlist_stub::AddStorageContactToCacheL( MVIMPSTStorageContact* aContact, TInt& aIndex )
  46     {
  47     
  48     }
  49  
  50 // -----------------------------------------------------------------------------
  51 // CVIMPSTStorageContactList::RemoveContactFromCacheL
  52 // -----------------------------------------------------------------------------
  53 //
 
- 54 TInt vimpststoragecontactlist_stub::RemoveContactFromCacheL( const TDesC& aContactId, TInt& aIndex )
  55     {
  56     
  57     }
  58 
  59 // -----------------------------------------------------------------------------
  60 // CVIMPSTStorageContactList::RemoveContactFromCacheL
  61 // -----------------------------------------------------------------------------
  62 //
 
- 63 TInt vimpststoragecontactlist_stub::RemoveContactFromCacheL( const MVPbkContactLink& aContactLink, TInt& index )
  64     {
  65     
  66     }    
  67  // -----------------------------------------------------------------------------
  68 // CVIMPSTStorageContactList::FindContact
  69 // -----------------------------------------------------------------------------
  70 //
 
- 71 TInt vimpststoragecontactlist_stub::ContactCount( TBool aSkipOfflineContacts,
  72                      TBool aSkipBlocekedContacts ) const
  73     {
  74     
  75     }
  76             
  77 // -----------------------------------------------------------------------------
  78 // CVIMPSTStorageContactList::FindContactIndex
  79 // -----------------------------------------------------------------------------
  80 //
 
- 81 TInt vimpststoragecontactlist_stub::FindContactIndex( const TDesC& aUserId,
  82                                        TInt& aOrderedIndex ) const
  83     {
  84      
  85     }
  86 
  87 // -----------------------------------------------------------------------------
  88 // CVIMPSTStorageContactList::FindContactEntry
  89 // -----------------------------------------------------------------------------
  90 //
 
- 91 TInt vimpststoragecontactlist_stub::FindContactEntry( const MVIMPSTStorageContact* aContact ) const
  92     {
  93     
  94     }
  95 // -----------------------------------------------------------------------------
  96 // CVIMPSTStorageContactList::Sort
  97 // -----------------------------------------------------------------------------
  98 //
 
- 99 void vimpststoragecontactlist_stub::Sort()
  100     {
  101     
  102     }
  103 
  104 // -----------------------------------------------------------------------------
  105 // CVIMPSTStorageContactList::ResortContact
  106 // -----------------------------------------------------------------------------
  107 //
 
- 108 void vimpststoragecontactlist_stub::ResortContact( MVIMPSTStorageContact* aContact )
  109     {
  110     
  111     }
  112    
  113 // -----------------------------------------------------------------------------
  114 // CVIMPSTStorageContactList::FindIndexOfContact
  115 // From MVIMPSTContactList
  116 // -----------------------------------------------------------------------------
  117 //
 
- 118 TInt vimpststoragecontactlist_stub::FindIndexOfContact( const MVIMPSTStorageContact* aContact,
  119                             TVIMPSTEnums::TFilterType aFilter  ) const
  120     {    
  121     
  122     }
  123        
  124 // -----------------------------------------------------------------------------
  125 // CVIMPSTStorageContactList::Count
  126 // From MVIMPSTStorageContactList
  127 // -----------------------------------------------------------------------------
  128 //
 
- 129 TInt vimpststoragecontactlist_stub::Count() const
  130     {
  131     return 1;
  132     }
  133     
  134 // -----------------------------------------------------------------------------
  135 // CVIMPSTStorageContactList::OnlineCount
  136 // From MVIMPSTStorageContactList
  137 // -----------------------------------------------------------------------------
  138 //
 
- 139 TInt vimpststoragecontactlist_stub::OnlineCount() const
  140     {
  141     
  142     }
  143 // -----------------------------------------------------------------------------
  144 // CVIMPSTStorageContactList::operator[]
  145 // From MVIMPSTStorageContactList
  146 // -----------------------------------------------------------------------------
  147 //
 
- 148 MVIMPSTStorageContact& vimpststoragecontactlist_stub::operator[]( TInt aIndex ) const
  149     {
  150     
  151     }
  152     
  153 // -----------------------------------------------------------------------------
  154 // CVIMPSTStorageContactList::OnlineContact
  155 // From MVIMPSTContactList
  156 // -----------------------------------------------------------------------------
  157 //
 
- 158 MVIMPSTStorageContact& vimpststoragecontactlist_stub::OnlineContact( TInt aIndex ) const
  159     {
  160     
  161     }
  162  
  163 // -----------------------------------------------------------------------------
  164 // CVIMPSTStorageContactList::FilteredContact
  165 // From MVIMPSTContactList
  166 // -----------------------------------------------------------------------------
  167 //
 
- 168 MVIMPSTStorageContact& vimpststoragecontactlist_stub::FilteredContact( 
  169                 TInt aIndex, TVIMPSTEnums::TFilterType aFilter ) const
  170    {
  171     
  172    }
  173 
  174 // -----------------------------------------------------------------------------
  175 // CVIMPSTStorageContactList::FilteredCount
  176 // From MVIMPSTContactList
  177 // -----------------------------------------------------------------------------
  178 //
 
- 179 TInt vimpststoragecontactlist_stub::FilteredCount( 
  180                             TVIMPSTEnums::TFilterType aFilter ) const
  181    {
  182     return 1;
  183      }
  184 
  185 // -----------------------------------------------------------------------------
  186 // CVIMPSTStorageContactList::FilterAllowsContact
  187 // -----------------------------------------------------------------------------
  188 //
 
- 189 TBool vimpststoragecontactlist_stub::FilterAllowsContact( const MVIMPSTStorageContact* aContact,
  190                              TVIMPSTEnums::TFilterType aFilter ) const
  191     {
  192     return ETrue;
  193     }
  194 
  195 // -----------------------------------------------------------------------------
  196 // CVIMPSTStorageContactList::FindContact
  197 // -----------------------------------------------------------------------------
  198 //
 
- 199 MVIMPSTStorageContact* vimpststoragecontactlist_stub::FindContact( const TDesC& aContactId )
  200     {
  201     //return NULL;
  202     }
  203 // -----------------------------------------------------------------------------
  204 // CVIMPSTStorageContactList::FindContactByContactLinkL
  205 // -----------------------------------------------------------------------------
  206 //
 
- 207 MVIMPSTStorageContact* vimpststoragecontactlist_stub::FindContactByContactLink( const MVPbkContactLink& aContactLink )
  208     {
  209     //return NULL;
  210     }
  211     
  212 // -----------------------------------------------------------------------------
  213 // CVIMPSTStorageContactList::FindContactByLinkL
  214 // -----------------------------------------------------------------------------
  215 //
 
- 216 TInt vimpststoragecontactlist_stub::FindContactByLinkL( const MVPbkContactLink& aContactLink,
  217                                           TInt& aIndexOrderedArray ) const
  218     {
  219     return NULL;
  220     }        
  221     
  222 //  End of File
***TER 0% (0/21) of SOURCE FILE s_vimpststoragecontactlist.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD2.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,739 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #2/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_processarray_utest.cpp
+Instrumentation mode: function
+TER: 100 % ( 0/ 0)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : vimpstcmdprocess_utestCases.cpp
  4 *  Part of     : vimpstcmdprocess_utest
  5 *
  6 *  Description : vimpstcmdprocess_utest test module.
  7 *  Version:   %version: 6 %
  8 *
  9 *  Copyright (C) 2002 - 2007 Nokia Corporation.
  10 *  This material, including documentation and any related 
  11 *  computer programs, is protected by copyright controlled by 
  12 *  Nokia Corporation. All rights are reserved. Copying, 
  13 *  including reproducing, storing,  adapting or translating, any 
  14 *  or all of this material requires the prior written consent of 
  15 *  Nokia Corporation. This material also contains confidential 
  16 *  information which may not be disclosed to others without the 
  17 *  prior written consent of Nokia Corporation.
  18 *
  19 * ============================================================================
  20 */
  21 
  22 /**
  23  * GLOBAL VARIABLES SECTION
  24  */
  25 #ifdef TEST_VAR_DECLARATIONS
  26 #endif
  27 /**
  28  * END OF GLOBAL VARIABLES SECTION
  29  */
  30 
  31 /**
  32  * TEST CASES SECTION
  33  */
  34 #ifdef TEST_CASES
  35 /**
  36  * STIF_SETUP defines activities needed before every test case.
  37  */
  38 STIF_SETUP
  39 {
  40 }
  41 
  42 /**
  43  * STIF_TEARDOWN defines activities needed after every test case
  44  */
  45 STIF_TEARDOWN
  46 {
  47 }
  48 
  49 /**
  50  * STIF_TESTDEFINE defines a test case
  51  *
  52  *  Example test case - length of string is checked.
  53  *  The only argument of macro is a name of test case.
  54  */
  55 STIF_TESTDEFINE(t_ProcArr_HandleChatMessageEventL)
  56     {
  57     //void  HandleChatMessageEventL(TVIMPSTEnums::TIMEventType aEventType ,const TDesC& aSender );
  58     vimpstengine_stub engin;
  59     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  60     procArray->iFetchCompleted = ETrue;
  61     vimpststoragecontactlist_stub contactlist;
  62    // vimpststoragecontact_stub contact;
  63 
  64     _LIT(KText,"Nutan@presence");
  65     HBufC* buddyId = HBufC::NewL(32);
  66     CleanupStack::PushL(buddyId);
  67     *buddyId = KText;
  68     
  69     MVIMPSTProcessArrayObserver* ob = vimpstprocessarrayobserver_stub::NewL();
  70     procArray->AddObserver(ob);
  71     procArray->iContactInterface = vimpstserviceview_stub::NewL();
  72     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMRequestCompleted,buddyId->Des() );
  73     STIF_ASSERT_NOT_NULL(procArray);
  74 
  75     //procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMNewMessage,buddyId->Des() );
  76     //STIF_ASSERT_NOT_NULL(procArray);
  77     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  78        CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  79                const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  80 
  81        procArray->iItemArray.Append(contactItem );
  82     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMUnreadMessage,buddyId->Des() );
  83     STIF_ASSERT_NOT_NULL(procArray);
  84 
  85     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMUnreadChange,buddyId->Des() );
  86     STIF_ASSERT_NOT_NULL(procArray);
  87 
  88    // procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMNewChat,buddyId->Des() );
  89    // STIF_ASSERT_NOT_NULL(procArray);
  90 
  91     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMChatStarted,buddyId->Des() );
  92     STIF_ASSERT_NOT_NULL(procArray);
  93 
  94     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMChatClosed,buddyId->Des() );
  95     STIF_ASSERT_NOT_NULL(procArray);
  96 
  97     procArray->HandleChatMessageEventL(TVIMPSTEnums::EIMAllChatClosed,buddyId->Des() );
  98     CleanupStack::PopAndDestroy(buddyId);
  99     STIF_ASSERT_NOT_NULL(procArray);
  100 
  101 
  102     }
  103 
  104 STIF_TESTDEFINE(t_ProcArr_HandleAddRequestEventL)
  105     {
  106     //void  HandleAddRequestEventL(TVIMPSTEnums::TOperationType aType, const TDesC& aRequesterId);
  107     vimpstengine_stub engin;
  108     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  109 
  110     _LIT(KText,"addcontact@presence");
  111     HBufC* buf = HBufC::NewL(32);
  112     CleanupStack::PushL(buf);
  113     *buf = KText;
  114     ///////Test case for Add request//////
  115     procArray->HandleAddRequestEventL(TVIMPSTEnums::EAddItem,buf->Des(),buf->Des());
  116     STIF_ASSERT_NOT_NULL(procArray);
  117 
  118     for(TInt i=0;i<3;i++)
  119         {
  120         procArray->HandleAddRequestEventL(TVIMPSTEnums::EAddItem,buf->Des(),buf->Des());
  121         }
  122     TInt count = procArray->iAddRequestArray.Count();
  123     STIF_ASSERT_EQUALS(1,count);
  124 
  125     ///////Test case for Update request//////
  126     //procArray->HandleAddRequestEventL(TVIMPSTEnums::EUpdateItem,buf->Des());
  127    // count = procArray->iAddRequestArray.Count();
  128   //  CleanupStack::PopAndDestroy(buf);
  129    // STIF_ASSERT_EQUALS(1,count);
  130     MVIMPSTProcessArrayObserver* ob = vimpstprocessarrayobserver_stub::NewL();
  131         procArray->AddObserver(ob);
  132     ///////Test case for Remove request//////
  133     procArray->HandleAddRequestEventL(TVIMPSTEnums::ERemoveItem,buf->Des(),buf->Des());
  134     count = procArray->iAddRequestArray.Count();
  135     CleanupStack::PopAndDestroy(buf);
  136     STIF_ASSERT_EQUALS(0,count);
  137     }
  138 
  139 /* No test case for functions below as they will not leave or return any value
  140 void AddObserver(MVIMPSTProcessArrayObserver* aObserver)  ;
  141 void RemoveObserver() ;
  142 void ResetArray();
  143 void MapContactListPositions(RArray<TInt>& aPositionArray );
  144 void RemoveFriendRequestL(const TDesC& aRequesterId);
  145 void SetOwnAvatarIndexL( TInt aAvatarIndex );
  146 void ResetOpenConversationPendingMsg(); 
  147  */
  148 STIF_TESTDEFINE(t_ProcArr_Count)
  149     {
  150     vimpstengine_stub engin;
  151     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  152     _LIT(KText,"addcontact@presence");
  153     TPtrC buf = KText();
  154     procArray->HandleAddRequestEventL(TVIMPSTEnums::EAddItem,buf,buf);
  155 
  156     for(TInt i=0;i<3;i++)
  157         {
  158         procArray->HandleAddRequestEventL(TVIMPSTEnums::EAddItem,buf,buf);
  159         }
  160     TInt count = procArray->iAddRequestArray.Count();
  161     STIF_ASSERT_EQUALS(1,count);
  162     }
  163 
  164 STIF_TESTDEFINE(t_ProcArr_IsSubServiceSupportedL)
  165     {
  166     //TBool IsSubServiceSupportedL( TVIMPSTEnums::SubServiceType aType  ) const ;
  167     vimpstengine_stub engin;
  168     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  169     TBool result;
  170     result = procArray->IsSubServiceSupportedL(TVIMPSTEnums::EVoip);
  171     STIF_ASSERT_EQUALS(1,result);
  172     result = procArray->IsSubServiceSupportedL(TVIMPSTEnums::EPresence);
  173     STIF_ASSERT_EQUALS(1,result);
  174     result = procArray->IsSubServiceSupportedL(TVIMPSTEnums::EIM);
  175     STIF_ASSERT_EQUALS(1,result);
  176     result = procArray->IsSubServiceSupportedL(TVIMPSTEnums::ELast);
  177     STIF_ASSERT_EQUALS(1,result);
  178     }
  179 
  180 STIF_TESTDEFINE(t_ProcArr_GetType)
  181     {
  182     // virtual TVIMPSTEnums::TItem GetType(TInt aIndex) const;
  183     vimpstengine_stub engin;
  184     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  185 
  186     /*HBufC* contactData = HBufC::NewL(512);
  187     TPtr contactDataPtr( contactData->Des() );
  188     contactDataPtr = ;
  189      */
  190     _LIT(KText,"Nutan@presence");
  191     TDesC contactData = KText();
  192     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  193     CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  194             const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  195 
  196     procArray->iItemArray.Append(contactItem );
  197 
  198     //EInvalid = -1, /* unknown Item */
  199     //EOwnStatusItem, /* Own item */
  200     //EContactItem, /* Contact Item */
  201     //EContactListItem, /* ContactList Item */
  202     //EFriendRequestItem,/* Friend request item */
  203     //EUnknonContactItem, /* contact item but not in friend list */
  204 
  205     TInt index = 0;
  206     TVIMPSTEnums::TItem itemType = procArray->GetType( index );
  207 
  208     STIF_ASSERT_EQUALS(TVIMPSTEnums::EOwnStatusItem,itemType);
  209     index = 2;
  210     itemType = procArray->GetType( index );
  211     STIF_ASSERT_EQUALS(TVIMPSTEnums::EContactItem,itemType);
  212     procArray->iItemArray.ResetAndDestroy();
  213     }
  214 
  215 STIF_TESTDEFINE(t_ProcArr_GetItemNameText)
  216     {
  217     //virtual TPtrC GetItemNameText(TInt aIndex); 
  218     vimpstengine_stub engin;
  219     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  220     //_LIT(KDummy,"dummy@gmail.com");
  221     _LIT(KDummy1,"dummy1@gmail.com");
  222    
  223     TPtrC contactData = KDummy1();
  224     //TDesC contactData = KDummy1;
  225     CVIMPSTProcessOwnDataItem* ownitem = CVIMPSTProcessOwnDataItem::NewL(contactData);
  226        procArray->iItemArray.Append(ownitem );
  227        MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  228            CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  229                    const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  230            procArray->iItemArray.Append(contactItem );
  231          
  232     TInt itemindex = 2;
  233     TPtrC itemname = procArray->GetItemNameText(itemindex);
  234     STIF_ASSERT_EQUALS( contactData,itemname);
  235 
  236     itemindex = -1;
  237     TPtrC itemname1 = procArray->GetItemNameText(itemindex);
  238     
  239     procArray->iItemArray.ResetAndDestroy();
  240     TPtrC nulldata = KNullDesC();
  241     STIF_ASSERT_EQUALS(nulldata,itemname1);
  242    // STIF_ASSERT_NULL(itemname1);
  243     }
  244 
  245 STIF_TESTDEFINE(t_ProcArr_Set_Get_LoginStateL)
  246     {
  247     //virtual TVIMPSTEnums::TVIMPSTRegistrationState GetLoginState();
  248     vimpstengine_stub engin;
  249     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  250 
  251     procArray->SetLoginStateL( TVIMPSTEnums::ESVCERegistered );
  252     TVIMPSTEnums::TVIMPSTRegistrationState aState = procArray->GetLoginState();
  253 
  254     STIF_ASSERT_EQUALS( TVIMPSTEnums::ESVCERegistered,aState);
  255     }
  256 
  257 STIF_TESTDEFINE(t_ProcArr_ContactLink)
  258     {
  259     //MVPbkContactLink* ContactLink(TInt aIndex);
  260     vimpstengine_stub engin;
  261     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  262 
  263     procArray->ContactLink( 1 );
  264     STIF_ASSERT_EQUALS( 1,1);
  265     }
  266 
  267 STIF_TESTDEFINE(t_ProcArr_GetOnlineStatusL)
  268     {
  269     //TVIMPSTEnums::TOnlineStatus GetOnlineStatusL(TInt aIndex);
  270     vimpstengine_stub engin;
  271     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  272     /*
  273                 EUnknown = -1, // unknown status 
  274                 EOffline, // Offline status 
  275                 EOnline, // Online status 
  276                 EInvisible, // Invisible status 
  277                 EAway, // Away status 
  278                 EBusy, // Busy status 
  279                 EOnPhone,
  280                 EDoNotDisturb,
  281                 EPending,
  282                 EBlocked
  283      */
  284     TInt index = 0;
  285     TVIMPSTEnums::TOnlineStatus aState = procArray->GetOnlineStatusL(index);
  286 
  287     STIF_ASSERT_EQUALS( TVIMPSTEnums::EOffline,aState);
  288     }
  289 
  290 STIF_TESTDEFINE(t_ProcArr_StatusTextL)
  291     {
  292     //const TDesC& StatusTextL(TInt aIndex ) ;
  293     vimpstengine_stub engin;
  294     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  295     TInt index = 0;
  296     _LIT(temptext, "dummy");
  297     TPtrC statustxt = KDummy(); 
  298     TPtrC statustext = procArray->StatusTextL(index);
  299     STIF_ASSERT_EQUALS( statustxt,statustext);
  300     }
  301 
  302 STIF_TESTDEFINE(t_ProcArr_IsMsgPending)
  303     {
  304     /*//TBool IsMsgPending(TInt aIndex);
  305     //void ResetPendingMsg(TInt aIndex);
  306     vimpstengine_stub engin;
  307     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  308     TInt index = 0;
  309     TBool pendingMsg = procArray->IsMsgPending(index);
  310     STIF_ASSERT_EQUALS( 0,pendingMsg);
  311     procArray->ResetPendingMsg(index);
  312     STIF_ASSERT_EQUALS( 0,pendingMsg);*/
  313     }
  314 
  315 STIF_TESTDEFINE(t_ProcArr_FindAnyContact)
  316     {
  317     //TBool FindAnyContact( const TDesC& aContactId );
  318     vimpstengine_stub engin;
  319     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  320     _LIT(KText,"dummy@presence");
  321     TPtrC contactData = KText();
  322     TBool contactExist = procArray->FindAnyContact(contactData);
  323     STIF_ASSERT_EQUALS( 1,contactExist);
  324     
  325     TPtrC contactData1 = KNullDesC();
  326     contactExist = procArray->FindAnyContact(contactData1);
  327     STIF_ASSERT_EQUALS( 0,contactExist);
  328     }
  329 
  330 STIF_TESTDEFINE(t_ProcArr_FindAnyContactServiceField)
  331     {
  332     vimpstengine_stub engin;
  333         CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  334         _LIT(KText,"dummy@presence");
  335         TPtrC contactData = KText();
  336         TBool contactExist = procArray->FindAnyContactServiceField(contactData);
  337         STIF_ASSERT_EQUALS( 1,contactExist);
  338         
  339         TPtrC contactData1 = KNullDesC();
  340         contactExist = procArray->FindAnyContactServiceField(contactData1);
  341         STIF_ASSERT_EQUALS( 0,contactExist);
  342     //TBool FindAnyContactServiceField( const TDesC& aContactId );
  343    
  344     }
  345 
  346 STIF_TESTDEFINE(t_ProcArr_FindAnyAddRequest)
  347     {
  348     //TBool FindAnyAddRequest( const TDesC& aRequesterId );
  349     vimpstengine_stub engin;
  350     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  351     _LIT(KText,"Nutan@presence");
  352     TPtrC contactData = KText();
  353     CVIMPSTProcessFriendRequestItem* frn = CVIMPSTProcessFriendRequestItem::NewL(contactData,contactData);
  354     procArray->iAddRequestArray.AppendL(frn);
  355     TBool addRequest = procArray->FindAnyAddRequest(contactData);
  356     STIF_ASSERT_EQUALS( 1,addRequest);
  357     _LIT(KText1,"Nutan1@presence");
  358     TPtrC contactData1 = KText1();
  359     addRequest = procArray->FindAnyAddRequest(contactData1);
  360     STIF_ASSERT_EQUALS( 0,addRequest);
  361     }
  362 
  363 STIF_TESTDEFINE(t_ProcArr_IsContactBlocked)
  364     {
  365     //TBool IsContactBlocked( const TDesC& aRequesterId );
  366     vimpstengine_stub engin;
  367     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  368     _LIT(KText,"blocked@presence");
  369     TPtrC contactData = KText();
  370     TBool contactBlocked = procArray->IsContactBlocked(contactData);
  371     STIF_ASSERT_EQUALS( 1,contactBlocked);
  372     _LIT(KText1,"Nutan1@presence");
  373     TPtrC contactData1 = KText1();
  374     contactBlocked = procArray->IsContactBlocked(contactData1);
  375     STIF_ASSERT_EQUALS( 0,contactBlocked);
  376     }
  377 
  378 STIF_TESTDEFINE(t_ProcArr_IsConversationExistL)
  379     {
  380     //TBool IsConversationExistL(const TDesC& aRecipientId) ;
  381     vimpstengine_stub engin;
  382     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  383     _LIT(KText,"addcontact@presence");
  384     TDesC contactData = KText();
  385     TBool conversationExist = procArray->IsConversationExistL(contactData);
  386     STIF_ASSERT_EQUALS( 0,conversationExist);
  387     }
  388 
  389 STIF_TESTDEFINE(t_ProcArr_FindContactIndexL)
  390     {
  391     //TInt FindContactIndexL( const TDesC& aContactId ) ;
  392     vimpstengine_stub engin;
  393     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  394     procArray->iContactListModel = vimpststorageitemlist_stub::NewL();
  395     _LIT(KText,"dummy@presence");
  396     TPtrC contactData = KText();
  397     
  398     TInt contactIndex = procArray->FindContactIndexL(contactData);
  399     STIF_ASSERT_EQUALS( 2,contactIndex);
  400     _LIT(KText1,"addcontact@presence");
  401     TPtrC contactData1 = KText1();
  402     contactIndex = procArray->FindContactIndexL(contactData1);
  403     STIF_ASSERT_EQUALS( -1,contactIndex);
  404     }
  405 
  406 STIF_TESTDEFINE(t_ProcArr_GetItemUserId)
  407     {
  408     //TPtrC GetItemUserId(TInt aIndex);
  409     vimpstengine_stub engin;
  410     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  411     _LIT(KText,"ownid@presence");
  412     TPtrC tempusrId = KText();
  413     CVIMPSTProcessOwnDataItem* ownitem = CVIMPSTProcessOwnDataItem::NewL(tempusrId);
  414     procArray->iItemArray.Append(ownitem );
  415 
  416     TInt index = 2;
  417     TPtrC userId = procArray->GetItemUserId(index);
  418     STIF_ASSERT_EQUALS(tempusrId,userId);
  419              
  420           
  421     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  422     CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  423             const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  424     procArray->iItemArray.Append(contactItem );
  425 
  426     index = 3;
  427     _LIT(KText1,"dummy@presence");
  428     TPtrC tempusrId1 = KText1();
  429     TPtrC userId1 = procArray->GetItemUserId(index);
  430     STIF_ASSERT_EQUALS(tempusrId1,userId1);
  431     
  432     index = 4;
  433 
  434     TPtrC userId2 = procArray->GetItemUserId(index);
  435     TPtrC null = KNullDesC();
  436     STIF_ASSERT_EQUALS(null,userId2);
  437         
  438  
  439     }
  440 
  441 STIF_TESTDEFINE(t_ProcArr_LoginUserIdFromStoreL)
  442     {
  443     //const TDesC& LoginUserIdFromStoreL() const;
  444     vimpstengine_stub engin;
  445     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  446     _LIT(KText,"dummy@presence");
  447     TPtrC ownuserId = KText();
  448     TPtrC userId = procArray->LoginUserIdFromStoreL();
  449     STIF_ASSERT_EQUALS(ownuserId ,userId);
  450     }
  451 
  452 STIF_TESTDEFINE(t_ProcArr_OwnAvatarIndexL)
  453     {
  454     //TInt OwnAvatarIndexL( ) ;
  455     vimpstengine_stub engin;
  456     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  457     _LIT(KText,"Nutan@presence");
  458     TInt avatarIndex = procArray->OwnAvatarIndexL();
  459     STIF_ASSERT_EQUALS(1 ,avatarIndex);
  460     }
  461 
  462 STIF_TESTDEFINE(t_ProcArr_OwnAvatarContentL)
  463     {
  464     //const TDesC8& OwnAvatarContentL( ) const ;
  465     vimpstengine_stub engin;
  466     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  467     _LIT8(KText,"avatar");
  468    
  469     TPtrC8 ownavacontent = KText();
  470     TPtrC8 avatarContent = procArray->OwnAvatarContentL();
  471     STIF_ASSERT_EQUALS( ownavacontent,avatarContent);
  472     }
  473 
  474 STIF_TESTDEFINE(t_ProcArr_AvatarContent)
  475     {
  476     //const TDesC8& AvatarContent(TInt aContactIndex) ;
  477     vimpstengine_stub engin;
  478     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  479     _LIT8(KText,"avatar");
  480     
  481     TPtrC8 avacontent = KText();
  482     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  483        CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  484                const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  485        procArray->iItemArray.Append(contactItem );
  486     TInt index = 1;
  487     TPtrC8 avatarContent = procArray->AvatarContent(index);
  488     STIF_ASSERT_EQUALS(avacontent,avatarContent);
  489     }
  490 
  491 STIF_TESTDEFINE(t_ProcArr_SetAvatarIndex)
  492     {
  493     //void SetAvatarIndex( TInt aContactIndex, TInt aAvatarIndex );
  494     //TInt AvatarIndex(TInt aContactIndex) ;
  495     vimpstengine_stub engin;
  496     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  497     TInt ContactIndex = 1;
  498     TInt index = 1;
  499     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  500          CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  501                  const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  502          procArray->iItemArray.Append(contactItem );
  503     procArray->SetAvatarIndex(ContactIndex, index);
  504     TInt avaIndex = procArray->AvatarIndex(ContactIndex);
  505     STIF_ASSERT_EQUALS(index ,avaIndex);
  506     }
  507 
  508 STIF_TESTDEFINE(t_ProcArr_FindArrayItem)
  509     {
  510     //MVIMPSTProcessArrayItem* FindArrayItem( const TDesC& aSenderId );
  511     vimpstengine_stub engin;
  512     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  513     _LIT(KText,"ownid@presence");
  514         TPtrC tempusrId = KText();
  515         CVIMPSTProcessOwnDataItem* ownitem = CVIMPSTProcessOwnDataItem::NewL(tempusrId);
  516         procArray->iItemArray.Append(ownitem );
  517 
  518     MVIMPSTProcessArrayItem* arrayItem = procArray->FindArrayItem(tempusrId);
  519     TPtrC userid = arrayItem->GetItemUserId();
  520     STIF_ASSERT_EQUALS( tempusrId,userid);
  521     }
  522 /*
  523                                     
  524 private: // Implementation         
  525       /**
  526        * FillItemL: fill up the individual item in the array
  527        * @return void
  528        **
  529        void FillItemL();
  530       /**
  531        * FillOwnDataL: fill up fill the owndata item
  532        * @return void
  533        **
  534        TBool  FillOwnDataL();
  535        
  536       /**
  537        * FillArray: fill up the complete array
  538        * @return void
  539        **
  540        void FillArrayL();
  541         
  542        /**
  543         * fill the unknown contact to main array
  544         * @return void
  545         **
  546        void FillUnknownContactsL();
  547        /**
  548         * FillAddRequestDataL: fill up the add request to array
  549         * @return void
  550         **
  551        void FillAddRequestDataL();
  552       
  553        /**
  554         * remove all the unknown contacts from main array iItemArray,
  555         * so that unknown contact can pesist till the session is entertainesd.
  556         * @return void
  557         **
  558        void RemoveUnKnownContacts();
  559         /**
  560          * RemoveAddRequestData: removes data from iItemArray,
  561          * so that request can pesist till the reqest is entertainesd.
  562          * @return void
  563          **
  564        void RemoveAddRequestData();
  565        
  566        /**
  567         * handlle the message which is from unknown buddy 
  568         * @param aSenderId , Sender Id 
  569         * @return void
  570         **
  571        void DoHandleUnKnownContactMessageL( const TDesC& aSenderId ,TBool aIsMsgPending);
  572        
  573        /**
  574         * get the all open chat and append unknown contacts
  575         * @return void
  576         **
  577        void GetAndCreateOpenChatListL();
  578        
  579        /**
  580         * remove the item from invitation or unknown array if found
  581         * @param aContactId :  conatct user Id
  582         * @return ETrue if contact is removed
  583         *
  584        TBool RemoveFromUnknonOrInvitationListL( const TDesC& aContactId , TBool aBlocked )  ;
  585        /**
  586         * play the incoming message tone.
  587         *
  588        void PlayMsgBeepL();
  589        
  590        /**
  591         * @return ETrue if unread message exist
  592         *
  593        TBool IsUnreadMessageExistsL(const TDesC& aRecipientId);
  594        /**
  595         * helper method for removing unknown contacts
  596         * @return ETrue if contact is removed
  597         *
  598        TBool RemoveFromUnknonListL( const TDesC& aAddedUserId );
  599        /**
  600         * helper method for removing invitation contacts
  601         * @return ETrue if contact is removed
  602         *
  603        TBool RemoveFromInvitationListL( const TDesC& aAddedUserId );
  604        /**
  605         * helper method for finding and marking as open chat
  606         * @return ETrue if contact is find
  607         *
  608        TBool FindAndMarkContactAsOpenChat( const TDesC& aContactId, TBool aMesssagePending  );        
  609 */
  610 
  611 
  612 STIF_TESTDEFINE(t_ProcArr_GetSelectedItemIndex)
  613 {
  614     vimpstengine_stub engin;
  615     CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  616     _LIT(KDummy,"dummy@presence");
  617     _LIT(KDummy1,"dummy1@gmail.com");
  618 
  619     TInt index = procArray->GetSelectedItemIndex(KDummy1);
  620     STIF_ASSERT_EQUALS(index ,KErrNotFound);
  621     
  622    procArray->iItemArray.ResetAndDestroy();
  623     
  624     _LIT(KText,"ownid@presence");
  625             TPtrC tempusrId = KText();
  626             CVIMPSTProcessOwnDataItem* ownitem = CVIMPSTProcessOwnDataItem::NewL(tempusrId);
  627             procArray->iItemArray.Append(ownitem );
  628             
  629             TInt index1 = procArray->GetSelectedItemIndex(tempusrId);
  630                STIF_ASSERT_EQUALS(index1 ,0);
  631             
  632             MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  633                  CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(contact->Name() ),
  634                          const_cast<TDesC&>(contact->UserId() ),contact->ContactLink() );
  635                  procArray->iItemArray.Append(contactItem );
  636     
  637    
  638     
  639     TInt index2 = procArray->GetSelectedItemIndex(KDummy);
  640        STIF_ASSERT_EQUALS(index2 ,1);
  641 }
  642 
  643 STIF_TESTDEFINE(t_ProcArr_HandleStorageChangeL)
  644 {
  645 vimpstengine_stub engin;
  646 CVIMPSTProcessArray* procArray = CVIMPSTProcessArray::NewL(engin);
  647 vimpststoragecontactlist_stub contactlist;
  648 vimpststoragecontact_stub contact;
  649 MVIMPSTProcessArrayObserver* ob = vimpstprocessarrayobserver_stub::NewL();
  650 procArray->AddObserver(ob);
  651 
  652 TVIMPSTEnums::TVIMPSTStorgaeEventType eventType = TVIMPSTEnums::EStorageEventContactAddition;
  653 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  654 STIF_ASSERT_NOT_NULL(procArray);
  655 
  656 eventType = TVIMPSTEnums::EStorageEventContactDelete;
  657 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  658 STIF_ASSERT_NOT_NULL(procArray);
  659 
  660 eventType = TVIMPSTEnums::EStorageEventContactChange;
  661 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  662 STIF_ASSERT_NOT_NULL(procArray);
  663 
  664 eventType = TVIMPSTEnums::EStorageAvatarChange;
  665 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  666 STIF_ASSERT_NOT_NULL(procArray);
  667 
  668 eventType = TVIMPSTEnums::EStoragePresenceChange;
  669 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  670 STIF_ASSERT_NOT_NULL(procArray);
  671 
  672 eventType = TVIMPSTEnums::EStorageMultiplePresenceChange;
  673 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  674 STIF_ASSERT_NOT_NULL(procArray);
  675 
  676 eventType = TVIMPSTEnums::EStorageOwnPresenceChange;
  677 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  678 STIF_ASSERT_NOT_NULL(procArray);
  679 
  680 eventType = TVIMPSTEnums::EStorageAllContactRemoved;
  681 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  682 STIF_ASSERT_NOT_NULL(procArray);
  683 
  684 eventType = TVIMPSTEnums::EStorageContactFetchComplete;
  685 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  686 STIF_ASSERT_NOT_NULL(procArray);
  687 
  688 eventType = TVIMPSTEnums::EStorageEventOwnUserChanged;
  689 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  690 STIF_ASSERT_NOT_NULL(procArray);
  691 
  692 eventType = TVIMPSTEnums::EStorageEventUserIdPostChange;
  693 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  694 STIF_ASSERT_NOT_NULL(procArray);
  695 
  696 eventType = TVIMPSTEnums::EStorageContactReadComplete;
  697 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  698 STIF_ASSERT_NOT_NULL(procArray);
  699 
  700 eventType = TVIMPSTEnums::EStorageContactReading;
  701 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  702 STIF_ASSERT_NOT_NULL(procArray);
  703 
  704 eventType = TVIMPSTEnums::EStorageContactFetching;
  705 procArray->HandleStorageChangeL(eventType,&contactlist,&contact,ETrue);
  706 STIF_ASSERT_NOT_NULL(procArray);
  707 }
  708 #endif
  709 /**
  710  * END OF TEST CASES SECTION
  711  */
***TER 100% (0/0) of SOURCE FILE t_vimpstcmdprocess_processarray_utest.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD20.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD20.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,117 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #20/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragemanagerfactory.cpp
+Instrumentation mode: function
+TER: 60 % ( 3/ 5)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : cvimpststoragemanagerfactory.cpp
  4 *  Part of     : IMUiServiceTab / vimpststorage
  5 *  Description : Implementation of CVIMPSTStorageManagerFactory
  6 *  Version     : %version: 3.1.2 %
  7 *
  8 *  Copyright (c) 2008 Nokia Corporation.
  9 *  This material, including documentation and any related 
  10 *  computer programs, is protected by copyright controlled by 
  11 *  Nokia Corporation. All rights are reserved. Copying, 
  12 *  including reproducing, storing, adapting or translating, any 
  13 *  or all of this material requires the prior written consent of 
  14 *  Nokia Corporation. This material also contains confidential 
  15 *  information which may not be disclosed to others without the 
  16 *  prior written consent of Nokia Corporation.
  17 * ==============================================================================
  18 */
  19 
  20 
  21 // INCLUDE FILES
  22 #include "cvimpststoragemanagerfactory.h"
  23 #include "s_vimpststoragecontact.h"
  24 #include "MVIMPSTSTORAGECONTACT.H"
  25 #include "s_vimpststorageserviceview.h"
  26 #include "s_storageitemmodel.h"
  27 
  28 // ============================ MEMBER FUNCTIONS ===============================
  29 
  30 // -----------------------------------------------------------------------------
  31 // CVIMPSTStorageManagerFactory::InitialiseLibraryL
  32 // Factory method that initialises the vimpststorage library
  33 // used by CVIMPSTViewIdFactory
  34 // -----------------------------------------------------------------------------
  35 //
 
- 36 EXPORT_C void CVIMPSTStorageManagerFactory::InitialiseLibraryL()
  37     {
  38    
  39     }
  40 
  41 // -----------------------------------------------------------------------------
  42 // CVIMPSTStorageManagerFactory::Release
  43 // Factory method to release the resource owned by the vimpststorage library
  44 // -----------------------------------------------------------------------------
  45 //
 
- 46 EXPORT_C TInt CVIMPSTStorageManagerFactory::Release()
  47     {
  48     return 1;  
  49     }
  50 
  51 // -----------------------------------------------------------------------------
  52 // CVIMPSTStorageManager::InitialiseViewL()
  53 // -----------------------------------------------------------------------------
  54 //
 
76 76   55 EXPORT_C void CVIMPSTStorageManagerFactory::InitialiseViewL(
  56                                     TUint32 aServiceId,
  57                                     const TDesC& aStoreName,
  58                                     const TDesC& aServiceName)
  59     {
  60     
  61     }    
  62     
  63 
  64 // -----------------------------------------------------------------------------
  65 // CVIMPSTStorageManager::ContactListInterfaceL()
  66 // -----------------------------------------------------------------------------
  67 //
 
154   68 EXPORT_C MVIMPSTStorageServiceView* CVIMPSTStorageManagerFactory::ContactListInterfaceL(TUint32 aServiceId)
  69     {
  70     MVIMPSTStorageServiceView *contact = vimpstserviceview_stub::NewL();
  71     return contact ;
  72     }    
  73  
  74 // -----------------------------------------------------------------------------
  75 // CVIMPSTStorageManagerFactory::ItemModelInterfaceL
  76 // -----------------------------------------------------------------------------
  77 //
 
126   78 EXPORT_C MVIMPSTStorageItemModel* CVIMPSTStorageManagerFactory::ItemModelInterfaceL( TUint32 aServiceId )
  79    {
  80    MVIMPSTStorageItemModel* model = vimpststorageitemlist_stub::NewL();
  81    return model;
  82     }      
  83 
  84 //  End of File
***TER 60% (3/5) of SOURCE FILE s_vimpststoragemanagerfactory.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD21.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD21.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,256 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #21/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststorageserviceview.cpp
+Instrumentation mode: function
+TER: 42 % ( 11/ 26)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_vimpststorageserviceview.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_vimpststorageserviceview.h"
  21 #include "s_vimpststoragecontact.h"
  22 
 
156   23 MVIMPSTStorageServiceView* vimpstserviceview_stub::NewL()
  24     {
  25     MVIMPSTStorageServiceView* ob = new(ELeave)vimpstserviceview_stub;
  26         return ob;
  27     }
  28 
 
126 126   29 void vimpstserviceview_stub::AddObserverL( MVIMPSTStorageContactsObserver* aObserver ) 
  30     {
  31 
  32     }
  33 
 
46 46   34 void vimpstserviceview_stub::RemoveObserver( MVIMPSTStorageContactsObserver* aObserver )
  35     {
  36     
  37     }
  38 
  39 
 
38   40 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByUserId( const TDesC& aUserId )
  41     {
  42     if(aUserId.Compare(_L("dummy@presence"))==0)
  43         {
  44     MVIMPSTStorageContact* contact = vimpststoragecontact_stub::NewL();
  45     return contact;
  46         }
  47     return NULL;
  48     }
  49 
  50 
 
- 51 TInt vimpstserviceview_stub::ListCount() const
  52 {
  53 return 1;
  54 }
  55 
 
- 56 MVIMPSTStorageContactList& vimpstserviceview_stub::ListAt( TInt aIndex ) const 
  57 {
  58 MVIMPSTStorageContactList *abc = NULL;
  59     
  60 return *abc;
  61 }
  62 
  63 
 
- 64 MVIMPSTStorageContactList* vimpstserviceview_stub::FindContactList( const TDesC& aListId )
  65     {
  66     return NULL;
  67     }
  68 
 
- 69 MVIMPSTStorageContactList* vimpstserviceview_stub::CreateContactListL( const TDesC& aContactListId, 
  70         const TDesC& aDisplayName ) 
  71     {
  72     MVIMPSTStorageContactList *abc = NULL;
  73         
  74     return abc;
  75     }
  76 
 
- 77 void vimpstserviceview_stub::RemoveContactList( const TDesC& aContactListId )
  78     {
  79     
  80     }
  81 
  82 
 
- 83 TInt vimpstserviceview_stub::ContactCount(TBool aSkipOfflineContacts ) const
  84 {
  85 return 0;
  86 }
  87 
  88 
  89 
 
- 90 MVIMPSTStorageContact* vimpstserviceview_stub::UpdatePresenceL(const TDesC& aContactId, 
  91         TVIMPSTEnums::TOnlineStatus aStatus, 
  92         const TDesC& aStatusText,
  93         const TDesC8& aAvatarData,
  94         TBool aIsClearingAvatar ) 
  95     {
  96     return NULL;
  97     }
  98 
 
- 99 MVIMPSTStorageContact* vimpstserviceview_stub::UpdateAvatarL(const TDesC& aContactId,
  100         const TDesC8& aAvatarData )
  101     {
  102     return NULL;
  103     }
  104 
 
- 105 MVIMPSTStorageContact* vimpstserviceview_stub::CreateNewContactL(const TDesC& aUserId, 
  106         const TDesC& aDisplayName,
  107         TBool aIsInvitationItem ,
  108         TBool aInvitationAutoAccept)
  109     {
  110     MVIMPSTStorageContact* contact = NULL;
  111     return  contact;
  112     }
  113 
 
  114 TInt vimpstserviceview_stub::CreateNewContactFromRetrivedIdL(  TInt aIndexToUse  )
  115     {
  116     return 1;
  117     }
  118 
 
16   119 TInt vimpstserviceview_stub::DeleteNewContactFromRetrivedIdL(  TInt aIndexToUse  )
  120     {
  121     return 0;
  122     }
  123 
 
- 124 TInt vimpstserviceview_stub::RemoveContactL( MVIMPSTStorageContact* aContact  )
  125     {
  126     return 0;
  127     }
  128 
  129 
 
- 130 void vimpstserviceview_stub::CreateNewFetchContactsL( RArray <TPtrC> &aFirstNameList, 
  131         RArray <TPtrC> &aServiceField )
  132     {
  133     
  134     }
  135 
  136 
 
16   137 TBool  vimpstserviceview_stub::IsLocalStore() const
  138 {
  139 return ETrue;
  140 }
  141 
  142 
 
16   143 TInt vimpstserviceview_stub::RetriveLinkXSPIdsL(const TDesC8& aContactPackLink )
  144     {
  145     return 3;
  146     }
 
24   147 const TDesC& vimpstserviceview_stub::GetRetrieveXSPIdL(TInt aIndex )
  148     {
  149     if(aIndex ==0)
  150         {
  151         _LIT(KText1,"blocked@presence");
  152         return KText1();
  153         }
  154     if(aIndex ==1)
  155         {
  156         _LIT(KText2,"dummy@presence");
  157         return KText2();
  158         }
  159     if(aIndex ==2)
  160         {
  161         _LIT(KText3,"contact@presence");
  162         return KText3();
  163         }
  164 
  165     }
  166 
 
  167 MVIMPSTStorageContact* vimpstserviceview_stub::FindContactByLink(const MVPbkContactLink& aContactLink )
  168     {
  169     return NULL;
  170     }
  171 
  172 
 
- 173 void vimpstserviceview_stub::Sort( const TDesC& aContactListId)
  174     {
  175     
  176     }
  177 
 
146   178 MVIMPSTStorageContact& vimpstserviceview_stub::OwnContactL() 
  179     {
  180     MVIMPSTStorageContact *abc = vimpststoragecontact_stub::NewL();
  181         
  182     return *abc;
  183     }
  184 
 
- 185 void vimpstserviceview_stub::DeleteDatabaseL() 
  186     {
  187     
  188     }
  189 
 
- 190 void vimpstserviceview_stub::SetOwnUserIdL(const TDesC& aUserId ) 
  191     {
  192     
  193     }
  194 
 
- 195 void vimpstserviceview_stub::SetUnnamedTextL(HBufC* aUnnamedText )
  196     {
  197     
  198     }
  199 
  200 
  201 
  202 // End of File
***TER 42% (11/26) of SOURCE FILE s_vimpststorageserviceview.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD22.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD22.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,244 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #22/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddcontact.cpp
+Instrumentation mode: function
+TER: 100 % ( 9/ 9)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdaddcontact.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: ou1s60rt#19 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdaddcontact.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginecontactmgmtextention.h"
  29 #include "mvimpstengineextentionfeatures.h"
  30 #include <MVPbkStoreContact.h>
  31 #include <MVPbkFieldType.h>
  32 #include <MVPbkContactFieldTextData.h>
  33 #include <MVPbkContactFieldUriData.h>
  34 
  35 #include "cvimpststoragemanagerfactory.h"
  36 #include "mvimpststorageserviceview.h"
  37 #include "mvimpststoragecontact.h"
  38 #include "tvimpstenums.h" 
  39 #include "tvimpstconsts.h"
  40 #include "mvimpstenginesubservice.h"
  41 #include "mvimpstenginepresencesubservice.h"
  42 
  43 // Constants
  44 _LIT( KListNameAllBuddy ,"buddylist" );
  45 
  46 // --------------------------------------------------------------------------
  47 // CVIMPSTCmdAddContact::CVIMPSTCmdAddContact
  48 // --------------------------------------------------------------------------
  49 //
 
  50 CVIMPSTCmdAddContact::CVIMPSTCmdAddContact( 
  51         const TInt aCommandId ,const TDesC& aContactId,
  52         MVIMPSTEngine& aEngine) :            
  53             iCommandId( aCommandId ),
  54             iContactId( aContactId ),
  55             iEngine(aEngine)
  56     {
  57     }
  58 
  59 // --------------------------------------------------------------------------
  60 // CVIMPSTCmdAddContact::~CVIMPSTCmdAddContact
  61 // --------------------------------------------------------------------------
  62 //
 
  63 CVIMPSTCmdAddContact::~CVIMPSTCmdAddContact()
  64     {    
  65     
  66     }
  67 
  68 // --------------------------------------------------------------------------
  69 // CVIMPSTCmdAddContact::NewL
  70 // --------------------------------------------------------------------------
  71 //
 
  72 CVIMPSTCmdAddContact* CVIMPSTCmdAddContact::NewL( 
  73         const TInt aCommandId,const TDesC& aContactId,
  74         MVIMPSTEngine& aEngine)
  75     {
  76     CVIMPSTCmdAddContact* self = new (ELeave ) CVIMPSTCmdAddContact( aCommandId ,aContactId, aEngine);
  77     self->ConstructL(); //use contsurctL if necessary
  78     return self;
  79     }
  80 // --------------------------------------------------------------------------
  81 // CVIMPSTCmdAddContact::ConstructL
  82 // --------------------------------------------------------------------------
  83 //
 
  84 void CVIMPSTCmdAddContact::ConstructL()
  85     {    
  86     iError = KErrNone;
  87     }
  88 
  89 // --------------------------------------------------------------------------
  90 // CVIMPSTCmdAddContact::ExecuteLD
  91 // --------------------------------------------------------------------------
  92 //
 
  93 void CVIMPSTCmdAddContact::ExecuteLD()
  94     {
  95       CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd::ExecuteLD");
  96     //push to the cleanupstack
  97     CleanupStack::PushL( this );
  98     MVIMPSTStorageServiceView* storage = CVIMPSTStorageManagerFactory::ContactListInterfaceL(iEngine.ServiceId()) ;
  99     if(storage )
  100         {
  101         if( !IsContactBlocked(iContactId) )
  102            {
  103            MVIMPSTStorageContact* alreadyExist = storage->FindContactByUserId( iContactId );
  104            if( !alreadyExist )
  105             {
  106             iError = KErrNone;
  107             MVIMPSTEngineExtentionFeatures* feature = iEngine.ExtentionFeatures(TVIMPSTEnums::EContactManagement);
  108             if (feature)   
  109                {
  110                MVIMPSTEngineContactMgmtExtention& contactMgr = 
  111                                  MVIMPSTEngineContactMgmtExtention::Cast (*feature);
  112                // if there is a scenario when the user enters only the firstname , then userid is null.
  113                //In this case don't send it to the server, Add the contact to the servicetab and 
  114                //presence will not be visible.
  115                // check if contact is in the blocked list.
  116                // iError already exist
  117                if( iContactId.Length() )
  118                   {
  119                   iError = contactMgr.AddServerContactL(KListNameAllBuddy,iContactId, KNullDesC() );
  120                   }//End if(iContactId)
  121                }   //End if(feature)
  122             if(KErrNone == iError)
  123                {
  124                storage->CreateNewContactL( iContactId );   
  125                }
  126             }//End if(alreadyExist)
  127           else   
  128                {
  129                iError = EErrExistInContactList;      
  130                }
  131            }
  132         else
  133            {
  134            iError = EErrExistInBlockList;      
  135            }
  136         }//End  if(storage)
  137             
  138     CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished");
  139 
  140     if(iObserver)
  141        {
  142        iObserver->CommandFinishedL(*this);
  143        }
  144    CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished");   
  145    CleanupStack::PopAndDestroy();   
  146    CHAT_DP_FUNC_DONE("CVIMPSTEnableServiceCmd::ExecuteLD");   
  147     }
  148 
  149 // --------------------------------------------------------------------------
  150 // CVIMPSTCmdAddContact::IsContactBlocked
  151 // --------------------------------------------------------------------------
 
  152 TBool CVIMPSTCmdAddContact::IsContactBlocked(const TDesC& aUserId)
  153    {
  154       MVIMPSTEngineSubService* subService =          
  155                         (iEngine.SubService(TVIMPSTEnums::EPresence));
  156     if(subService)
  157         {
  158         MVIMPSTEnginePresenceSubService& presence = 
  159               MVIMPSTEnginePresenceSubService::Cast (*subService);
  160               
  161         RPointerArray<HBufC> *blockedlist = presence .GetBlockedList();
  162         
  163         if(blockedlist)
  164            {
  165            for(TInt i=0; i<blockedlist->Count(); ++i)
  166             {
  167             if(0 == aUserId.CompareC((*blockedlist)[i]->Des()))
  168                {
  169                return ETrue;
  170                }
  171             }
  172            }
  173         }
  174     return EFalse;  
  175    }
  176 
  177 // --------------------------------------------------------------------------
  178 // CVIMPSTCmdAddContact::AddObserver
  179 // --------------------------------------------------------------------------
  180 //
 
  181 void CVIMPSTCmdAddContact::AddObserver( MVIMPSTCmdObserver& aObserver )
  182     {
  183     // store the observer to notify the command completion
  184     iObserver = &aObserver;
  185     }
  186 
  187 
  188 // --------------------------------------------------------------------------
  189 // CVIMPSTCmdAddContact::CommandId
  190 // --------------------------------------------------------------------------
  191 //
 
  192 TInt CVIMPSTCmdAddContact::CommandId() const
  193    {
  194    return iCommandId;   
  195    }
  196 
  197 // --------------------------------------------------------------------------
  198 // CVIMPSTCmdAddContact::Result
  199 // --------------------------------------------------------------------------
  200 //
 
  201 TInt CVIMPSTCmdAddContact::Result() const
  202    {
  203    //return valid data regd the command operation
  204    return iError;
  205    }
  206 
  207 // End of File
***TER 100% (9/9) of SOURCE FILE cvimpstcmdaddcontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD23.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD23.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,171 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #23/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddtopbk.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdaddtopbk.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 2.1.1 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdaddtopbk.h"
  21 #include "vimpstcmd.hrh"
  22 #include "mvimpstcmdobserver.h"
  23 #include "vimpstdebugprint.h" 
  24 
  25 #include <e32def.h>
  26 #include <mvpbkstorecontact.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpststorageserviceview.h"
  29 #include "cvimpststoragemanagerfactory.h"
  30 
  31 // Constants
  32 
  33 // --------------------------------------------------------------------------
  34 // CVIMPSTCmdAddToPbk::CVIMPSTCmdAddToPbk
  35 // --------------------------------------------------------------------------
  36 //
 
  37 CVIMPSTCmdAddToPbk::CVIMPSTCmdAddToPbk( const TInt aCommandId ,
  38                                         const MVIMPSTStorageContact& aStoreContact,
  39                                         MVIMPSTEngine& aEngine) :            
  40                                         iCommandId( aCommandId ),
  41                                         iStoreContact( aStoreContact ),
  42                                         iEngine( aEngine )
  43     {
  44     }
  45 
  46 // --------------------------------------------------------------------------
  47 // CVIMPSTCmdAddToPbk::~CVIMPSTCmdAddToPbk
  48 // --------------------------------------------------------------------------
  49 //
 
  50 CVIMPSTCmdAddToPbk::~CVIMPSTCmdAddToPbk()
  51     {    
  52     
  53     }
  54 
  55 // --------------------------------------------------------------------------
  56 // CVIMPSTCmdAddToPbk::NewL
  57 // --------------------------------------------------------------------------
  58 //
 
  59 CVIMPSTCmdAddToPbk* CVIMPSTCmdAddToPbk::NewL( const TInt aCommandId,
  60                                               const MVIMPSTStorageContact& aStoreContact,
  61                                               MVIMPSTEngine& aEngine)
  62     {
  63     CVIMPSTCmdAddToPbk* self = new (ELeave ) CVIMPSTCmdAddToPbk( aCommandId, aStoreContact, aEngine);
  64     self->ConstructL(); //use contsurctL if necessary
  65     return self;
  66     }
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdAddToPbk::ConstructL
  69 // --------------------------------------------------------------------------
  70 //
 
  71 void CVIMPSTCmdAddToPbk::ConstructL()
  72     {    
  73     iError = KErrNone;
  74     }
  75 
  76 // --------------------------------------------------------------------------
  77 // CVIMPSTCmdAddToPbk::ExecuteLD
  78 // --------------------------------------------------------------------------
  79 //
 
  80 void CVIMPSTCmdAddToPbk::ExecuteLD()
  81     {
  82     CHAT_DP_FUNC_ENTER("CVIMPSTCmdAddToPbk::ExecuteLD");
  83     //push to the cleanupstack
  84     CleanupStack::PushL( this );
  85     MVIMPSTStorageServiceView* storage = CVIMPSTStorageManagerFactory::ContactListInterfaceL(iEngine.ServiceId()) ;
  86     if(storage)
  87         {
  88         //storage->AddContactToPhoneBookL(iStoreContact);
  89         }
  90     else
  91         {
  92         iError = KErrGeneral;
  93         }
  94     if(iObserver)
  95         {
  96         iObserver->CommandFinishedL(*this);
  97         }
  98     CHAT_DP_FUNC_ENTER("CVIMPSTCmdAddToPbk:: CommandFinished");    
  99     CleanupStack::PopAndDestroy();  
  100     CHAT_DP_FUNC_DONE("CVIMPSTCmdAddToPbk::ExecuteLD");    
  101     }
  102 
  103 
  104 // --------------------------------------------------------------------------
  105 // CVIMPSTCmdAddToPbk::AddObserver
  106 // --------------------------------------------------------------------------
  107 //
 
  108 void CVIMPSTCmdAddToPbk::AddObserver( MVIMPSTCmdObserver& aObserver )
  109     {
  110     // store the observer to notify the command completion
  111     iObserver = &aObserver;
  112     }
  113 
  114 
  115 // --------------------------------------------------------------------------
  116 // CVIMPSTCmdAddToPbk::CommandId
  117 // --------------------------------------------------------------------------
  118 //
 
  119 TInt CVIMPSTCmdAddToPbk::CommandId() const
  120     {
  121     return iCommandId;  
  122     }
  123 
  124 // --------------------------------------------------------------------------
  125 // CVIMPSTCmdAddToPbk::Result
  126 // --------------------------------------------------------------------------
  127 //
 
  128 TInt CVIMPSTCmdAddToPbk::Result() const
  129     {
  130     //return valid data regd the command operation
  131     return iError;
  132     }
  133 
  134 // End of File
  135 
***TER 100% (8/8) of SOURCE FILE cvimpstcmdaddtopbk.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD24.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD24.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,187 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #24/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdblockcontact.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdblockcontact.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 10 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdblockcontact.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "cvimpststoragemanagerfactory.h"
  29 #include "mvimpststorageserviceview.h"
  30 
  31 #include "mvimpstenginesubservice.h"
  32 #include "mvimpstenginepresencesubservice.h"
  33 #include "tvimpstconsts.h"
  34 #include "MVIMPSTProcessArray.h"
  35 // Constants
  36 
  37 // --------------------------------------------------------------------------
  38 // CVIMPSTCmdBlockContact::CVIMPSTCmdBlockContact
  39 // --------------------------------------------------------------------------
  40 //
 
  41 CVIMPSTCmdBlockContact::CVIMPSTCmdBlockContact( 
  42         const TInt aCommandId , const TDesC& aContactId,
  43         MVIMPSTProcessArray& aArrayProcess,
  44         MVIMPSTEngine& aEngine) :            
  45             iCommandId( aCommandId ),
  46             iContactId( aContactId ),
  47             iProcessArray( aArrayProcess ),
  48             iEngine(aEngine)
  49     {
  50     }
  51 
  52 // --------------------------------------------------------------------------
  53 // CVIMPSTCmdBlockContact::~CVIMPSTCmdBlockContact
  54 // --------------------------------------------------------------------------
  55 //
 
  56 CVIMPSTCmdBlockContact::~CVIMPSTCmdBlockContact()
  57     {    
  58     
  59     }
  60 
  61 // --------------------------------------------------------------------------
  62 // CVIMPSTCmdBlockContact::NewL
  63 // --------------------------------------------------------------------------
  64 //
 
  65 CVIMPSTCmdBlockContact* CVIMPSTCmdBlockContact::NewL( 
  66         const TInt aCommandId, const TDesC& aContactId,
  67         MVIMPSTProcessArray& aArrayProcess,
  68         MVIMPSTEngine& aEngine)
  69     {
  70     CVIMPSTCmdBlockContact* self = new (ELeave ) CVIMPSTCmdBlockContact( aCommandId ,aContactId, aArrayProcess ,aEngine);
  71     self->ConstructL(); //use contsurctL if necessary
  72     return self;
  73     }
  74 // --------------------------------------------------------------------------
  75 // CVIMPSTCmdBlockContact::ConstructL
  76 // --------------------------------------------------------------------------
  77 //
 
  78 void CVIMPSTCmdBlockContact::ConstructL()
  79     {    
  80     iError = KErrNotFound;
  81     }
  82 
  83 // --------------------------------------------------------------------------
  84 // CVIMPSTCmdBlockContact::ExecuteLD
  85 // --------------------------------------------------------------------------
  86 //
 
  87 void CVIMPSTCmdBlockContact::ExecuteLD()
  88     {
  89       CHAT_DP_FUNC_ENTER("CVIMPSTCmdBlockContact::ExecuteLD");
  90     //push to the cleanupstack
  91     CleanupStack::PushL( this );       
  92     iError = KErrGeneral;
  93     if(iContactId.Length())
  94         {
  95         //Get Presence SubService           
  96         MVIMPSTEngineSubService* subService =          
  97         (iEngine.SubService(TVIMPSTEnums::EPresence));
  98         if (subService && iEngine.IsBlockSupportedL())
  99             {
  100             MVIMPSTEnginePresenceSubService& presence = 
  101                 MVIMPSTEnginePresenceSubService::Cast (*subService);
  102             iError = presence.AddToBlockListL(iContactId);
  103             CHAT_DP( D_CHAT_LIT(" -> After iError: %d" ), iError);
  104             }
  105         }
  106     CHAT_DP_FUNC_ENTER("CVIMPSTCmdBlockContact:: CommandFinished");
  107     if( iError == KErrNone )
  108         {
  109         iProcessArray.RemoveFromUnknonOrInvitationListL( iContactId ,ETrue );
  110         }
  111     if(iObserver)
  112        {
  113        iObserver->CommandFinishedL(*this);
  114        }
  115    CHAT_DP_FUNC_ENTER("CVIMPSTCmdBlockContact:: CommandFinished");   
  116    CleanupStack::PopAndDestroy();   
  117    CHAT_DP_FUNC_DONE("CVIMPSTCmdBlockContact::ExecuteLD");   
  118     }
  119 
  120 
  121 // --------------------------------------------------------------------------
  122 // CVIMPSTCmdBlockContact::AddObserver
  123 // --------------------------------------------------------------------------
  124 //
 
  125 void CVIMPSTCmdBlockContact::AddObserver( MVIMPSTCmdObserver& aObserver )
  126     {
  127     // store the observer to notify the command completion
  128     iObserver = &aObserver;
  129     }
  130 
  131 
  132 // --------------------------------------------------------------------------
  133 // CVIMPSTCmdBlockContact::CommandId
  134 // --------------------------------------------------------------------------
  135 //
 
  136 TInt CVIMPSTCmdBlockContact::CommandId() const
  137    {
  138    return iCommandId;   
  139    }
  140 
  141 // --------------------------------------------------------------------------
  142 // CVIMPSTCmdBlockContact::Result
  143 // --------------------------------------------------------------------------
  144 //
 
  145 TInt CVIMPSTCmdBlockContact::Result() const
  146    {
  147    //return valid data regd the command operation
  148    return iError;
  149    }
  150 
  151 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdblockcontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD25.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD25.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,154 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #25/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcancellogin.cpp
+Instrumentation mode: function
+TER: 100 % ( 7/ 7)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdcancellogin.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : cancel login command implementation 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 
  21 #include "cvimpstcmdcancellogin.h"
  22 
  23 #include "vimpstcmd.hrh"
  24 #include "mvimpstcmdobserver.h"
  25 #include "vimpstdebugprint.h" 
  26 
  27 #include <e32def.h>
  28 #include "mvimpstengine.h"
  29 
  30 
  31 // --------------------------------------------------------------------------
  32 // CVIMPSTCmdLogout::CVIMPSTCmdLogout
  33 // --------------------------------------------------------------------------
  34 //
 
  35 CVIMPSTCmdCancelLogin::CVIMPSTCmdCancelLogin( const TInt aCommandId, 
  36         MVIMPSTEngine& aEngine) :     
  37         iCommandId( aCommandId ),
  38         iEngine(aEngine)
  39         {
  40         }
  41 
  42 // --------------------------------------------------------------------------
  43 // CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin
  44 // --------------------------------------------------------------------------
  45 //
 
  46 CVIMPSTCmdCancelLogin::~CVIMPSTCmdCancelLogin()
  47     {    
  48     }
  49 
  50 // --------------------------------------------------------------------------
  51 // CVIMPSTCmdCancelLogin::NewL
  52 // --------------------------------------------------------------------------
  53 //
 
  54 CVIMPSTCmdCancelLogin* CVIMPSTCmdCancelLogin::NewL( 
  55         const TInt aCommandId,
  56         MVIMPSTEngine& aEngine)
  57     {
  58     // return the object created 
  59     CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin::NewL");
  60     return  new (ELeave ) CVIMPSTCmdCancelLogin( aCommandId , aEngine);
  61     }
  62 
  63 // --------------------------------------------------------------------------
  64 // CVIMPSTCmdCancelLogin::ExecuteLD
  65 // --------------------------------------------------------------------------
  66 //
 
  67 void CVIMPSTCmdCancelLogin::ExecuteLD()
  68     {
  69       CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin::ExecuteLD");
  70     //push to the cleanupstack
  71     CleanupStack::PushL( this );    
  72     
  73     // now  call logout for cancel login
  74     // protocol adaptation has to take care of this 
  75     iEngine.LogoutL();
  76       
  77     CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin:: CommandFinished");
  78 
  79     if(iObserver)
  80        {
  81        iObserver->CommandFinishedL(*this);
  82        }
  83    CHAT_DP_FUNC_ENTER("CVIMPSTCmdCancelLogin:: CommandFinished");   
  84    CleanupStack::PopAndDestroy();   
  85    CHAT_DP_FUNC_DONE("CVIMPSTCmdCancelLogin::ExecuteLD");   
  86     }
  87 
  88 
  89 // --------------------------------------------------------------------------
  90 // CVIMPSTCmdCancelLogin::AddObserver
  91 // --------------------------------------------------------------------------
  92 //
 
  93 void CVIMPSTCmdCancelLogin::AddObserver( MVIMPSTCmdObserver& aObserver )
  94     {
  95     // store the observer to notify the command completion
  96     iObserver = &aObserver;
  97     }
  98 
  99 
  100 // --------------------------------------------------------------------------
  101 // CVIMPSTCmdCancelLogin::CommandId
  102 // --------------------------------------------------------------------------
  103 //
 
  104 TInt CVIMPSTCmdCancelLogin::CommandId() const
  105    {
  106    return iCommandId;   
  107    }
  108 
  109 // --------------------------------------------------------------------------
  110 // CVIMPSTCmdCancelLogin::Result
  111 // --------------------------------------------------------------------------
  112 //
 
  113 TInt CVIMPSTCmdCancelLogin::Result() const
  114    {
  115    // return KErrNone since iEngine.Logout() doesnot return any error value
  116    return KErrNone;
  117    }
  118 
  119 // End of File
***TER 100% (7/7) of SOURCE FILE cvimpstcmdcancellogin.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD26.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD26.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,216 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #26/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcca.cpp
+Instrumentation mode: function
+TER: 44 % ( 4/ 9)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdcca.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 12 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "cvimpstcmdcca.h"
  25 #include "mvimpstengine.h"
  26 #include "MVIMPSTProcessArray.h"
  27 
  28 #include <MVPbkContactLink.h> 
  29 
  30 #include <e32def.h>
  31 #include <e32property.h>
  32 #include <imconnectionproviderconsts.h>
  33 #include "tvimpstconsts.h"
  34 #include "vimpstdetailsviewpluginuids.hrh"
  35 
  36 // Constants
  37 
  38 // --------------------------------------------------------------------------
  39 // CVIMPSTCmdCCA::CVIMPSTCmdCCA
  40 // --------------------------------------------------------------------------
  41 //
 
  42 CVIMPSTCmdCCA::CVIMPSTCmdCCA( 
  43         const TInt aCommandId,
  44             TInt& aIndex, 
  45             MCCAConnection* aConnection,
  46             MVIMPSTProcessArray& mArrayProcess,
  47             MVIMPSTEngine& aEngine ) :            
  48     iCommandId( aCommandId ),
  49     iIndex(aIndex),
  50     iConnection(aConnection),
  51     iArrayProcess(mArrayProcess),
  52     iEngine( aEngine)
  53     {
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdCCA::~CVIMPSTCmdCCA
  58 // --------------------------------------------------------------------------
  59 //
 
- 60 CVIMPSTCmdCCA::~CVIMPSTCmdCCA()
  61     {   
  62     }
  63 
  64 // --------------------------------------------------------------------------
  65 // CVIMPSTCmdCCA::NewL
  66 // --------------------------------------------------------------------------
  67 //
 
  68 CVIMPSTCmdCCA* CVIMPSTCmdCCA::NewL( 
  69         const TInt aCommandId,TInt& aIndex,
  70         MCCAConnection* aConnection,
  71            MVIMPSTProcessArray& aArrayProcess,
  72         MVIMPSTEngine& aEngine )
  73     {
  74     CVIMPSTCmdCCA* self = new (ELeave ) CVIMPSTCmdCCA( aCommandId,aIndex,aConnection,aArrayProcess, aEngine );
  75     self->ConstructL(); //use contsurctL if necessary
  76     return self;
  77     }
  78 // --------------------------------------------------------------------------
  79 // CVIMPSTCmdCCA::ConstructL
  80 // --------------------------------------------------------------------------
  81 //
 
  82 void CVIMPSTCmdCCA::ConstructL()
  83     {
  84     RProperty::Define(KMeCoPropertyUid, KMeCoXSPDetailsServiceIdKey, RProperty::EInt,
  85                           ECapabilityReadUserData ,ECapabilityWriteUserData); 
  86  
  87     }
  88 
  89 // --------------------------------------------------------------------------
  90 // CVIMPSTCmdCCA::ExecuteLD
  91 // --------------------------------------------------------------------------
  92 //
 
- 93 void CVIMPSTCmdCCA::ExecuteLD()
  94     {
  95       // CHAT_DP_FUNC_ENTER("CVIMPSTSettingsCmd::ExecuteLD");
  96     //push to the cleanupstack
  97     CleanupStack::PushL( this );    
  98      
  99    LaunchCcaL();
  100     if(iObserver)
  101        {
  102        iObserver->CommandFinishedL(*this);
  103        }
  104    // CHAT_DP_FUNC_ENTER("CVIMPSTSettingsCmd:: CommandFinished");   
  105    CleanupStack::PopAndDestroy();   
  106    // CHAT_DP_FUNC_DONE("CVIMPSTSettingsCmd::ExecuteLD");   
  107     }
  108 
  109 
  110 // --------------------------------------------------------------------------
  111 // CVIMPSTCmdCCA::AddObserver
  112 // --------------------------------------------------------------------------
  113 //
 
- 114 void CVIMPSTCmdCCA::AddObserver( MVIMPSTCmdObserver& aObserver )
  115     {
  116     // store the observer to notify the command completion
  117     iObserver = &aObserver;
  118     }
  119 
  120 
  121 // --------------------------------------------------------------------------
  122 // CVIMPSTCmdCCA::CommandId
  123 // --------------------------------------------------------------------------
  124 //
 
  125 TInt CVIMPSTCmdCCA::CommandId() const
  126    {
  127    return iCommandId;   
  128    }
  129 
  130 // --------------------------------------------------------------------------
  131 // CVIMPSTCmdCCA::Result
  132 // --------------------------------------------------------------------------
  133 //
 
- 134 TInt CVIMPSTCmdCCA::Result() const
  135    {
  136    //return valid data regd the command operation
  137    return KErrNone;
  138    }
  139 
  140 // --------------------------------------------------------------------------
  141 // CVIMPSTCmdCCA::LaunchCcaL
  142 // --------------------------------------------------------------------------
  143 //
 
- 144 void CVIMPSTCmdCCA::LaunchCcaL()
  145    {   
  146 
  147    if ( iParameter )
  148       {
  149       iParameter->Close();
  150       iParameter = NULL;
  151       }
  152 
  153    // The lifetime of this cmd object is too short to hold
  154    // iParameterRef, caller of this must own it    
  155    iParameter = TCCAFactory::NewParameterL();
  156    iParameter->SetConnectionFlag(MCCAParameter::ENormal);
  157    iParameter->SetContactDataFlag(MCCAParameter::EContactLink);
  158    
  159    TUid uid( TUid::Null() );
  160    uid.iUid = KVIMPSTDetailsViewPluginImplmentationUid + iEngine.ServiceId(); // service details view implementation uid
  161    iParameter->SetLaunchedViewUid( uid );
  162    
  163    RProperty::Set(KMeCoPropertyUid, KMeCoXSPDetailsServiceIdKey, iEngine.ServiceId() ); 
  164     
  165    MVPbkContactLink* link = iArrayProcess.ContactLink( iIndex )->CloneLC();  
  166    if (link)
  167       {
  168       HBufC8* link8 = link->PackLC(); 
  169       HBufC16* link16 = HBufC16::NewLC( link8->Length() );
  170       link16->Des().Copy( *link8);
  171       iParameter->SetContactDataL(link16->Des());
  172       CleanupStack::PopAndDestroy(3); 
  173       }
  174    // Sync call
  175    //iParameter ownership passed to iConnection
  176    iConnection->LaunchApplicationL(*iParameter);            
  177              
  178    }
  179 // End of File
***TER 44% (4/9) of SOURCE FILE cvimpstcmdcca.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD27.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD27.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,173 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #27/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownavtar.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdchangeownavtar.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 5 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdchangeownavtar.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginepresencesubservice.h"
  29 #include "mvimpstenginesubservice.h"
  30 
  31 
  32 // --------------------------------------------------------------------------
  33 // CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar
  34 // --------------------------------------------------------------------------
  35 //
 
  36 CVIMPSTCmdChangeOwnAvtar::CVIMPSTCmdChangeOwnAvtar( 
  37         const TInt aCommandId ,const TAvatarData& aData,
  38         MVIMPSTEngine& aEngine) :            
  39             iCommandId( aCommandId ),
  40             iData(aData),
  41             iEngine(aEngine)
  42     {
  43     }
  44 
  45 // --------------------------------------------------------------------------
  46 // CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar
  47 // --------------------------------------------------------------------------
  48 //
 
  49 CVIMPSTCmdChangeOwnAvtar::~CVIMPSTCmdChangeOwnAvtar()
  50     {    
  51     
  52     }
  53 
  54 // --------------------------------------------------------------------------
  55 // CVIMPSTCmdChangeOwnAvtar::NewL
  56 // --------------------------------------------------------------------------
  57 //
 
  58 CVIMPSTCmdChangeOwnAvtar* CVIMPSTCmdChangeOwnAvtar::NewL( 
  59         const TInt aCommandId,const TAvatarData& aData,
  60         MVIMPSTEngine& aEngine)
  61     {
  62     CVIMPSTCmdChangeOwnAvtar* self = new (ELeave ) CVIMPSTCmdChangeOwnAvtar( aCommandId ,aData, aEngine);
  63     self->ConstructL(); //use contsurctL if necessary
  64     return self;
  65     }
  66 // --------------------------------------------------------------------------
  67 // CVIMPSTCmdChangeOwnAvtar::ConstructL
  68 // --------------------------------------------------------------------------
  69 //
 
  70 void CVIMPSTCmdChangeOwnAvtar::ConstructL()
  71     {    
  72     iError = KErrNone;
  73     }
  74 
  75 // --------------------------------------------------------------------------
  76 // CVIMPSTCmdChangeOwnAvtar::ExecuteLD
  77 // --------------------------------------------------------------------------
  78 //
 
  79 void CVIMPSTCmdChangeOwnAvtar::ExecuteLD()
  80     {
  81     CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar::ExecuteLD");
  82     //push to the cleanupstack
  83     CleanupStack::PushL( this );   
  84    
  85    //Get Presence SubService           
  86       MVIMPSTEngineSubService* subService =          
  87                   (iEngine.SubService(TVIMPSTEnums::EPresence));
  88     if(subService)
  89         {
  90         MVIMPSTEnginePresenceSubService& presence = 
  91               MVIMPSTEnginePresenceSubService::Cast (*subService);
  92         presence.PublishOwnPresenceL(iData.iStatus, iData.iStatusText, iData.iFileName , iData.iMimeType, ETrue );
  93         }      
  94   
  95     CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar:: CommandFinished");
  96 
  97     if(iObserver)
  98        {
  99        iObserver->CommandFinishedL(*this);
  100        }
  101    CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar:: CommandFinished");   
  102    CleanupStack::PopAndDestroy();   
  103    CHAT_DP_FUNC_DONE("CVIMPSTCmdChangeOwnAvtar::ExecuteLD");   
  104     }
  105 
  106 
  107 // --------------------------------------------------------------------------
  108 // CVIMPSTCmdChangeOwnAvtar::AddObserver
  109 // --------------------------------------------------------------------------
  110 //
 
  111 void CVIMPSTCmdChangeOwnAvtar::AddObserver( MVIMPSTCmdObserver& aObserver )
  112     {
  113     // store the observer to notify the command completion
  114     iObserver = &aObserver;
  115     }
  116 
  117 
  118 // --------------------------------------------------------------------------
  119 // CVIMPSTCmdChangeOwnAvtar::CommandId
  120 // --------------------------------------------------------------------------
  121 //
 
  122 TInt CVIMPSTCmdChangeOwnAvtar::CommandId() const
  123    {
  124    return iCommandId;   
  125    }
  126 
  127 // --------------------------------------------------------------------------
  128 // CVIMPSTCmdChangeOwnAvtar::Result
  129 // --------------------------------------------------------------------------
  130 //
 
  131 TInt CVIMPSTCmdChangeOwnAvtar::Result() const
  132    {
  133    //return valid data regd the command operation
  134    return iError;
  135    }
  136 
  137 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdchangeownavtar.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD28.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD28.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,176 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #28/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownmessage.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdchangeownmessage.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 4 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdchangeownmessage.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginesubservice.h"
  29 #include "mvimpstenginepresencesubservice.h"
  30 
  31 // Constants
  32 
  33 // --------------------------------------------------------------------------
  34 // CVIMPSTCmdChangeOwnMessage::CVIMPSTCmdChangeOwnMessage
  35 // --------------------------------------------------------------------------
  36 //
 
  37 CVIMPSTCmdChangeOwnMessage::CVIMPSTCmdChangeOwnMessage( 
  38         const TInt aCommandId ,TStatusAndStatusText aStatus,
  39         MVIMPSTEngine& aEngine) :            
  40             iCommandId( aCommandId ),
  41             iStatus(aStatus.iStatus),
  42             iEngine(aEngine)
  43     {
  44     iStatusText.Copy(aStatus.iStatusText);
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdChangeOwnMessage::~CVIMPSTCmdChangeOwnMessage
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdChangeOwnMessage::~CVIMPSTCmdChangeOwnMessage()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdChangeOwnMessage::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdChangeOwnMessage* CVIMPSTCmdChangeOwnMessage::NewL( 
  61         const TInt aCommandId,TStatusAndStatusText aStatus,
  62         MVIMPSTEngine& aEngine)
  63     {
  64     CVIMPSTCmdChangeOwnMessage* self = new (ELeave ) CVIMPSTCmdChangeOwnMessage( aCommandId ,aStatus, aEngine);
  65     self->ConstructL(); //use contsurctL if necessary
  66     return self;
  67     }
  68 // --------------------------------------------------------------------------
  69 // CVIMPSTCmdChangeOwnMessage::ConstructL
  70 // --------------------------------------------------------------------------
  71 //
 
  72 void CVIMPSTCmdChangeOwnMessage::ConstructL()
  73     {    
  74     iError = KErrNone;
  75     }
  76 
  77 // --------------------------------------------------------------------------
  78 // CVIMPSTCmdChangeOwnMessage::ExecuteLD
  79 // --------------------------------------------------------------------------
  80 //
 
  81 void CVIMPSTCmdChangeOwnMessage::ExecuteLD()
  82     {
  83     CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage::ExecuteLD");
  84     //push to the cleanupstack
  85     CleanupStack::PushL( this );   
  86    
  87    //Get Presence SubService     
  88       MVIMPSTEngineSubService* subService =             
  89                   (iEngine.SubService(TVIMPSTEnums::EPresence));
  90     
  91     if(subService)
  92         {
  93         MVIMPSTEnginePresenceSubService& presence = 
  94               MVIMPSTEnginePresenceSubService::Cast (*subService);
  95         presence.PublishOwnPresenceL(iStatus, iStatusText);
  96         }
  97       
  98     CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage:: CommandFinished");
  99 
  100     if(iObserver)
  101        {
  102        iObserver->CommandFinishedL(*this);
  103        }
  104    CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage:: CommandFinished");   
  105    CleanupStack::PopAndDestroy();   
  106    CHAT_DP_FUNC_DONE("CVIMPSTCmdChangeOwnMessage::ExecuteLD");   
  107     }
  108 
  109 
  110 // --------------------------------------------------------------------------
  111 // CVIMPSTCmdChangeOwnMessage::AddObserver
  112 // --------------------------------------------------------------------------
  113 //
 
  114 void CVIMPSTCmdChangeOwnMessage::AddObserver( MVIMPSTCmdObserver& aObserver )
  115     {
  116     // store the observer to notify the command completion
  117     iObserver = &aObserver;
  118     }
  119 
  120 
  121 // --------------------------------------------------------------------------
  122 // CVIMPSTCmdChangeOwnMessage::CommandId
  123 // --------------------------------------------------------------------------
  124 //
 
  125 TInt CVIMPSTCmdChangeOwnMessage::CommandId() const
  126    {
  127    return iCommandId;   
  128    }
  129 
  130 // --------------------------------------------------------------------------
  131 // CVIMPSTCmdChangeOwnMessage::Result
  132 // --------------------------------------------------------------------------
  133 //
 
  134 TInt CVIMPSTCmdChangeOwnMessage::Result() const
  135    {
  136    //return valid data regd the command operation
  137    return iError;
  138    }
  139 
  140 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdchangeownmessage.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD29.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD29.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,186 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #29/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownstatus.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdchangeownstatus.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 5.1.2 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdchangeownstatus.h"
  21 #include "mvimpstenginepresencesubservice.h"
  22 
  23 #include "vimpstcmd.hrh"
  24 #include "mvimpstcmdobserver.h"
  25 #include "vimpstdebugprint.h" 
  26 
  27 #include <e32def.h>
  28 #include "mvimpstengine.h"
  29 #include "mvimpstenginesubservice.h"
  30 
  31 // Constants
  32 
  33 // --------------------------------------------------------------------------
  34 // CVIMPSTCmdChangeOwnStatus::CVIMPSTCmdChangeOwnStatus
  35 // --------------------------------------------------------------------------
  36 //
 
  37 CVIMPSTCmdChangeOwnStatus::CVIMPSTCmdChangeOwnStatus( 
  38         const TInt aCommandId ,TStatusAndStatusText aStatus,
  39         MVIMPSTEngine& aEngine) :            
  40             iCommandId( aCommandId ),
  41             iStatus(aStatus.iStatus),
  42             iEngine(aEngine)
  43     {
  44     iStatusText.Copy(aStatus.iStatusText);
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdChangeOwnStatus::~CVIMPSTCmdChangeOwnStatus
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdChangeOwnStatus::~CVIMPSTCmdChangeOwnStatus()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdChangeOwnStatus::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdChangeOwnStatus* CVIMPSTCmdChangeOwnStatus::NewL( 
  61         const TInt aCommandId,TStatusAndStatusText aStatus,
  62         MVIMPSTEngine& aEngine)
  63     {
  64     CVIMPSTCmdChangeOwnStatus* self = new (ELeave ) CVIMPSTCmdChangeOwnStatus( aCommandId ,aStatus, aEngine);
  65     self->ConstructL(); //use contsurctL if necessary
  66     return self;
  67     }
  68 // --------------------------------------------------------------------------
  69 // CVIMPSTCmdChangeOwnStatus::ConstructL
  70 // --------------------------------------------------------------------------
  71 //
 
  72 void CVIMPSTCmdChangeOwnStatus::ConstructL()
  73     {    
  74     iError = KErrNone;
  75     }
  76 
  77 // --------------------------------------------------------------------------
  78 // CVIMPSTCmdChangeOwnStatus::ExecuteLD
  79 // --------------------------------------------------------------------------
  80 //
 
  81 void CVIMPSTCmdChangeOwnStatus::ExecuteLD()
  82     {
  83     CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnStatus::ExecuteLD");
  84     //push to the cleanupstack
  85     CleanupStack::PushL( this );   
  86    
  87    //Get Presence SubService           
  88       MVIMPSTEngineSubService* subService =          
  89                   (iEngine.SubService(TVIMPSTEnums::EPresence));
  90     
  91     if(subService)
  92         {
  93         MVIMPSTEnginePresenceSubService& presence = 
  94               MVIMPSTEnginePresenceSubService::Cast (*subService);
  95                         
  96           if ( iStatus == TVIMPSTEnums::EInvisible)
  97               {
  98               //Status set to Appear Offline
  99               iError = presence.PublishOwnPresenceL(iStatus, KNullDesC);
  100               }
  101           else
  102               {
  103               iError = presence.PublishOwnPresenceL(iStatus, iStatusText);
  104               }
  105           }       
  106       
  107     if(iObserver)
  108         {
  109         iObserver->CommandFinishedL(*this);
  110         }
  111         
  112    
  113     
  114    CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnStatus:: CommandFinished");   
  115    CleanupStack::PopAndDestroy();   
  116    CHAT_DP_FUNC_DONE("CVIMPSTCmdChangeOwnStatus::ExecuteLD");   
  117     }
  118 
  119 
  120 // --------------------------------------------------------------------------
  121 // CVIMPSTCmdChangeOwnStatus::AddObserver
  122 // --------------------------------------------------------------------------
  123 //
 
  124 void CVIMPSTCmdChangeOwnStatus::AddObserver( MVIMPSTCmdObserver& aObserver )
  125     {
  126     // store the observer to notify the command completion
  127     iObserver = &aObserver;
  128     }
  129 
  130 
  131 // --------------------------------------------------------------------------
  132 // CVIMPSTCmdChangeOwnStatus::CommandId
  133 // --------------------------------------------------------------------------
  134 //
 
  135 TInt CVIMPSTCmdChangeOwnStatus::CommandId() const
  136    {
  137    return iCommandId;   
  138    }
  139 
  140 // --------------------------------------------------------------------------
  141 // CVIMPSTCmdChangeOwnStatus::Result
  142 // --------------------------------------------------------------------------
  143 //
 
  144 TInt CVIMPSTCmdChangeOwnStatus::Result() const
  145    {
  146    //return valid data regd the command operation
  147    return iError;
  148    }
  149 
  150 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdchangeownstatus.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD3.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,471 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #3/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\vimpstcmdprocess_utest.cpp
+Instrumentation mode: function
+TER: 80 % ( 12/ 15)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : vimpstcmdprocess_processarray_utest.cpp
  4 *  Part of     : vimpstcmdprocess_utest
  5 *
  6 *  Description : vimpstcmdprocess_utest class member functions
  7 *  Version:   %version: 3 %
  8 *
  9 *  Copyright (C) 2002 - 2007 Nokia Corporation.
  10 *  This material, including documentation and any related 
  11 *  computer programs, is protected by copyright controlled by 
  12 *  Nokia Corporation. All rights are reserved. Copying, 
  13 *  including reproducing, storing,  adapting or translating, any 
  14 *  or all of this material requires the prior written consent of 
  15 *  Nokia Corporation. This material also contains confidential 
  16 *  information which may not be disclosed to others without the 
  17 *  prior written consent of Nokia Corporation.
  18 *
  19 * ============================================================================
  20 */
  21 
  22 
  23 // INCLUDE FILES
  24 #include <Stiftestinterface.h>
  25 #include "vimpstcmdprocess_utest.h"
  26 #include <e32math.h>
  27 
  28 #include "cvimpstcmdfactory.h"
  29 #include "cvimpstprocessarray.h"
  30 #include "cvimpstprocessfriendrequestitem.h"
  31 #include "s_vimpstengin.h"
  32 #include "s_vimpststoragecontact.h"
  33 #include "s_vimpststoragecontactlist.h"
  34 #include "s_vimpstcmdobserver.h"
  35 //#include "s_cvimpstprocessfriendrequestitem.h"
  36 #include "mvimpstcmd.h"
  37 #include "tvimpstconsts.h"
  38 #include "s_vimpstprocessarrayItem.h"
  39 #include "s_processarrayobserver.h" 
  40 #include "s_vimpststorageserviceview.h"
  41 #include "s_storageitemmodel.h"
  42 #include "s_mccaconnection.h"
  43 
  44 
  45 // EXTERNAL DATA STRUCTURES
  46 //extern  ?external_data;
  47 
  48 // EXTERNAL FUNCTION PROTOTYPES  
  49 //extern ?external_function( ?arg_type,?arg_type );
  50 
  51 // CONSTANTS
  52 //const ?type ?constant_var = ?constant;
  53 
  54 // MACROS
  55 //#define ?macro ?macro_def
  56 
  57 // LOCAL CONSTANTS AND MACROS
  58 //const ?type ?constant_var = ?constant;
  59 //#define ?macro_name ?macro_def
  60 
  61 // MODULE DATA STRUCTURES
  62 //enum ?declaration
  63 //typedef ?declaration
  64 
  65 // LOCAL FUNCTION PROTOTYPES
  66 //?type ?function_name( ?arg_type, ?arg_type );
  67 
  68 // FORWARD DECLARATIONS
  69 //class ?FORWARD_CLASSNAME;
  70 
  71 // ============================= LOCAL FUNCTIONS ===============================
  72 
  73 // -----------------------------------------------------------------------------
  74 // ?function_name ?description.
  75 // ?description
  76 // Returns: ?value_1: ?description
  77 //          ?value_n: ?description_line1
  78 //                    ?description_line2
  79 // -----------------------------------------------------------------------------
  80 //
  81 /*
  82 ?type ?function_name(
  83     ?arg_type arg,  // ?description
  84     ?arg_type arg)  // ?description
  85     {
  86 
  87     ?code  // ?comment
  88 
  89     // ?comment
  90     ?code
  91     }
  92 */
  93 
  94 // ============================ MEMBER FUNCTIONS ===============================
  95 
  96 // -----------------------------------------------------------------------------
  97 // Cvimpstcmdprocess_utest::Cvimpstcmdprocess_utest
  98 // C++ default constructor can NOT contain any code, that
  99 // might leave.
  100 // -----------------------------------------------------------------------------
  101 //
 
  102 Cvimpstcmdprocess_utest::Cvimpstcmdprocess_utest()
  103     {
  104 
  105     }
  106 
  107 // -----------------------------------------------------------------------------
  108 // Cvimpstcmdprocess_utest::ConstructL
  109 // Symbian 2nd phase constructor can leave.
  110 //
  111 // Note: If OOM test case uses STIF Logger, then STIF Logger must be created
  112 // with static buffer size parameter (aStaticBufferSize). Otherwise Logger 
  113 // allocates memory from heap and therefore causes error situations with OOM 
  114 // testing. For more information about STIF Logger construction, see STIF Users 
  115 // Guide.
  116 // -----------------------------------------------------------------------------
  117 //
 
  118 void Cvimpstcmdprocess_utest::ConstructL()
  119     {
  120     iLog = CStifLogger::NewL( Kvimpstcmdprocess_utestLogPath, 
  121                           Kvimpstcmdprocess_utestLogFile);
  122 
  123     // Sample how to use logging
  124     _LIT( KLogStart, "vimpstcmdprocess_utest logging starts!" );
  125     iLog->Log( KLogStart );
  126 
  127     iVersionLogged = EFalse;
  128     iNumberOfTestCases = 0;
  129     }
  130 
  131 // -----------------------------------------------------------------------------
  132 // Cvimpstcmdprocess_utest::NewL
  133 // Two-phased constructor.
  134 // -----------------------------------------------------------------------------
  135 //
 
  136 Cvimpstcmdprocess_utest* Cvimpstcmdprocess_utest::NewL()
  137     {
  138     Cvimpstcmdprocess_utest* self = new (ELeave) Cvimpstcmdprocess_utest;
  139 
  140     CleanupStack::PushL( self );
  141     self->ConstructL();
  142     CleanupStack::Pop();
  143 
  144     return self;
  145 
  146     }
  147 
  148 // Destructor
 
  149 Cvimpstcmdprocess_utest::~Cvimpstcmdprocess_utest()
  150     {
  151     delete iLog;
  152     }
  153 
  154 // -----------------------------------------------------------------------------
  155 // Cvimpstcmdprocess_utest::InitL
  156 // InitL is used to initialize the Test Module.
  157 // -----------------------------------------------------------------------------
  158 //
 
  159 TInt Cvimpstcmdprocess_utest::InitL( 
  160     TFileName& /*aIniFile*/, 
  161     TBool /*aFirstTime*/ )
  162     {
  163     return KErrNone;
  164 
  165     }
  166 
  167 // -----------------------------------------------------------------------------
  168 // Cvimpstcmdprocess_utest::GetTestCasesL
  169 // GetTestCases is used to inquire test cases from the Test Module. Test
  170 // cases are stored to array of test cases. The Test Framework will be 
  171 // the owner of the data in the RPointerArray after GetTestCases return
  172 // and it does the memory deallocation. 
  173 // -----------------------------------------------------------------------------
  174 //
 
  175 TInt Cvimpstcmdprocess_utest::GetTestCasesL( 
  176     const TFileName& /*aConfig*/, 
  177     RPointerArray<TTestCaseInfo>& aTestCases )
  178     {
  179     TTestResult dummyResult;
  180     return MainTestL(Cvimpstcmdprocess_utest::EEnumerateTestCases, -1, aTestCases, dummyResult); 
  181     }
  182 
  183 // -----------------------------------------------------------------------------
  184 // Cvimpstcmdprocess_utest::RunTestCaseL
  185 // RunTestCaseL is used to run an individual test case specified 
  186 // by aTestCase. Test cases that can be run may be requested from 
  187 // Test Module by GetTestCases method before calling RunTestCase.
  188 // -----------------------------------------------------------------------------
  189 //
 
130   190 TInt Cvimpstcmdprocess_utest::RunTestCaseL( 
  191     const TInt aCaseNumber,   
  192     const TFileName& /*aConfig*/,
  193     TTestResult& aResult )
  194     {
  195     if(!iVersionLogged)
  196        {
  197        SendTestModuleVersion();
  198        iVersionLogged = ETrue;
  199        }
  200 
  201     RPointerArray<TTestCaseInfo> aTestCases; //temporary
  202 
  203     /**
  204      * SetupL is responsible for inicialization of all fields (etc.) common for all testcases
  205      * MainTestL starts required testcase
  206      * TeardownL destroys all data that was created by SetupL
  207      */
  208     TInt errSetup = KErrNone;
  209     TInt errTestcase = KErrNone;
  210     
  211     if(aCaseNumber > iNumberOfTestCases)
  212        return KErrNotFound;
  213        
  214     
  215     TRAP(errSetup, MainTestL(Cvimpstcmdprocess_utest::ERunTestCase, STIF_RUN_SETUP, aTestCases, aResult); TRAP(errTestcase, MainTestL(Cvimpstcmdprocess_utest::ERunTestCase, aCaseNumber, aTestCases, aResult))\
  216           MainTestL(Cvimpstcmdprocess_utest::ERunTestCase, STIF_RUN_TEARDOWN, aTestCases, aResult));
  217     
  218     
  219     if(errTestcase != KErrNone)
  220        {
  221        aResult.SetResult(errTestcase, _L("Testcase failed"));
  222        }
  223     if(errSetup != KErrNone)
  224        {
  225        aResult.SetResult(errSetup, _L("Setup or teardown failed"));
  226        }
  227    
  228     return KErrNone;
  229     }
  230 
  231 // -----------------------------------------------------------------------------
  232 // Cvimpstcmdprocess_utest::OOMTestQueryL
  233 // Used to check if a particular test case should be run in OOM conditions and 
  234 // which memory allocations should fail.    
  235 // -----------------------------------------------------------------------------
  236 //
 
130   237 TBool Cvimpstcmdprocess_utest::OOMTestQueryL( 
  238                                 const TFileName& /* aTestCaseFile */, 
  239                                 const TInt /*aCaseNumber*/, 
  240                                 TOOMFailureType& /* aFailureType */, 
  241                                 TInt& /*aFirstMemFailure*/, 
  242                                 TInt& /*aLastMemFailure*/ ) 
  243     {
  244     return EFalse;
  245     }
  246 
  247 // -----------------------------------------------------------------------------
  248 // Cvimpstcmdprocess_utest::OOMTestInitializeL
  249 // Used to perform the test environment setup for a particular OOM test case. 
  250 // Test Modules may use the initialization file to read parameters for Test 
  251 // Module initialization but they can also have their own configure file or 
  252 // some other routine to initialize themselves.  
  253 //
  254 // NOTE: User may add implementation for OOM test environment initialization.
  255 // Usually no implementation is required.
  256 // -----------------------------------------------------------------------------
  257 //
 
- 258 void Cvimpstcmdprocess_utest::OOMTestInitializeL( 
  259                                 const TFileName& /* aTestCaseFile */, 
  260                                 const TInt /* aCaseNumber */ )
  261     {
  262     }
  263 
  264 // -----------------------------------------------------------------------------
  265 // Cvimpstcmdprocess_utest::OOMHandleWarningL
  266 // In some cases the heap memory allocation should be skipped, either due to
  267 // problems in the OS code or components used by the code being tested, or even 
  268 // inside the tested components which are implemented this way on purpose (by 
  269 // design), so it is important to give the tester a way to bypass allocation 
  270 // failures.
  271 //
  272 // NOTE: User may add implementation for OOM test warning handling. Usually no
  273 // implementation is required.
  274 // -----------------------------------------------------------------------------
  275 //
 
- 276 void Cvimpstcmdprocess_utest::OOMHandleWarningL( 
  277                                 const TFileName& /* aTestCaseFile */,
  278                                 const TInt /* aCaseNumber */, 
  279                                 TInt& /* aFailNextValue */ )
  280     {
  281     }
  282 
  283 // -----------------------------------------------------------------------------
  284 // Cvimpstcmdprocess_utest::OOMTestFinalizeL
  285 // Used to perform the test environment cleanup for a particular OOM test case.
  286 //
  287 // NOTE: User may add implementation for OOM test environment finalization.
  288 // Usually no implementation is required.
  289 // -----------------------------------------------------------------------------
  290 //
 
- 291 void Cvimpstcmdprocess_utest::OOMTestFinalizeL( 
  292                                 const TFileName& /* aTestCaseFile */, 
  293                                 const TInt /* aCaseNumber */ )
  294     {
  295     }
  296 
  297 //-----------------------------------------------------------------------------
  298 // Cvimpstcmdprocess_utest::SendTestModuleVersion
  299 // Method used to send version of test module
  300 //-----------------------------------------------------------------------------
  301 //
 
  302 void Cvimpstcmdprocess_utest::SendTestModuleVersion()
  303    {
  304    TVersion moduleVersion;
  305    moduleVersion.iMajor = TEST_MODULE_VERSION_MAJOR;
  306    moduleVersion.iMinor = TEST_MODULE_VERSION_MINOR;
  307    moduleVersion.iBuild = TEST_MODULE_VERSION_BUILD;
  308    
  309    TFileName moduleName;
  310    moduleName = _L("vimpstcmdprocess_utest.dll");
  311 
  312    TBool newVersionOfMethod = ETrue;
  313    TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod);
  314    }
  315 
  316 // ========================== OTHER EXPORTED FUNCTIONS =========================
  317 
  318 // -----------------------------------------------------------------------------
  319 // LibEntryL is a polymorphic Dll entry point
  320 // Returns: CTestModuleBase*: Pointer to Test Module object
  321 // -----------------------------------------------------------------------------
  322 //
 
  323 EXPORT_C CTestModuleBase* LibEntryL()
  324     {
  325     return Cvimpstcmdprocess_utest::NewL();
  326 
  327     }
  328 
  329 // -----------------------------------------------------------------------------
  330 // SetRequirements handles test module parameters(implements evolution
  331 // version 1 for test module's heap and stack sizes configuring).
  332 // Returns: TInt: Symbian error code.
  333 // -----------------------------------------------------------------------------
  334 //
 
  335 EXPORT_C TInt SetRequirements( CTestModuleParam*& /*aTestModuleParam*/, 
  336                                 TUint32& /*aParameterValid*/ )
  337     {
  338 
  339     /* --------------------------------- NOTE ---------------------------------
  340     USER PANICS occurs in test thread creation when:
  341     1) "The panic occurs when the value of the stack size is negative."
  342     2) "The panic occurs if the minimum heap size specified is less
  343        than KMinHeapSize".
  344        KMinHeapSize: "Functions that require a new heap to be allocated will
  345        either panic, or will reset the required heap size to this value if
  346        a smaller heap size is specified".
  347     3) "The panic occurs if the minimum heap size specified is greater than
  348        the maximum size to which the heap can grow".
  349     Other:
  350     1) Make sure that your hardware or Symbian OS is supporting given sizes.
  351        e.g. Hardware might support only sizes that are divisible by four.
  352     ------------------------------- NOTE end ------------------------------- */
  353 
  354     // Normally STIF uses default heap and stack sizes for test thread, see:
  355     // KTestThreadMinHeap, KTestThreadMinHeap and KStackSize.
  356     // If needed heap and stack sizes can be configured here by user. Remove
  357     // comments and define sizes.
  358 
  359 /*
  360     aParameterValid = KStifTestModuleParameterChanged;
  361 
  362     CTestModuleParamVer01* param = CTestModuleParamVer01::NewL();
  363     // Stack size
  364     param->iTestThreadStackSize= 16384; // 16K stack
  365     // Heap sizes
  366     param->iTestThreadMinHeap = 4096;   // 4K heap min
  367     param->iTestThreadMaxHeap = 1048576;// 1M heap max
  368 
  369     aTestModuleParam = param;
  370 */
  371     return KErrNone;
  372 
  373     }
  374 
  375 // -----------------------------------------------------------------------------
  376 // Cvimpstcmdprocess_utest::MainTestL
  377 // Method responsible for enumerating and running test cases (and also setup and teardown activities before
  378 // and after each test case).
  379 // 
  380 // arguments:
  381 // Cvimpstcmdprocess_utest::TCallReason aRunReason - defines aim of a call - enumeration or run of test cases
  382 // TInt aTestToRun - in case of running test case - defines number of test case to run
  383 // RPointerArray<TTestCaseInfo>& aTestCases - in case of enumerating test cases - array to locate test cases infos in
  384 // -----------------------------------------------------------------------------
  385 //
 
392   386 TInt Cvimpstcmdprocess_utest::MainTestL(Cvimpstcmdprocess_utest::TCallReason aRunReason, 
  387                              TInt aTestToRun, 
  388                              RPointerArray<TTestCaseInfo>& aTestCases,
  389                              TTestResult& aResult)
  390     {
  391     if(aRunReason == Cvimpstcmdprocess_utest::ERunTestCase)
  392         {
  393         if(aTestToRun < 0)
  394            {
  395             iLog->Log(_L("Running setup or teardown"));
  396             }
  397         else
  398            {
  399            iLog->Log(_L("Running test case #%d"), aTestToRun);
  400            }
  401         }
  402     else
  403         {
  404         iLog->Log(_L("Enumerating test cases."));
  405         }
  406     
  407     TInt _test_case_no = -1;
  408     
  409     //test cases, setup and teardown include
  410    #define TEST_CASES
  411     #include "..\src\t_vimpstcmdprocess_processarray_utest.cpp"
  412     #include "..\src\t_vimpstcmdprocess_cmdfactory_utestCases.cpp"
  413    #undef TEST_CASES
  414    
  415    
  416    
  417     
  418     if(aRunReason != Cvimpstcmdprocess_utest::ERunTestCase)
  419         {
  420         iNumberOfTestCases = _test_case_no;
  421         iLog->Log(_L("Enumeration completed."));
  422         }
  423     
  424     // Test case was executed
  425     return KErrNone;
  426     }
  427 
  428 //  End of File
***TER 80% (12/15) of SOURCE FILE vimpstcmdprocess_utest.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD30.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD30.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,174 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #30/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcloseconversation.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdcloseconversation.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 3 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdcloseconversation.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginesubservice.h"
  29 #include "mvimpstengineimsubservice.h"
  30 
  31 // Constants
  32 
  33 // --------------------------------------------------------------------------
  34 // CVIMPSTCmdCloseConversation::CVIMPSTCmdCloseConversation
  35 // --------------------------------------------------------------------------
  36 //
 
  37 CVIMPSTCmdCloseConversation::CVIMPSTCmdCloseConversation( const TInt aCommandId,
  38                                                           const TDesC& aContactId,
  39                                                           MVIMPSTEngine& aEngine ):            
  40                                                           iCommandId( aCommandId ),
  41                                                           iContactId( aContactId ),
  42                                                           iEngine(aEngine)
  43     {
  44     }
  45 
  46 // --------------------------------------------------------------------------
  47 // CVIMPSTCmdCloseConversation::~CVIMPSTCmdCloseConversation
  48 // --------------------------------------------------------------------------
  49 //
 
  50 CVIMPSTCmdCloseConversation::~CVIMPSTCmdCloseConversation()
  51     {    
  52     
  53     }
  54 
  55 // --------------------------------------------------------------------------
  56 // CVIMPSTCmdCloseConversation::NewL
  57 // --------------------------------------------------------------------------
  58 //
 
  59 CVIMPSTCmdCloseConversation* CVIMPSTCmdCloseConversation::NewL( const TInt aCommandId,
  60                                                                 const TDesC& aContactId,
  61                                                                 MVIMPSTEngine& aEngine )
  62     {
  63     CVIMPSTCmdCloseConversation* self = new (ELeave ) CVIMPSTCmdCloseConversation( aCommandId ,aContactId, aEngine);
  64     self->ConstructL(); //use contsurctL if necessary
  65     return self;
  66     }
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdCloseConversation::ConstructL
  69 // --------------------------------------------------------------------------
  70 //
 
  71 void CVIMPSTCmdCloseConversation::ConstructL()
  72     {    
  73     iError = KErrNone;
  74     }
  75 
  76 // --------------------------------------------------------------------------
  77 // CVIMPSTCmdCloseConversation::ExecuteLD
  78 // --------------------------------------------------------------------------
  79 //
 
  80 void CVIMPSTCmdCloseConversation::ExecuteLD()
  81     {
  82     CHAT_DP_FUNC_ENTER("CVIMPSTCmdCloseConversation::ExecuteLD");
  83     //push to the cleanupstack
  84     CleanupStack::PushL( this );
  85     
  86     //Get IM SubService     
  87     MVIMPSTEngineSubService* subService1 =          
  88                   (iEngine.SubService(TVIMPSTEnums::EIM));
  89     
  90     if(subService1)
  91         {
  92         MVIMPSTEngineIMSubService& imSubService = 
  93               MVIMPSTEngineIMSubService::Cast (*subService1);
  94         imSubService.CloseConversationL( iContactId );
  95         }
  96    
  97     if(iObserver)
  98         {
  99         iObserver->CommandFinishedL(*this);
  100         }
  101     
  102     CHAT_DP_FUNC_ENTER("CVIMPSTCmdCloseConversation:: CommandFinished");    
  103     CleanupStack::PopAndDestroy();  
  104     CHAT_DP_FUNC_DONE("CVIMPSTCmdCloseConversation::ExecuteLD");    
  105     }
  106 
  107 
  108 // --------------------------------------------------------------------------
  109 // CVIMPSTCmdCloseConversation::AddObserver
  110 // --------------------------------------------------------------------------
  111 //
 
  112 void CVIMPSTCmdCloseConversation::AddObserver( MVIMPSTCmdObserver& aObserver )
  113     {
  114     // store the observer to notify the command completion
  115     iObserver = &aObserver;
  116     }
  117 
  118 
  119 // --------------------------------------------------------------------------
  120 // CVIMPSTCmdCloseConversation::CommandId
  121 // --------------------------------------------------------------------------
  122 //
 
  123 TInt CVIMPSTCmdCloseConversation::CommandId() const
  124     {
  125     return iCommandId;  
  126     }
  127 
  128 // --------------------------------------------------------------------------
  129 // CVIMPSTCmdCloseConversation::Result
  130 // --------------------------------------------------------------------------
  131 //
 
  132 TInt CVIMPSTCmdCloseConversation::Result() const
  133     {
  134     //return valid data regd the command operation
  135     return iError;
  136     }
  137 
  138 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdcloseconversation.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD31.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD31.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,221 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #31/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmddeletecontact.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmddaletecontact.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: ou1s60rt#14 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmddeletecontact.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "cvimpststoragemanagerfactory.h"
  29 #include "mvimpststorageserviceview.h"
  30 #include "mvimpstenginesubservice.h"
  31 #include "mvimpstenginecontactmgmtextention.h"
  32 #include "mvimpstengineextentionfeatures.h"
  33 #include "mvimpstengineimsubservice.h"
  34 #include "tvimpstenums.h"
  35 #include "tvimpstconsts.h"
  36 #include "mvimpstenginesubservice.h"
  37 #include "mvimpstenginepresencesubservice.h"
  38 #include "mvimpstenginepresencesubservice.h"
  39 
  40 // Constants
  41 _LIT( KListNameAllBuddy ,"buddylist" );
  42 _LIT( KPresenceBlockedList, "blockedcontacts");
  43 
  44 
  45 // --------------------------------------------------------------------------
  46 // CVIMPSTCmdDeleteContact::CVIMPSTCmdDeleteContact
  47 // --------------------------------------------------------------------------
  48 //
 
  49 CVIMPSTCmdDeleteContact::CVIMPSTCmdDeleteContact( 
  50         const TInt aCommandId , MVPbkContactLink* aContactLink,
  51         MVIMPSTEngine& aEngine) :            
  52             iCommandId( aCommandId ),
  53             iContactLink( aContactLink ),
  54             iEngine(aEngine)
  55     {
  56     }
  57 
  58 // --------------------------------------------------------------------------
  59 // CVIMPSTCmdDeleteContact::~CVIMPSTCmdDeleteContact
  60 // --------------------------------------------------------------------------
  61 //
 
  62 CVIMPSTCmdDeleteContact::~CVIMPSTCmdDeleteContact()
  63     {    
  64     
  65     }
  66 
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdDeleteContact::NewL
  69 // --------------------------------------------------------------------------
  70 //
 
  71 CVIMPSTCmdDeleteContact* CVIMPSTCmdDeleteContact::NewL( 
  72         const TInt aCommandId, MVPbkContactLink* aContactLink,
  73         MVIMPSTEngine& aEngine)
  74     {
  75     CVIMPSTCmdDeleteContact* self = new (ELeave ) CVIMPSTCmdDeleteContact( aCommandId ,aContactLink, aEngine);
  76     self->ConstructL(); //use contsurctL if necessary
  77     return self;
  78     }
  79 // --------------------------------------------------------------------------
  80 // CVIMPSTCmdDeleteContact::ConstructL
  81 // --------------------------------------------------------------------------
  82 //
 
  83 void CVIMPSTCmdDeleteContact::ConstructL()
  84     {    
  85     iError = KErrNone;
  86     }
  87 
  88 // --------------------------------------------------------------------------
  89 // CVIMPSTCmdDeleteContact::ExecuteLD
  90 // --------------------------------------------------------------------------
  91 //
 
  92 void CVIMPSTCmdDeleteContact::ExecuteLD()
  93     {
  94       CHAT_DP_FUNC_ENTER("CVIMPSTCmdDeleteContact::ExecuteLD");
  95     //push to the cleanupstack
  96     CleanupStack::PushL( this );       
  97     iError = KErrNone;
  98     MVIMPSTStorageServiceView* storage = CVIMPSTStorageManagerFactory::ContactListInterfaceL( iEngine.ServiceId()) ;         
  99    if(storage)
  100       {
  101       MVIMPSTStorageContact* contact = storage->FindContactByLink( *iContactLink );
  102       if (contact  )
  103          {
  104          TBuf<KUsernameMaxLength> listId;
  105          listId.Zero();
  106          listId.Append(KListNameAllBuddy);
  107          if(TVIMPSTEnums::EBlocked ==  contact->OnlineStatus())
  108             {
  109             listId.Zero();
  110             listId.Append(KPresenceBlockedList);
  111             }
  112          TPtrC userIdPtr = contact->UserId();
  113          MVIMPSTEngineSubService* subService = iEngine.SubService(TVIMPSTEnums::EPresence);
  114          MVIMPSTEngineExtentionFeatures* feature = iEngine.ExtentionFeatures(TVIMPSTEnums::EContactManagement);
  115          //Get IM SubService     
  116          MVIMPSTEngineSubService* imService =  iEngine.SubService(TVIMPSTEnums::EIM) ;   
  117          //for each userid in the service details, unsubscribe 
  118          if( userIdPtr.Length() )
  119             {
  120             if( subService )
  121                {
  122                MVIMPSTEnginePresenceSubService& presenceSubService = MVIMPSTEnginePresenceSubService::Cast(*subService);
  123                presenceSubService.UnSubscribePresenceOfSingleContactL( userIdPtr );   
  124                }
  125             if (feature )   
  126                {
  127                MVIMPSTEngineContactMgmtExtention& contactMgr = MVIMPSTEngineContactMgmtExtention::Cast(*feature);
  128                TRAP(iError, contactMgr.DeleteServerContactL(listId, userIdPtr ) );
  129                }
  130             if(imService )
  131                {
  132                MVIMPSTEngineIMSubService& imSubService = 
  133                                     MVIMPSTEngineIMSubService::Cast (*imService);
  134                TRAP_IGNORE( imSubService.CloseConversationL( userIdPtr ));
  135                }      
  136             }
  137          if( iError == KErrNone )
  138             {
  139              storage->RemoveContactL( contact );   
  140                 }
  141          } // contact
  142       } // storage
  143    CHAT_DP_FUNC_ENTER("CVIMPSTCmdDeleteContact:: CommandFinished");
  144 
  145     if(iObserver)
  146        {
  147        iObserver->CommandFinishedL(*this);
  148        }
  149    CHAT_DP_FUNC_ENTER("CVIMPSTCmdDeleteContact:: CommandFinished");   
  150    CleanupStack::PopAndDestroy();   
  151    CHAT_DP_FUNC_DONE("CVIMPSTCmdDeleteContact::ExecuteLD");   
  152     }
  153 
  154 
  155 // --------------------------------------------------------------------------
  156 // CVIMPSTCmdDeleteContact::AddObserver
  157 // --------------------------------------------------------------------------
  158 //
 
  159 void CVIMPSTCmdDeleteContact::AddObserver( MVIMPSTCmdObserver& aObserver )
  160     {
  161     // store the observer to notify the command completion
  162     iObserver = &aObserver;
  163     }
  164 
  165 
  166 // --------------------------------------------------------------------------
  167 // CVIMPSTCmdDeleteContact::CommandId
  168 // --------------------------------------------------------------------------
  169 //
 
  170 TInt CVIMPSTCmdDeleteContact::CommandId() const
  171    {
  172    return iCommandId;   
  173    }
  174 
  175 // --------------------------------------------------------------------------
  176 // CVIMPSTCmdDeleteContact::Result
  177 // --------------------------------------------------------------------------
  178 //
 
  179 TInt CVIMPSTCmdDeleteContact::Result() const
  180    {
  181    //return valid data regd the command operation
  182    return iError;
  183    }
  184 
  185 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmddeletecontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD32.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD32.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,341 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #32/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfactory.cpp
+Instrumentation mode: function
+TER: 56 % ( 5/ 9)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : cvimpstcmdfactory.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 34 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdfactory.h"
  21 #include "cvimpstprocessarray.h"
  22 #include "cvimpstcmdcca.h"
  23 #include "cvimpstcmdlogin.h"
  24 #include "cvimpstcmdlogout.h"
  25 #include "cvimpstcmdcancellogin.h"
  26 
  27 #include "mvimpstcmdobserver.h"
  28 #include "mvimpstengine.h"
  29 #include "tvimpstconsts.h"
  30 #include "cvimpststoragemanagerfactory.h"
  31 #include "cvimpstcmdaddcontact.h"
  32 #include "cvimpstcmddeletecontact.h"
  33 #include "TVImpstConsts.h"
  34 #include "cvimpstcmdchangeownstatus.h"
  35 #include "cvimpstcmdchangeownmessage.h"
  36 #include "cvimpstcmdsearch.h"
  37 #include "cvimstcmdfriendrequest.h"
  38 #include "cvimpstcmdchangeownavtar.h"
  39 #include "cvimpstcmdcloseconversation.h"
  40 #include "cvimpstcmdaddtopbk.h"
  41 #include "cvimpstcmdprocessselectedcontact.h"
  42 #include "cvimpstcmdblockcontact.h"
  43 #include "cvimpstcmdunblockcontact.h"
  44 #include "cvimpstcmdfetchblockedlist.h"
  45 
  46 
  47 // ================= MEMBER FUNCTIONS =======================
  48 
  49 
  50 // --------------------------------------------------------------------------
  51 // CVIMPSTCmdFactory::CVIMPSTCmdFactory
  52 // --------------------------------------------------------------------------
  53 //
 
76 76   54 CVIMPSTCmdFactory::CVIMPSTCmdFactory(MVIMPSTEngine& aEngine) :
  55 iEngine(aEngine)
  56     {
  57     }
  58 
  59 
  60 // --------------------------------------------------------------------------
  61 // CVIMPSTCmdFactory::ConstructL
  62 // --------------------------------------------------------------------------
  63 //
 
76 76   64 void CVIMPSTCmdFactory::ConstructL()
  65     {
  66     
  67     TUint32 serviceId = iEngine.ServiceId();
  68     
  69     //Make sure we initialise the Storage view for this service
  70     HBufC* storeName = HBufC::NewLC( KVIMPSTUISPSMaxPropertyLength );
  71    
  72    TPtr storeNamePtr( storeName->Des() );  
  73    
  74    iEngine.ContactStoreIdL(storeNamePtr);
  75    
  76     CVIMPSTStorageManagerFactory::InitialiseViewL(serviceId, *storeName, iEngine.ServiceName());
  77     
  78     CleanupStack::PopAndDestroy(); //storeName   
  79     
  80     iEngine.IntializeStorageL();
  81        
  82     
  83     //create the array process
  84     iArrayProcess =  CVIMPSTProcessArray::NewL( iEngine );
  85 
  86    iEngine.RegisterServiceSessionObserverL(this);
  87    
  88     }
  89 
  90 
  91 // --------------------------------------------------------------------------
  92 // CVIMPSTCmdFactory::NewL
  93 // --------------------------------------------------------------------------
  94 //
 
76   95 CVIMPSTCmdFactory* CVIMPSTCmdFactory::NewL(MVIMPSTEngine& aEngine)
  96     {
  97     CVIMPSTCmdFactory* self = new (ELeave) CVIMPSTCmdFactory(aEngine);
  98     CleanupStack::PushL(self);
  99     self->ConstructL();
  100     CleanupStack::Pop(self);
  101     return self;
  102     }
  103 
  104 
  105 // --------------------------------------------------------------------------
  106 // CVIMPSTCmdFactory::~CVIMPSTCmdFactory
  107 // --------------------------------------------------------------------------
  108 //
 
46 46   109 CVIMPSTCmdFactory::~CVIMPSTCmdFactory()
  110     {
  111     
  112     iEngine.UnIntializeStorage();
  113     iEngine.UnRegisterServiceSessionObserver(this);
  114     
  115     delete iArrayProcess;
  116     iArrayProcess = NULL;
  117     
  118     iObservers.Reset();
  119     iObservers.Close();
  120     }
  121 
  122 
  123 // --------------------------------------------------------------------------
  124 // CVIMPSTCmdFactory::CreateCommandForIdL
  125 // --------------------------------------------------------------------------
  126 //
 
76   127 MVIMPSTCmd* CVIMPSTCmdFactory::CreateCommandForIdL(
  128         TImCommandId aCommandId,TAny* aData /*NULL*/) 
  129     {
  130     
  131     MVIMPSTCmd* commd = NULL;
  132    
  133    //Instantiate appropriate command    
  134     switch ( aCommandId )
  135        {
  136           case ELoginService:    
  137           {           
  138           commd = CVIMPSTCmdLogin::NewL(aCommandId,*(TUint32*)aData, iEngine);
  139           break;   
  140           }
  141           
  142        case ELogoutService:
  143           {          
  144           commd = CVIMPSTCmdLogout::NewL(aCommandId,*(TUint32*)aData, iEngine);
  145           break;      
  146           }
  147        case ELaunchCCA:
  148           {
  149           commd = CVIMPSTCmdCCA::NewL(aCommandId,                                
  150                                (*(TLaunchCCAData*)aData).iIndex,
  151                                (*(TLaunchCCAData*)aData).iConnection,
  152                                *iArrayProcess, 
  153                                iEngine );
  154           break;
  155                 
  156           }
  157        case EAddContact:
  158           {
  159           commd = CVIMPSTCmdAddContact::NewL(aCommandId,*(TDesC*) aData, iEngine);
  160           break;
  161                 
  162           }
  163        case EDeleteContact:
  164           {
  165           commd = CVIMPSTCmdDeleteContact::NewL(aCommandId,*(MVPbkContactLink**) aData, iEngine);
  166           break;
  167                 
  168           }
  169        case EChangeOwnStatus:
  170           {
  171           commd = CVIMPSTCmdChangeOwnStatus::NewL(aCommandId,*(TStatusAndStatusText*) aData, iEngine);
  172           break;
  173                 
  174           }
  175        case EChangeOwnMessage:
  176           {
  177           commd = CVIMPSTCmdChangeOwnMessage::NewL(aCommandId,*(TStatusAndStatusText*) aData, iEngine);
  178           break;
  179                 
  180           }                 
  181         case ESearch:
  182           {
  183           commd = CVIMPSTCmdSearch::NewL(aCommandId,*(RArray<TVIMPSTSearchKeyData>*) aData, iEngine);
  184           break;
  185                 
  186           }    
  187         case EFriendAccpeted:
  188         case EFriendRejected:
  189             {
  190             commd = CVIMPSTCmdFriendRequest::NewL(aCommandId,*(TDesC*) aData, iEngine);
  191             break;
  192             }    
  193         case EChangeOwnAvtar:
  194             {
  195             commd = CVIMPSTCmdChangeOwnAvtar::NewL(aCommandId,*(TAvatarData*) aData, iEngine);
  196             break;
  197             }
  198         case ECloseConversation:
  199             {
  200             commd = CVIMPSTCmdCloseConversation::NewL(aCommandId,*(TDesC*) aData, iEngine);
  201             break;
  202             }
  203                   
  204         case EAddToPbk:
  205             {
  206             commd = CVIMPSTCmdAddToPbk::NewL(aCommandId,*(MVIMPSTStorageContact*) aData, iEngine);
  207             break;
  208             }
  209         case ECancelLogin:
  210             {
  211             commd = CVIMPSTCmdCancelLogin::NewL(aCommandId ,iEngine);
  212             break;
  213             }
  214         
  215         case ECmdProcessAcceptedContactNew:    
  216         case ECmdProcessSelectedContactNew:
  217         case ECmdProcessAcceptedContactExist:
  218         case ECmdProcessSelectedContactExist:
  219             {
  220             commd = CVIMPSTCmdProcessSelectedContact::NewL( aCommandId, *(TVPbkSelectedData*)aData, iEngine );                    
  221             break;
  222             }
  223         case ECmdBlockContact:
  224              {
  225              commd = CVIMPSTCmdBlockContact::NewL(aCommandId,*(TDesC*) aData, *iArrayProcess , iEngine);
  226              break;
  227                      
  228              }
  229         case ECmdUnBlockContact:
  230              {
  231              commd = CVIMPSTCmdUnBlockContact::NewL(aCommandId,*(TDesC*) aData, iEngine);
  232              break;
  233                      
  234              }
  235       case EFetchBlockedList:
  236          {
  237              commd = CVIMPSTCmdFetchBlockedContactList::NewL(aCommandId, iEngine);
  238          break;
  239          }
  240        default:
  241           {
  242           break;   
  243           }
  244              
  245        }   
  246        
  247     return commd;
  248     
  249     }
  250 
  251 // --------------------------------------------------------------------------
  252 // CVIMPSTCmdFactory::HandleServiceEventL
  253 // --------------------------------------------------------------------------
  254 //
 
- 255 void CVIMPSTCmdFactory::HandleServiceEventL
  256                 ( TVIMPSTEnums::TVIMPSTRegistrationState aState,TInt aServiceError )
  257    {
  258    // need not to store update complete state
  259    iArrayProcess->SetLoginStateL( aState );
  260    for( TInt index( 0 ); index < iObservers.Count(); ++index )
  261       {
  262       iObservers[index]->HandleCommandEventL(aState,aServiceError);
  263       }
  264 
  265    }
  266 // --------------------------------------------------------------------------
  267 // CVIMPSTCmdFactory::AddObserver
  268 // --------------------------------------------------------------------------
  269 //
 
- 270 void CVIMPSTCmdFactory::AddObserverL(MVIMPSTCmdObserver* aObserver)
  271    {
  272    if( iObservers.Find( aObserver ) == KErrNotFound )
  273         {
  274         User::LeaveIfError( iObservers.Append( aObserver ) );
  275         }
  276 
  277    }
  278 // --------------------------------------------------------------------------
  279 // CVIMPSTCmdFactory::RemoveObserver
  280 // --------------------------------------------------------------------------
  281 //
 
- 282 void CVIMPSTCmdFactory::RemoveObserver(MVIMPSTCmdObserver* aObserver)
  283    {
  284    
  285    TInt index( iObservers.Find( aObserver) );
  286     
  287     if( index != KErrNotFound )
  288         {
  289         iObservers.Remove( index );
  290         }
  291     
  292    }
  293 
  294 
  295 // --------------------------------------------------------------------------
  296 // CVIMPSTCmdFactory::GetProcessInterface
  297 // --------------------------------------------------------------------------
  298 //
 
- 299 MVIMPSTProcessArray& CVIMPSTCmdFactory::GetProcessInterface() 
  300    {
  301    return *iArrayProcess;    
  302    }   
  303 // End of File
  304 
***TER 56% (5/9) of SOURCE FILE cvimpstcmdfactory.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD33.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD33.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,169 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #33/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfetchblockedlist.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdfetchblockedlist.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2009 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 
  21 //#include "cvimpstcmdlogout.h"
  22 
  23 #include "vimpstcmd.hrh"
  24 #include "cvimpstcmdfetchblockedlist.h"
  25 #include "mvimpstcmdobserver.h"
  26 
  27 #include "vimpstdebugprint.h" 
  28 
  29 #include <e32def.h>
  30 
  31 #include "mvimpstengine.h"
  32 
  33 
  34 // Constants
  35 
  36 // --------------------------------------------------------------------------
  37 // CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList
  38 // --------------------------------------------------------------------------
  39 //
 
  40 CVIMPSTCmdFetchBlockedContactList::CVIMPSTCmdFetchBlockedContactList( 
  41         const TInt aCommandId , MVIMPSTEngine& aEngine) :            
  42             iCommandId( aCommandId ),
  43             iEngine(aEngine)
  44     {
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdFetchBlockedContactList::~CVIMPSTCmdFetchBlockedContactList()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdFetchBlockedContactList::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdFetchBlockedContactList* CVIMPSTCmdFetchBlockedContactList::NewL( 
  61         const TInt aCommandId,MVIMPSTEngine& aEngine)
  62     {
  63     CVIMPSTCmdFetchBlockedContactList* self = new (ELeave ) CVIMPSTCmdFetchBlockedContactList( aCommandId , aEngine);
  64     self->ConstructL(); //use contsurctL if necessary
  65     return self;
  66     }
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdFetchBlockedContactList::ConstructL
  69 // --------------------------------------------------------------------------
  70 //
 
  71 void CVIMPSTCmdFetchBlockedContactList::ConstructL()
  72     {
  73     
  74     }
  75 
  76 // --------------------------------------------------------------------------
  77 // CVIMPSTCmdFetchBlockedContactList::ExecuteLD
  78 // --------------------------------------------------------------------------
  79 //
 
  80 void CVIMPSTCmdFetchBlockedContactList::ExecuteLD()
  81     {
  82       CHAT_DP_FUNC_ENTER("CVIMPSTCmdFetchBlockedContactList::ExecuteLD");
  83     //push to the cleanupstack
  84     CleanupStack::PushL( this );    
  85     
  86     //call logout
  87       iEngine.FetchBlockedListL();
  88       
  89     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFetchBlockedContactList:: CommandFinished");
  90 
  91     if(iObserver)
  92        {
  93        iObserver->CommandFinishedL(*this);
  94        }
  95    CHAT_DP_FUNC_ENTER("CVIMPSTCmdFetchBlockedContactList:: CommandFinished");   
  96    CleanupStack::PopAndDestroy();   
  97    CHAT_DP_FUNC_DONE("CVIMPSTCmdFetchBlockedContactList::ExecuteLD");   
  98     }
  99 
  100 
  101 // --------------------------------------------------------------------------
  102 // CVIMPSTCmdFetchBlockedContactList::AddObserver
  103 // --------------------------------------------------------------------------
  104 //
 
  105 void CVIMPSTCmdFetchBlockedContactList::AddObserver( MVIMPSTCmdObserver& aObserver )
  106     {
  107     // store the observer to notify the command completion
  108     iObserver = &aObserver;
  109     }
  110 
  111 
  112 // --------------------------------------------------------------------------
  113 // CVIMPSTCmdFetchBlockedContactList::CommandId
  114 // --------------------------------------------------------------------------
  115 //
 
  116 TInt CVIMPSTCmdFetchBlockedContactList::CommandId() const
  117    {
  118    return iCommandId;   
  119    }
  120 
  121 // --------------------------------------------------------------------------
  122 // CVIMPSTCmdFetchBlockedContactList::Result
  123 // --------------------------------------------------------------------------
  124 //
 
  125 TInt CVIMPSTCmdFetchBlockedContactList::Result() const
  126    {
  127    //return valid data regd the command operation
  128    return 0;
  129    }
  130    
  131    
  132 
  133 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdfetchblockedlist.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD34.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD34.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,153 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #34/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdhandler.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdhandler.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 1 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdhandler.h"
  21 #include "cvimpstcmdfactory.h"
  22 
  23 #include "mvimpstcmd.h"
  24 #include "mvimpstengine.h"
  25 
  26 
  27 // --------------------------------------------------------------------------
  28 // CVIMPSTCmdHandler::CVIMPSTCmdHandler
  29 // --------------------------------------------------------------------------
  30 //
 
- 31 CVIMPSTCmdHandler::CVIMPSTCmdHandler()
  32     {
  33     }
  34 
  35 // --------------------------------------------------------------------------
  36 // CVIMPSTCmdHandler::~CVIMPSTCmdHandler
  37 // --------------------------------------------------------------------------
  38 //
 
- 39 CVIMPSTCmdHandler::~CVIMPSTCmdHandler()
  40     {
  41     delete iCommandFactory;
  42     }
  43 
  44 // --------------------------------------------------------------------------
  45 // CVIMPSTCmdHandler::NewL
  46 // --------------------------------------------------------------------------
  47 //
 
- 48 EXPORT_C CVIMPSTCmdHandler* CVIMPSTCmdHandler::NewL(MVIMPSTEngine& aEngine)
  49     {
  50     CVIMPSTCmdHandler* self = new(ELeave) CVIMPSTCmdHandler();
  51     CleanupStack::PushL(self);
  52     self->ConstructL(aEngine);
  53     CleanupStack::Pop(self);
  54     return self;
  55     }
  56 
  57 // --------------------------------------------------------------------------
  58 // CVIMPSTCmdHandler::ConstructL
  59 // --------------------------------------------------------------------------
  60 //
 
- 61 inline void CVIMPSTCmdHandler::ConstructL(MVIMPSTEngine& aEngine)
  62     {
  63     iCommandFactory = CVIMPSTCmdFactory::NewL(aEngine);
  64     }
  65 
  66 // --------------------------------------------------------------------------
  67 // CVIMPSTCmdHandler::HandleCommandL
  68 // --------------------------------------------------------------------------
  69 //
 
- 70 TBool CVIMPSTCmdHandler::HandleCommandL
  71         ( const TImCommandId aCommandId, MVIMPSTCmdObserver* aObserver, 
  72           TAny* aData )
  73     {
  74     TBool ret = EFalse;
  75 
  76    //use the variable aData to set the command related data
  77     MVIMPSTCmd* cmd = iCommandFactory->CreateCommandForIdL(
  78             aCommandId,aData);
  79     
  80     if (cmd)
  81        {
  82        cmd->AddObserver(*aObserver);
  83        TRAPD (err, cmd->ExecuteLD());
  84        User::LeaveIfError(err);
  85        ret = ETrue;
  86        }
  87 
  88     return ret;
  89     }
  90  // --------------------------------------------------------------------------
  91 // CVIMPSTCmdHandler::RegisterEventObserver
  92 // --------------------------------------------------------------------------
  93 //
 
- 94 void CVIMPSTCmdHandler::RegisterEventObserverL( MVIMPSTCmdObserver* aObserver ) 
  95    {
  96    iCommandFactory->AddObserverL(aObserver);
  97    
  98    }
  99 // --------------------------------------------------------------------------
  100 // CVIMPSTCmdHandler::UnRegisterEventObserver
  101 // --------------------------------------------------------------------------
  102 //
 
- 103 void CVIMPSTCmdHandler::UnRegisterEventObserver( MVIMPSTCmdObserver* aObserver ) 
  104    {
  105    iCommandFactory->RemoveObserver(aObserver);
  106    }
  107 // --------------------------------------------------------------------------
  108 // CVIMPSTCmdHandler::GetProcessInterface
  109 // --------------------------------------------------------------------------
  110 //
 
- 111 MVIMPSTProcessArray& CVIMPSTCmdHandler::GetProcessInterface() 
  112    {
  113    return iCommandFactory->GetProcessInterface();    
  114    }
  115    
  116    
  117 // End of File
***TER 0% (0/8) of SOURCE FILE cvimpstcmdhandler.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD35.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD35.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,166 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #35/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogin.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdlogin.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdlogin.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 
  29 // Constants
  30 
  31 // --------------------------------------------------------------------------
  32 // CVIMPSTCmdLogin::CVIMPSTCmdLogin
  33 // --------------------------------------------------------------------------
  34 //
 
  35 CVIMPSTCmdLogin::CVIMPSTCmdLogin( 
  36         const TInt aCommandId ,TUint32 aServiceID,
  37         MVIMPSTEngine& aEngine) :            
  38             iCommandId( aCommandId ),
  39             iServiceId( aServiceID ),
  40             iEngine(aEngine)
  41     {
  42     }
  43 
  44 // --------------------------------------------------------------------------
  45 // CVIMPSTCmdLogin::~CVIMPSTCmdLogin
  46 // --------------------------------------------------------------------------
  47 //
 
  48 CVIMPSTCmdLogin::~CVIMPSTCmdLogin()
  49     {    
  50     
  51     }
  52 
  53 // --------------------------------------------------------------------------
  54 // CVIMPSTCmdLogin::NewL
  55 // --------------------------------------------------------------------------
  56 //
 
  57 CVIMPSTCmdLogin* CVIMPSTCmdLogin::NewL( 
  58         const TInt aCommandId,TUint32 aServiceID,
  59         MVIMPSTEngine& aEngine)
  60     {
  61     CVIMPSTCmdLogin* self = new (ELeave ) CVIMPSTCmdLogin( aCommandId ,aServiceID, aEngine);
  62     self->ConstructL(); //use contsurctL if necessary
  63     return self;
  64     }
  65 // --------------------------------------------------------------------------
  66 // CVIMPSTCmdLogin::ConstructL
  67 // --------------------------------------------------------------------------
  68 //
 
  69 void CVIMPSTCmdLogin::ConstructL()
  70     {    
  71    
  72     }
  73 
  74 // --------------------------------------------------------------------------
  75 // CVIMPSTCmdLogin::ExecuteLD
  76 // --------------------------------------------------------------------------
  77 //
 
  78 void CVIMPSTCmdLogin::ExecuteLD()
  79     {
  80       CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd::ExecuteLD");
  81     //push to the cleanupstack
  82     CleanupStack::PushL( this );   
  83    
  84    //call login
  85       iEngine.Login();
  86       
  87     CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished");
  88 
  89     if(iObserver)
  90        {
  91        iObserver->CommandFinishedL(*this);
  92        }
  93    CHAT_DP_FUNC_ENTER("CVIMPSTEnableServiceCmd:: CommandFinished");   
  94    CleanupStack::PopAndDestroy();   
  95    CHAT_DP_FUNC_DONE("CVIMPSTEnableServiceCmd::ExecuteLD");   
  96     }
  97 
  98 
  99 // --------------------------------------------------------------------------
  100 // CVIMPSTCmdLogin::AddObserver
  101 // --------------------------------------------------------------------------
  102 //
 
  103 void CVIMPSTCmdLogin::AddObserver( MVIMPSTCmdObserver& aObserver )
  104     {
  105     // store the observer to notify the command completion
  106     iObserver = &aObserver;
  107     }
  108 
  109 
  110 // --------------------------------------------------------------------------
  111 // CVIMPSTCmdLogin::CommandId
  112 // --------------------------------------------------------------------------
  113 //
 
  114 TInt CVIMPSTCmdLogin::CommandId() const
  115    {
  116    return iCommandId;   
  117    }
  118 
  119 // --------------------------------------------------------------------------
  120 // CVIMPSTCmdLogin::Result
  121 // --------------------------------------------------------------------------
  122 //
 
  123 TInt CVIMPSTCmdLogin::Result() const
  124    {
  125    //return valid data regd the command operation
  126    //must be freed in Dtor
  127    return 0;
  128    }
  129 
  130 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdlogin.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD36.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD36.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,168 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #36/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogout.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdlogout.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 5 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 
  21 #include "cvimpstcmdlogout.h"
  22 
  23 #include "vimpstcmd.hrh"
  24 #include "mvimpstcmdobserver.h"
  25 #include "vimpstdebugprint.h" 
  26 
  27 #include <e32def.h>
  28 
  29 #include "mvimpstengine.h"
  30 
  31 
  32 // Constants
  33 
  34 // --------------------------------------------------------------------------
  35 // CVIMPSTCmdLogout::CVIMPSTCmdLogout
  36 // --------------------------------------------------------------------------
  37 //
 
  38 CVIMPSTCmdLogout::CVIMPSTCmdLogout( 
  39         const TInt aCommandId ,TUint32 aServiceID,
  40         MVIMPSTEngine& aEngine) :            
  41             iCommandId( aCommandId ),
  42             iServiceId( aServiceID ),
  43             iEngine(aEngine)
  44     {
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdLogout::~CVIMPSTCmdLogout
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdLogout::~CVIMPSTCmdLogout()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdLogout::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdLogout* CVIMPSTCmdLogout::NewL( 
  61         const TInt aCommandId,TUint32 aServiceID,
  62         MVIMPSTEngine& aEngine)
  63     {
  64     CVIMPSTCmdLogout* self = new (ELeave ) CVIMPSTCmdLogout( aCommandId ,aServiceID, aEngine);
  65     self->ConstructL(); //use contsurctL if necessary
  66     return self;
  67     }
  68 // --------------------------------------------------------------------------
  69 // CVIMPSTCmdLogout::ConstructL
  70 // --------------------------------------------------------------------------
  71 //
 
  72 void CVIMPSTCmdLogout::ConstructL()
  73     {
  74     
  75     }
  76 
  77 // --------------------------------------------------------------------------
  78 // CVIMPSTCmdLogout::ExecuteLD
  79 // --------------------------------------------------------------------------
  80 //
 
  81 void CVIMPSTCmdLogout::ExecuteLD()
  82     {
  83       CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd::ExecuteLD");
  84     //push to the cleanupstack
  85     CleanupStack::PushL( this );    
  86     
  87     //call logout
  88       iEngine.LogoutL();
  89       
  90     CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd:: CommandFinished");
  91 
  92     if(iObserver)
  93        {
  94        iObserver->CommandFinishedL(*this);
  95        }
  96    CHAT_DP_FUNC_ENTER("CVIMPSTDisableServiceCmd:: CommandFinished");   
  97    CleanupStack::PopAndDestroy();   
  98    CHAT_DP_FUNC_DONE("CVIMPSTDisableServiceCmd::ExecuteLD");   
  99     }
  100 
  101 
  102 // --------------------------------------------------------------------------
  103 // CVIMPSTCmdLogout::AddObserver
  104 // --------------------------------------------------------------------------
  105 //
 
  106 void CVIMPSTCmdLogout::AddObserver( MVIMPSTCmdObserver& aObserver )
  107     {
  108     // store the observer to notify the command completion
  109     iObserver = &aObserver;
  110     }
  111 
  112 
  113 // --------------------------------------------------------------------------
  114 // CVIMPSTCmdLogout::CommandId
  115 // --------------------------------------------------------------------------
  116 //
 
  117 TInt CVIMPSTCmdLogout::CommandId() const
  118    {
  119    return iCommandId;   
  120    }
  121 
  122 // --------------------------------------------------------------------------
  123 // CVIMPSTCmdLogout::Result
  124 // --------------------------------------------------------------------------
  125 //
 
  126 TInt CVIMPSTCmdLogout::Result() const
  127    {
  128    //return valid data regd the command operation
  129    return 0;
  130    }
  131 
  132 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdlogout.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD37.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD37.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,289 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #37/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdprocessselectedcontact.cpp
+Instrumentation mode: function
+TER: 100 % ( 9/ 9)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdprocessselectedcontact.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 12 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 //include files
  20 #include "cvimpstcmdprocessselectedcontact.h"
  21 
  22 #include <MVPbkStoreContact.h>
  23 #include <MVPbkFieldType.h>
  24 #include <MVPbkContactFieldTextData.h>
  25 #include <MVPbkContactFieldUriData.h>
  26 
  27 #include "vimpstcmd.hrh"
  28 #include "mvimpstcmdobserver.h"
  29 #include "vimpstdebugprint.h"
  30 
  31 #include <e32def.h>
  32 #include <mvpbkcontactlinkarray.h>
  33 #include "mvimpstengine.h"
  34 
  35 #include "mvimpststorageserviceview.h"
  36 #include "cvimpststoragemanagerfactory.h"
  37 #include "mvimpstenginecontactmgmtextention.h"
  38 #include "tvimpstconsts.h"
  39 #include "mvimpstenginesubservice.h"
  40 #include "mvimpstenginepresencesubservice.h"
  41 
  42 // Constants
  43 _LIT( KListNameAllBuddy ,"buddylist" );
  44 
  45 // --------------------------------------------------------------------------
  46 // CVIMPSTCmdProcessSelectedContact::CVIMPSTCmdProcessSelectedContact
  47 // --------------------------------------------------------------------------
  48 //
 
16 16   49 CVIMPSTCmdProcessSelectedContact::CVIMPSTCmdProcessSelectedContact( const TInt aCommandId ,
  50                                                                     TVPbkSelectedData& aSelectedEntries,
  51                                                                     MVIMPSTEngine& aEngine ):            
  52                                                                     iCommandId( aCommandId ),
  53                                                                     iSelectedEntries( aSelectedEntries ),
  54                                                                     iEngine(aEngine)
  55     {
  56     }
  57 
  58 // --------------------------------------------------------------------------
  59 // CVIMPSTCmdProcessSelectedContact::~CVIMPSTCmdProcessSelectedContact
  60 // --------------------------------------------------------------------------
  61 //
 
16 16   62 CVIMPSTCmdProcessSelectedContact::~CVIMPSTCmdProcessSelectedContact()
  63     {    
  64     
  65     }
  66 
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdProcessSelectedContact::NewL
  69 // --------------------------------------------------------------------------
  70 //
 
16   71 CVIMPSTCmdProcessSelectedContact* CVIMPSTCmdProcessSelectedContact::NewL( const TInt aCommandId,
  72                                                                           TVPbkSelectedData& aSelectedEntries,
  73                                                                           MVIMPSTEngine& aEngine )
  74     {
  75     CVIMPSTCmdProcessSelectedContact* self = new (ELeave ) CVIMPSTCmdProcessSelectedContact( aCommandId ,aSelectedEntries, aEngine);
  76     self->ConstructL(); //use contsurctL if necessary
  77     return self;
  78     }
  79 // --------------------------------------------------------------------------
  80 // CVIMPSTCmdProcessSelectedContact::ConstructL
  81 // --------------------------------------------------------------------------
  82 //
 
16 16   83 void CVIMPSTCmdProcessSelectedContact::ConstructL()
  84     {    
  85     iError = KErrNone;
  86     }
  87 
  88 // --------------------------------------------------------------------------
  89 // CVIMPSTCmdProcessSelectedContact::ExecuteLD
  90 // --------------------------------------------------------------------------
  91 //
 
16 16   92 void CVIMPSTCmdProcessSelectedContact::ExecuteLD()
  93     {
  94     CHAT_DP_FUNC_ENTER("CVIMPSTCmdProcessSelectedContact::ExecuteLD");
  95     //push to the cleanupstack
  96     CleanupStack::PushL( this );
  97     MVIMPSTStorageServiceView* storage = CVIMPSTStorageManagerFactory::ContactListInterfaceL( iEngine.ServiceId() ) ;
  98     if(storage)
  99         {
  100         TBool localStore = storage->IsLocalStore();
  101         //retrieve contact from links  
  102         TPtrC8 pacledLinks = iSelectedEntries.iPackedLinks->Des();
  103         TInt  count = storage->RetriveLinkXSPIdsL( pacledLinks  );
  104         if( !count )
  105             {
  106             iError = KErrGeneral;   
  107             }
  108        if( (iCommandId == ECmdProcessSelectedContactNew  ||
  109                iCommandId == ECmdProcessSelectedContactExist )&& 
  110                iError == KErrNone )
  111            {
  112            MVIMPSTEngineExtentionFeatures* contactFeature = iEngine.ExtentionFeatures(TVIMPSTEnums::EContactManagement);
  113            MVIMPSTEngineSubService* presenceService = iEngine.SubService(TVIMPSTEnums::EPresence);
  114             for(TInt index = 0; index < count; index++ )
  115                {
  116                TPtrC xspIdPtr = storage->GetRetrieveXSPIdL( index ); // xspId is owned here
  117                if( localStore )
  118                {
  119                iError = KErrNone;
  120                if( xspIdPtr.Length() )
  121                   {
  122                   if( IsContactBlocked( xspIdPtr ) )
  123                      {
  124                      iError = EErrExistInBlockList;   
  125                      }
  126                   else if( storage->FindContactByUserId( xspIdPtr ) )
  127                      {
  128                      iError = EErrExistInContactList;   
  129                      }
  130                   else if( contactFeature  )
  131                      {
  132                      // add to server and store if sucess
  133                      MVIMPSTEngineContactMgmtExtention& contactMgr = 
  134                                  MVIMPSTEngineContactMgmtExtention::Cast (*contactFeature);
  135                      iError = contactMgr.AddServerContactL( KListNameAllBuddy, xspIdPtr ,KNullDesC );                     
  136                      }
  137                   }
  138                if(KErrNone == iError )
  139                   {
  140                   iError = storage->CreateNewContactFromRetrivedIdL( index );
  141                   }
  142                else if( iCommandId == ECmdProcessSelectedContactNew  )
  143                    {
  144                    // delete the contact which got created in phonebook but failed to add in servicetab
  145                    storage->DeleteNewContactFromRetrivedIdL( index );
  146                    }
  147                }
  148                else if( xspIdPtr.Length() )
  149                {
  150                // xspId ownership is transfered to iXSPList
  151                iSelectedEntries.iXSPList.AppendL( xspIdPtr.AllocL() );
  152                }
  153                  }
  154            }
  155        else if( ( iCommandId == ECmdProcessAcceptedContactNew || 
  156                iCommandId == ECmdProcessAcceptedContactExist )&& 
  157                iError == KErrNone )// for accepted contact 
  158           {
  159           // just add and return
  160           // contact is already added in storage in RetrieveContactL
  161           // if sucess ,storage will take ownership else we need to delete contact
  162           iError = storage->CreateNewContactFromRetrivedIdL( 0 ); // for accepting invitation take the first contact which is retirved
  163           if( iError != KErrNone && iCommandId == ECmdProcessAcceptedContactNew )
  164               {
  165               // delete the contact which got created in phonebook but failed to add in servicetab
  166               storage->DeleteNewContactFromRetrivedIdL( 0 );
  167               }
  168           }
  169      if( !localStore )
  170         {
  171         // in case of server we have a selection dialog 
  172         // so this error does not matter 
  173         // set to 0
  174         iError = KErrNone;   
  175         }
  176        }
  177     else
  178         {
  179         iError = KErrGeneral;
  180         }
  181     if(iObserver)
  182         {
  183         iObserver->CommandFinishedL(*this);
  184         }
  185     CHAT_DP_FUNC_ENTER("CVIMPSTCmdProcessSelectedContact:: CommandFinished");    
  186     CleanupStack::PopAndDestroy();  
  187     CHAT_DP_FUNC_DONE("CVIMPSTCmdProcessSelectedContact::ExecuteLD");    
  188     }
  189 
  190 
  191 // --------------------------------------------------------------------------
  192 // CVIMPSTCmdProcessSelectedContact::AddObserver
  193 // --------------------------------------------------------------------------
  194 //
 
  195 void CVIMPSTCmdProcessSelectedContact::AddObserver( MVIMPSTCmdObserver& aObserver )
  196     {
  197     // store the observer to notify the command completion
  198     iObserver = &aObserver;
  199     }
  200 
  201 
  202 // --------------------------------------------------------------------------
  203 // CVIMPSTCmdProcessSelectedContact::CommandId
  204 // --------------------------------------------------------------------------
  205 //
 
16   206 TInt CVIMPSTCmdProcessSelectedContact::CommandId() const
  207     {
  208     return iCommandId;  
  209     }
  210 
  211 // --------------------------------------------------------------------------
  212 // CVIMPSTCmdProcessSelectedContact::Result
  213 // --------------------------------------------------------------------------
  214 //
 
  215 TInt CVIMPSTCmdProcessSelectedContact::Result() const
  216     {
  217     //return valid data regd the command operation
  218     return iError;
  219     }
  220  
  221  // --------------------------------------------------------------------------
  222 // CVIMPSTCmdProcessSelectedContact::Result
  223 // --------------------------------------------------------------------------
  224 //
  225 // --------------------------------------------------------------------------
  226 // CVIMPSTCmdProcessSelectedContact::IsContactBlocked
  227 // --------------------------------------------------------------------------
 
24   228 TBool CVIMPSTCmdProcessSelectedContact::IsContactBlocked(const TDesC& aUserId)
  229    {
  230       MVIMPSTEngineSubService* subService =          
  231                         (iEngine.SubService(TVIMPSTEnums::EPresence));
  232     if(subService)
  233         {
  234         MVIMPSTEnginePresenceSubService& presence = 
  235               MVIMPSTEnginePresenceSubService::Cast (*subService);
  236               
  237         RPointerArray<HBufC> *blockedlist = presence .GetBlockedList();
  238         
  239         if(blockedlist)
  240            {
  241            for(TInt i=0; i<blockedlist->Count(); ++i)
  242             {
  243             if(0 == aUserId.CompareC((*blockedlist)[i]->Des()))
  244                {
  245                return ETrue;
  246                }
  247             }
  248            }
  249         }
  250     return EFalse;  
  251    }       
  252 // End of File
***TER 100% (9/9) of SOURCE FILE cvimpstcmdprocessselectedcontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD38.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD38.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,177 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #38/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdsearch.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdsearch.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 4 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdsearch.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginesearchmgrextention.h"
  29 
  30 #include "mvimpstengineextentionfeatures.h"
  31 
  32 // --------------------------------------------------------------------------
  33 // CVIMPSTCmdSearch::CVIMPSTCmdSearch
  34 // --------------------------------------------------------------------------
  35 //
 
  36 CVIMPSTCmdSearch::CVIMPSTCmdSearch( 
  37                           const TInt aCommandId ,
  38                           RArray<TVIMPSTSearchKeyData>& aKeyDataArray,
  39                           MVIMPSTEngine& aEngine) :            
  40             iCommandId( aCommandId ),
  41             iKeyDataArray( aKeyDataArray ),
  42             iEngine(aEngine)
  43     {
  44     
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdSearch::~CVIMPSTCmdSearch
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdSearch::~CVIMPSTCmdSearch()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdSearch::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdSearch* CVIMPSTCmdSearch::NewL( 
  61                              const TInt aCommandId,
  62                              RArray<TVIMPSTSearchKeyData>& aKeyDataArray,
  63                              MVIMPSTEngine& aEngine )
  64     {
  65     CVIMPSTCmdSearch* self = new (ELeave ) CVIMPSTCmdSearch( aCommandId ,aKeyDataArray, aEngine);
  66     self->ConstructL(); //use contsurctL if necessary
  67     return self;
  68     }
  69 // --------------------------------------------------------------------------
  70 // CVIMPSTCmdSearch::ConstructL
  71 // --------------------------------------------------------------------------
  72 //
 
  73 void CVIMPSTCmdSearch::ConstructL()
  74     {    
  75     iError = KErrNone;
  76     }
  77 
  78 // --------------------------------------------------------------------------
  79 // CVIMPSTCmdSearch::ExecuteLD
  80 // --------------------------------------------------------------------------
  81 //
 
  82 void CVIMPSTCmdSearch::ExecuteLD()
  83     {
  84     CHAT_DP_FUNC_ENTER("CVIMPSTCmdSearch::ExecuteLD");
  85     //push to the cleanupstack
  86     CleanupStack::PushL( this );   
  87    
  88    //make search request using search manager in engine 
  89    MVIMPSTEngineExtentionFeatures* feature = iEngine.ExtentionFeatures(TVIMPSTEnums::ESearch);
  90    if (feature)
  91       {
  92       MVIMPSTEngineSearchMgrExtention& searchMgr = 
  93                MVIMPSTEngineSearchMgrExtention::Cast
  94                (*feature);   
  95          
  96          iError = searchMgr.SearchContactsL( iKeyDataArray );      
  97       }        
  98       
  99     CHAT_DP_FUNC_ENTER("CVIMPSTCmdSearch:: CommandFinished");
  100 
  101     if(iObserver)
  102        {
  103        iObserver->CommandFinishedL(*this);
  104        }
  105    CHAT_DP_FUNC_ENTER("CVIMPSTCmdSearch:: CommandFinished");   
  106    CleanupStack::PopAndDestroy();   
  107    CHAT_DP_FUNC_DONE("CVIMPSTCmdSearch::ExecuteLD");   
  108     }
  109 
  110 
  111 // --------------------------------------------------------------------------
  112 // CVIMPSTCmdSearch::AddObserver
  113 // --------------------------------------------------------------------------
  114 //
 
  115 void CVIMPSTCmdSearch::AddObserver( MVIMPSTCmdObserver& aObserver )
  116     {
  117     // store the observer to notify the command completion
  118     iObserver = &aObserver;
  119     }
  120 
  121 
  122 // --------------------------------------------------------------------------
  123 // CVIMPSTCmdSearch::CommandId
  124 // --------------------------------------------------------------------------
  125 //
 
  126 TInt CVIMPSTCmdSearch::CommandId() const
  127    {
  128    return iCommandId;   
  129    }
  130 
  131 // --------------------------------------------------------------------------
  132 // CVIMPSTCmdSearch::Result
  133 // --------------------------------------------------------------------------
  134 //
 
  135 TInt CVIMPSTCmdSearch::Result() const
  136    {
  137    //return valid data regd the command operation
  138    return iError;
  139    }
  140 
  141 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdsearch.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD39.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD39.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,185 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #39/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdunblockcontact.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstcmdunblockcontact.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version:  8 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimpstcmdunblockcontact.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "cvimpststoragemanagerfactory.h"
  29 #include "mvimpststorageserviceview.h"
  30 
  31 #include "mvimpstenginesubservice.h"
  32 #include "mvimpstenginepresencesubservice.h"
  33 #include "tvimpstconsts.h"
  34 // --------------------------------------------------------------------------
  35 // CVIMPSTCmdUnBlockContact::CVIMPSTCmdDeleteContact
  36 // --------------------------------------------------------------------------
  37 //
 
  38 CVIMPSTCmdUnBlockContact::CVIMPSTCmdUnBlockContact( 
  39         const TInt aCommandId ,  const TDesC& aContactId,
  40         MVIMPSTEngine& aEngine) :            
  41             iCommandId( aCommandId ),
  42             iContactId( aContactId ),
  43             iEngine(aEngine)
  44     {
  45     }
  46 
  47 // --------------------------------------------------------------------------
  48 // CVIMPSTCmdUnBlockContact::~CVIMPSTCmdUnBlockContact
  49 // --------------------------------------------------------------------------
  50 //
 
  51 CVIMPSTCmdUnBlockContact::~CVIMPSTCmdUnBlockContact()
  52     {    
  53     
  54     }
  55 
  56 // --------------------------------------------------------------------------
  57 // CVIMPSTCmdUnBlockContact::NewL
  58 // --------------------------------------------------------------------------
  59 //
 
  60 CVIMPSTCmdUnBlockContact* CVIMPSTCmdUnBlockContact::NewL( 
  61         const TInt aCommandId, const TDesC& aContactId,
  62         MVIMPSTEngine& aEngine)
  63     {
  64     CVIMPSTCmdUnBlockContact* self = new (ELeave ) CVIMPSTCmdUnBlockContact( aCommandId ,aContactId, aEngine);
  65     self->ConstructL(); //use contsurctL if necessary
  66     return self;
  67     }
  68 // --------------------------------------------------------------------------
  69 // CVIMPSTCmdUnBlockContact::ConstructL
  70 // --------------------------------------------------------------------------
  71 //
 
  72 void CVIMPSTCmdUnBlockContact::ConstructL()
  73     {    
  74     iError = KErrNotFound;
  75     }
  76 
  77 // --------------------------------------------------------------------------
  78 // CVIMPSTCmdUnBlockContact::ExecuteLD
  79 // --------------------------------------------------------------------------
  80 //
 
  81 void CVIMPSTCmdUnBlockContact::ExecuteLD()
  82     {
  83     CHAT_DP_FUNC_ENTER("CVIMPSTCmdUnBlockContact::ExecuteLD");
  84     //push to the cleanupstack
  85     CleanupStack::PushL( this );       
  86     if(iContactId.Length())
  87         {
  88         //Get Presence SubService           
  89         MVIMPSTEngineSubService* subService =          
  90         (iEngine.SubService(TVIMPSTEnums::EPresence));
  91         if (subService && iEngine.IsBlockSupportedL())
  92             {
  93             MVIMPSTEnginePresenceSubService& presence = 
  94             MVIMPSTEnginePresenceSubService::Cast (*subService);
  95             HBufC* userId = HBufC::NewLC(KPropertyMaxLength); //  2 onto cleanup stack
  96             TPtr userIdPtr = userId->Des();
  97             userIdPtr = iContactId;
  98           
  99             CHAT_DP( D_CHAT_LIT(" -> userId: %s" ), &userIdPtr);
  100             iError = presence.RemoveFromBlockListL(*userId);
  101             CHAT_DP( D_CHAT_LIT(" -> iError: %d" ), iError);
  102             CleanupStack::PopAndDestroy(userId);//2
  103           
  104             }
  105         }
  106 
  107     CHAT_DP_FUNC_ENTER("CVIMPSTCmdUnBlockContact:: CommandFinished");
  108 
  109     if(iObserver)
  110         {
  111         iObserver->CommandFinishedL(*this);
  112         }
  113     CHAT_DP_FUNC_ENTER("CVIMPSTCmdUnBlockContact:: CommandFinished"); 
  114     CleanupStack::PopAndDestroy();  
  115     CHAT_DP_FUNC_DONE("CVIMPSTCmdUnBlockContact::ExecuteLD"); 
  116     }
  117 
  118 
  119 // --------------------------------------------------------------------------
  120 // CVIMPSTCmdUnBlockContact::AddObserver
  121 // --------------------------------------------------------------------------
  122 //
 
  123 void CVIMPSTCmdUnBlockContact::AddObserver( MVIMPSTCmdObserver& aObserver )
  124     {
  125     // store the observer to notify the command completion
  126     iObserver = &aObserver;
  127     }
  128 
  129 
  130 // --------------------------------------------------------------------------
  131 // CVIMPSTCmdUnBlockContact::CommandId
  132 // --------------------------------------------------------------------------
  133 //
 
  134 TInt CVIMPSTCmdUnBlockContact::CommandId() const
  135    {
  136    return iCommandId;   
  137    }
  138 
  139 // --------------------------------------------------------------------------
  140 // CVIMPSTCmdUnBlockContact::Result
  141 // --------------------------------------------------------------------------
  142 //
 
  143 TInt CVIMPSTCmdUnBlockContact::Result() const
  144    {
  145    //return valid data regd the command operation
  146    return iError;
  147    }
  148 
  149 // End of File
***TER 100% (8/8) of SOURCE FILE cvimpstcmdunblockcontact.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD4.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,78 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #4/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_ccafactory.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 2)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 
  2 /*
  3  * ============================================================================
  4  *  Name        : ccafactory.cpp
  5  *  Part of     : CCA / CCAClient
  6  *  Description : Factory class for CCA Client
  7  *  Version     : %version: 2 % << Don't touch! Updated by Synergy at check-out.
  8  *
  9  *  Copyright © 2007 Nokia.  All rights reserved.
  10  *  This material, including documentation and any related computer
  11  *  programs, is protected by copyright controlled by Nokia.  All
  12  *  rights are reserved.  Copying, including reproducing, storing,
  13  *  adapting or translating, any or all of this material requires the
  14  *  prior written consent of Nokia.  This material also contains
  15  *  confidential information which may not be disclosed to others
  16  *  without the prior written consent of Nokia.
  17  * ============================================================================
  18  * Template version: 4.2
  19  */
  20 #include <ccafactory.h>
  21 #include "s_mccaparameter.h"
  22 
  23 class MCCAConnection;
  24 class MCCAParameter;
  25 
  26     /**
  27      * Create new CCA client parameter entity.
  28      * Ownership is transferred.
  29      * @since S60 5.0
  30      * @return MCCAParameter, ownership is transferred.
  31      */
 
- 32     EXPORT_C  MCCAParameter* TCCAFactory::NewParameterL( )
  33     {
  34     MCCAParameter* parameter = MCCAParameterstub::NewL();
  35     return parameter;
  36     }
  37 
  38     /**
  39      * Create new CCA client connection entity.
  40      * Ownership is transferred.
  41      * @since S60 5.0
  42      * @return MCCAConnection, ownership is transferred.
  43      */
 
- 44     EXPORT_C  MCCAConnection* TCCAFactory::NewConnectionL( )
  45     {
  46     }
  47 // End of File
  48     
***TER 0% (0/2) of SOURCE FILE s_ccafactory.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD40.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD40.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,1949 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #40/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarray.cpp
+Instrumentation mode: function
+TER: 87 % ( 47/ 54)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2  * ===========================================================================
  3  *  Name        : cvimpstprocessarray.cpp
  4  *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5  *  Description : 
  6  *  Version     : %version: 68.1.31 %
  7  *
  8  *  Copyright © 2008 Nokia.  All rights reserved.
  9  *  This material, including documentation and any related computer
  10  *  programs, is protected by copyright controlled by Nokia.  All
  11  *  rights are reserved.  Copying, including reproducing, storing,
  12  *  adapting or translating, any or all of this material requires the
  13  *  prior written consent of Nokia.  This material also contains
  14  *  confidential information which may not be disclosed to others
  15  *  without the prior written consent of Nokia.
  16  * ============================================================================
  17  */
  18 
  19 // INCLUDE FILES
  20 #include <coemain.h>
  21 #include    "vimpstdebugprint.h" 
  22 
  23 #include "cvimpstprocessarray.h"
  24 
  25 #include "mvimpstprocessarrayobserver.h"
  26 #include "cvimpststoragemanagerfactory.h"
  27 #include "mvimpststorageserviceview.h"
  28 #include "TVIMPSTEnums.h"
  29 #include "cvimpstprocessarrayitem.h"
  30 #include "mvimpststorageitemmodel.h"
  31 #include "tvimpstconsts.h"
  32 #include "mvimpststoragecontactlist.h"
  33 #include "mvimpststoragevpbkstorehandler.h"
  34 #include "mvimpstengine.h"
  35 #include "cvimpstprocessfriendrequestitem.h"
  36 #include "mvimpstenginesubservice.h"
  37 #include <mvpbkfieldtype.h>
  38 #include <mvpbkcontactfielduridata.h>
  39 #include <MVPbkContactFieldTextData.h>
  40 //rsg file for resource id
  41 #include <vimpstuires.rsg>
  42 #include "vimpstutils.h"
  43 #include <mvpbkcontactlink.h>
  44 #include <vpbkeng.rsg>
  45 #include "mvimpstengineimsubservice.h"
  46 #include "mvimpstenginepresencesubservice.h"
  47 #include "vimpstdebugtrace.h"
  48 #include <APGTASK.H> 
  49 #include "imcvuiparams.h"
  50 
  51 // --------------------------------------------------------------------------
  52 // CVIMPSTProcessArray::CIMArrayProcess
  53 // --------------------------------------------------------------------------
  54 //
 
126 126   55 CVIMPSTProcessArray::CVIMPSTProcessArray( MVIMPSTEngine& aEngine)
  56 :iOwnDataIndex(KOwnDataIndex),
  57 iContactListIndex(KOwnDataIndex),
  58 iEngine(aEngine)
  59         {
  60         iServiceId = iEngine.ServiceId();
  61         }
  62 
  63 // --------------------------------------------------------------------------
  64 // CVIMPSTProcessArray::~CVIMPSTProcessArray
  65 // --------------------------------------------------------------------------
  66 //
 
46 46   67 CVIMPSTProcessArray::~CVIMPSTProcessArray()
  68     {
  69     TRACE( T_LIT("CVIMPSTProcessArray::~CVIMPSTProcessArray Start") );
  70     if(iContactInterface)
  71         {
  72         iContactInterface->RemoveObserver( this );   
  73         }
  74     iItemArray.ResetAndDestroy();
  75     iItemArray.Close();
  76     iUnKnownContactArray.Close();
  77     iAddRequestArray.Close();
  78     
  79     if(iData)
  80         {
  81         delete iData;
  82         iData = NULL;
  83         }
  84     //Get IM SubService     
  85     MVIMPSTEngineSubService* subService1 =          
  86     (iEngine.SubService(TVIMPSTEnums::EIM));
  87 
  88     if(subService1)
  89         {
  90         MVIMPSTEngineIMSubService& imSubService = 
  91         MVIMPSTEngineIMSubService::Cast (*subService1);
  92         imSubService.UnRegisterChatObserver(this);
  93         }
  94 
  95     //subscribe for ownpresencechangeevent             
  96     MVIMPSTEngineSubService* subService =          
  97     (iEngine.SubService(TVIMPSTEnums::EPresence));
  98 
  99     if(subService)
  100         {
  101         MVIMPSTEnginePresenceSubService& presence = 
  102         MVIMPSTEnginePresenceSubService::Cast (*subService);
  103         presence.UnRegisterPresenceEventObserver(this);
  104         } 
  105 
  106     TRACE( T_LIT("CVIMPSTProcessArray::~CVIMPSTProcessArray End") );
  107     }
  108 
  109 // --------------------------------------------------------------------------
  110 // CVIMPSTProcessArray::NewL
  111 // --------------------------------------------------------------------------
  112 //
 
126   113 CVIMPSTProcessArray* CVIMPSTProcessArray::NewL(
  114         MVIMPSTEngine& aEngine)
  115     {
  116     TRACE( T_LIT("CVIMPSTProcessArray::NewL Start") );
  117     CVIMPSTProcessArray* self = new(ELeave) CVIMPSTProcessArray(aEngine);
  118     CleanupStack::PushL(self);
  119     self->ConstructL();
  120     CleanupStack::Pop(self);
  121     TRACE( T_LIT("CVIMPSTProcessArray::NewL End") );
  122     return self;
  123     
  124     }
  125 
  126 // --------------------------------------------------------------------------
  127 // CVIMPSTProcessArray::ConstructL
  128 // --------------------------------------------------------------------------
  129 //
 
126 126   130 void CVIMPSTProcessArray::ConstructL()
  131     {
  132     TRACE( T_LIT("CVIMPSTProcessArray::ConstructL Start") );
  133     iContactInterface = CVIMPSTStorageManagerFactory::ContactListInterfaceL(iServiceId);
  134     if(iContactInterface)
  135         {        
  136         iContactInterface->AddObserverL( this );// listen these events..        
  137         }
  138     HBufC* unnamed = VIMPSTUtils::LoadResourceL( R_SERVTAB_UNNAMED );
  139     if( unnamed )
  140        {
  141        CleanupStack::PushL( unnamed );
  142        iContactInterface->SetUnnamedTextL(unnamed); // takes ownership
  143        CleanupStack::Pop( unnamed );   
  144        }
  145     iContactListModel = CVIMPSTStorageManagerFactory::ItemModelInterfaceL(iServiceId);
  146     iLoginState = iEngine.ServiceState();
  147     //Get IM SubService     
  148     MVIMPSTEngineSubService* subService1 =(iEngine.SubService(TVIMPSTEnums::EIM));
  149     if(subService1)
  150         {
  151         MVIMPSTEngineIMSubService& imSubService = 
  152         MVIMPSTEngineIMSubService::Cast (*subService1);
  153         imSubService.RegisterChatObserver(this);
  154         }
  155     iData = HBufC::NewL(512);
  156     iAddRequestArray.Reset();
  157     iUnKnownContactArray.Reset();
  158     //subscribe for ownpresencechangeevent
  159     MVIMPSTEngineSubService* subService =          
  160     (iEngine.SubService(TVIMPSTEnums::EPresence));
  161     if(subService)
  162         {        
  163         MVIMPSTEnginePresenceSubService& presence = 
  164         MVIMPSTEnginePresenceSubService::Cast (*subService);
  165         presence.RegisterPresenceEventObserverL(this);        
  166         }
  167    ResetArray();
  168    TRACE( T_LIT("CVIMPSTProcessArray::ConstructL end") );
  169     }
  170 // --------------------------------------------------------------------------
  171 // CVIMPSTProcessArray::HandleStorageChangeL
  172 // --------------------------------------------------------------------------
  173 //
 
28 28   174 void CVIMPSTProcessArray::HandleStorageChangeL( TVIMPSTEnums::TVIMPSTStorgaeEventType aEventType,
  175                                        MVIMPSTStorageContactList* /*aList*/, 
  176                                       MVIMPSTStorageContact* aContact,
  177                                       TInt aContactIndex )
  178     {
  179     TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL Function Start") );
  180     // 0th index OwnItem + unknow contacts + add request
  181     aContactIndex = aContactIndex + 1 + iUnKnownContactArray.Count() + iAddRequestArray.Count();
  182     
  183     switch( aEventType )
  184         {
  185         case TVIMPSTEnums::EStorageContactReadComplete:
  186             {
  187             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactReadComplete Start") );
  188             if(iProcessObservers)
  189                 {
  190                 /* passing 0 so that the focus is on owndata item */
  191                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EOwnStatusItem, 0 ); // focus own item
  192                 }
  193             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactReadComplete End") );
  194             break;
  195             }
  196         case TVIMPSTEnums::EStorageContactFetchComplete:
  197             {
  198             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactFetchComplete Start") );
  199             TRACE( T_LIT("HandleStorageChangeL EStorageContactFetchComplete iItemArray Count: %d"), iItemArray.Count() );
  200 
  201             if(iProcessObservers)
  202                 {
  203                 /* passing 0 so that the focus is on owndata item */
  204                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EOwnStatusItem, 0 ); // focus own item
  205                 }
  206             if(TVIMPSTEnums::ESVCEUpdatingContacts == iLoginState ||
  207                 TVIMPSTEnums::ESVCERegistered == iLoginState)
  208                 {
  209                 iFetchCompleted = ETrue;
  210                 GetAndCreateOpenChatListL();
  211                 }
  212            
  213             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactFetchComplete End") );
  214             break;    
  215             }
  216         case TVIMPSTEnums::EStorageContactReading:
  217         case TVIMPSTEnums::EStorageContactFetching:
  218         case TVIMPSTEnums::EStorageContactSynchronizing:
  219             {
  220             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactFetching/EStorageContactFetching Start") );
  221             /*
  222              *   This event occurs whenever we have contacts added to contactlist. This happens in the following scenarios
  223              *   1. At the time of login, when we fetch contacts, contact-by-contact is added to the storage. so we get this event.
  224              *    2. When we add a contact manually (either from phonebook, or manu adding etc.. ) we get this callback.
  225              */
  226             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  227             CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (const_cast<TDesC&>(aContact->Name() ),
  228                     const_cast<TDesC&>(aContact->UserId() ),
  229                     aContact->ContactLink() );
  230 
  231             /* All the time the index should be less than the item array's count, but during the fetch of contacts from cdb file to the view, 
  232              * if we havent got a contactviewready, and during that if I get contactaddition, before getting contactFetchComplete, we should keep 
  233              * appending the items to the array for display, once we get the entire list, its sorted anyway while insertion, and when presence occurs
  234              * the contacts are re-sorted. 
  235              */
  236             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  237             if (aContactIndex >= iItemArray.Count() )
  238                 {
  239                 TRACE( T_LIT("append contact item %d"), contactItem);
  240                 iItemArray.Append(contactItem);
  241                 }
  242             else
  243                 {
  244                 TRACE( T_LIT("Insert at index = %d"), aContactIndex);
  245                 iItemArray.Insert(contactItem, aContactIndex );
  246                 }               
  247             if(iProcessObservers)
  248                 {
  249                 /* passing 0 so that the focus is on owndata item */
  250                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EOwnStatusItem, 0);
  251                 }
  252             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageContactFetching/EStorageContactFetching End") );
  253             break;
  254             }
  255         case TVIMPSTEnums::EStorageEventContactAddition:
  256             {
  257             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactAddition Start") );
  258 
  259             TBool removed = RemoveFromUnknonOrInvitationListL( aContact->UserId(), EFalse );
  260             if( removed )
  261                 {
  262                 aContactIndex = aContactIndex - 1; // one contact is removed from iUnknownContactArray 
  263                 }
  264             /*
  265              *   This event occurs whenever we have contacts added to contactlist. This happens in the following scenarios
  266              *   1. At the time of login, when we fetch contacts, contact-by-contact is added to the storage. so we get this event.
  267              *    2. When we add a contact manually (either from phonebook, or manu adding etc.. ) we get this callback.
  268              */
  269             TPtrC userId = aContact->UserId();
  270             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  271             CVIMPSTProcessContactItem* contactItem = CVIMPSTProcessContactItem::NewL (aContact->Name() ,
  272                                                                                         userId,
  273                                                                                         aContact->ContactLink() );
  274 
  275             /* All the time the index should be less than the item array's count, but during the fetch of contacts from cdb file to the view, 
  276              * if we havent got a contactviewready, and during that if I get contactaddition, before getting contactFetchComplete, we should keep 
  277              * appending the items to the array for display, once we get the entire list, its sorted anyway while insertion, and when presence occurs
  278              * the contacts are re-sorted. 
  279              */
  280             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  281             if (aContactIndex >= iItemArray.Count() )
  282                 {
  283                 TRACE( T_LIT("append contact item = %d"), contactItem);
  284                 iItemArray.Append(contactItem);
  285                 }                
  286             else
  287                 {
  288                 TRACE( T_LIT("Insert at index = %d"), aContactIndex);
  289                 iItemArray.Insert(contactItem, aContactIndex );
  290                 }                
  291              // check if  pending message exist
  292             if( TVIMPSTEnums::ESVCERegistered == iLoginState && userId.Length() )
  293                 {
  294                 if( IsConversationExistL( userId ) )
  295                     {
  296                     contactItem->SetConversationOpen(ETrue);
  297                     }
  298                 if( IsUnreadMessageExistsL( userId ) )
  299                     {
  300                     contactItem->SetMsgPending(ETrue);
  301                     }
  302                 }
  303 
  304             if(iProcessObservers)
  305                 {
  306                 /* passing aContactIndex so that the focus is on owndata item */
  307                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, aContactIndex );
  308                 }   
  309             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactAddition End") );
  310             break;
  311             }
  312         case TVIMPSTEnums::EStorageEventContactDelete:
  313             {
  314             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactDelete Start") );
  315             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  316             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  317             if( aContactIndex < iItemArray.Count() )
  318                 {
  319                 MVIMPSTProcessArrayItem* deletedItem = iItemArray[ aContactIndex ]; 
  320                 TRACE( T_LIT("contact removed in item array of index = %d"),aContactIndex );
  321                 iItemArray.Remove (aContactIndex);
  322                 delete deletedItem;
  323                 iItemArray.Compress();
  324                 TRACE( T_LIT("contactindex = %d"),aContactIndex );
  325                 }
  326             if(iProcessObservers)
  327                 {
  328                 iProcessObservers->HandleDeletionL(TVIMPSTEnums::EContactItem, aContactIndex);
  329                 }
  330             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactDelete End") );
  331             break;
  332             }
  333         case TVIMPSTEnums::EStorageAvatarChange:
  334             {
  335             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange Start") );
  336            ResetArray();
  337             if(iProcessObservers  && aContact )
  338                 {
  339                 TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange inside if") );
  340                 TPtrC aUserId = aContact->UserId();
  341                 TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange aUserId = %S"), &aUserId );
  342                 iProcessObservers->HandleAvatarChangeL( aContact->UserId() );
  343                 }
  344             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange End") );
  345             break;            
  346             }
  347         case TVIMPSTEnums::EStorageOwnPresenceChange:
  348             {
  349             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange Start") );
  350             if(iProcessObservers)
  351                 {
  352                 /* passing index as 0, so thta focus remains at the owndata item */
  353                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EOwnStatusItem, KErrNotFound );
  354                 }
  355             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange End") );
  356             break;
  357             }
  358         case TVIMPSTEnums::EStorageMultiplePresenceChange:
  359            {
  360            TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange Start") );
  361            // mostly this will get called after just login and fetch time
  362            ResetArray();
  363             if(iProcessObservers )
  364                 {
  365                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  366                 }
  367             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAvatarChange End") );
  368            break;   
  369            }
  370         case TVIMPSTEnums::EStoragePresenceChange:
  371             {
  372             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStoragePresenceChange Start") );
  373             /* 
  374              *   After Sort we get the new index... So first we need to remove the contact from the old position, 
  375              *   and then re-insert it at the correct obtained position (newIndex in this case)
  376              */
  377             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  378             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  379             if( aContactIndex < iItemArray.Count() )
  380                 {                
  381                 TInt newIndex = iContactListModel->IndexOfContact( aContact );
  382                 TRACE( T_LIT("new index = %d"),newIndex );
  383                 CVIMPSTProcessContactItem* newItem = CVIMPSTProcessContactItem::NewL(const_cast<TDesC&>(aContact->Name() ),
  384                         const_cast<TDesC&>(aContact->UserId() ),
  385                         aContact->ContactLink() );
  386                 MVIMPSTProcessArrayItem* oldItem = iItemArray[ aContactIndex ]; 
  387                 TRACE( T_LIT("contact removed in item array of index = %d"),aContactIndex );
  388                 iItemArray.Remove(aContactIndex );
  389                 delete oldItem;
  390                 iItemArray.Compress();
  391                 // Add it in the new index
  392                 newIndex = newIndex + 1 + iUnKnownContactArray.Count()+ iAddRequestArray.Count();
  393                 if (newIndex >= iItemArray.Count())
  394                     {
  395                     TRACE( T_LIT("append contact item = %d"), newIndex);
  396                     iItemArray.Append (newItem);
  397                     }
  398                 else
  399                     {
  400                     TRACE( T_LIT("Insert at index = %d"), newItem);
  401                     iItemArray.Insert (newItem, newIndex);
  402                     }   
  403                 }
  404             if(iProcessObservers )
  405                 {
  406                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  407                 }
  408             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStoragePresenceChange End") );
  409             break;
  410             }
  411         case TVIMPSTEnums::EStorageEventOwnUserChanged:
  412             {
  413             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventOwnUserChanged Start") );
  414             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL start Event = %d"),aEventType );
  415             ResetArray();
  416             if(iProcessObservers )
  417                 {
  418                 iProcessObservers->HandleDeletionL(TVIMPSTEnums::EOwnStatusItem, 0 ); // focus own item
  419 
  420                 if( aContact )
  421                     {
  422                     iProcessObservers->HandleAvatarChangeL( aContact->UserId() );
  423                     }
  424                 }
  425             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventOwnUserChanged End") );
  426 
  427             break;
  428             }
  429         case TVIMPSTEnums::EStorageAllContactRemoved:
  430             {
  431             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAllContactRemoved Start") );
  432             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAllContactRemoved count = %d"), iItemArray.Count() );
  433             ResetArray();
  434             if(iProcessObservers )
  435                 {
  436                 iProcessObservers->HandleDeletionL(TVIMPSTEnums::EOwnStatusItem, 0 ); // focus own item
  437                 }
  438             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageAllContactRemoved End") );
  439             break;
  440             }
  441         case TVIMPSTEnums::EStorageEventContactChange: 
  442            {
  443            TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactChange Start") );
  444            // display name is changed ,might be contact is re-arranged
  445             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  446             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  447             if( aContactIndex < iItemArray.Count() )
  448                 {
  449                 CVIMPSTProcessContactItem* newItem = CVIMPSTProcessContactItem::NewL(const_cast<TDesC&>(aContact->Name() ),
  450                         const_cast<TDesC&>(aContact->UserId() ),
  451                         aContact->ContactLink() );
  452                 
  453                 MVIMPSTProcessArrayItem* oldItem = iItemArray[ aContactIndex ];
  454                 TRACE( T_LIT("contact removed in item array of index = %d"),aContactIndex );
  455                 // set the conversation open flag from old contact, as only the display name would have changed.
  456                 newItem->SetConversationOpen(oldItem->IsConversationOpen());
  457                 newItem->SetMsgPending( oldItem->IsMsgPending() );
  458                 iItemArray.Remove(aContactIndex );
  459                 delete oldItem;
  460                 iItemArray.Compress();
  461                 TRACE( T_LIT("Insert at index = %d"), aContactIndex);
  462                 TInt newIndex = iContactListModel->IndexOfContact( aContact );
  463                  // Add it in the new index
  464                 newIndex = newIndex + 1 + iUnKnownContactArray.Count() + iAddRequestArray.Count();
  465                 if (newIndex >= iItemArray.Count())
  466                     {
  467                     TRACE( T_LIT("append contact item = %d"), newIndex);
  468                     iItemArray.Append (newItem);
  469                     }
  470                 else
  471                     {
  472                     TRACE( T_LIT("Insert at index = %d"), newItem);
  473                     iItemArray.Insert(newItem, newIndex);
  474                     } 
  475                 // inform the cv about the display name changes
  476                 if(aContact && aContact->UserId().Length() && newItem->IsConversationOpen())
  477                     {
  478                     TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactChange "));
  479                     TApaTaskList taskList( CCoeEnv::Static()->WsSession() );
  480                     TApaTask task( taskList.FindApp( KConversationViewAppUid ) );
  481 
  482                     if ( task.Exists() )
  483                         {
  484                         TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactChange:task exists"));
  485                         // packing of data ,passed to conversation view
  486                         TPckgBuf< TIMCVUiParams > params;
  487                         params().iBuddyId = aContact->UserId();
  488                         params().iBuddyName = aContact->Name();
  489                         params().iServiceId = iServiceId;
  490                         params().iUpdate = ETrue;
  491                         task.SendMessage( 
  492                                 TUid::Uid( KUidApaMessageSwitchOpenFileValue ), params );
  493                         }
  494                     }
  495                 }
  496             if(iProcessObservers )
  497                 {
  498                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, aContactIndex );
  499                 }
  500             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventContactChange End") );
  501            break;   
  502            }          
  503         case TVIMPSTEnums::EStorageEventUserIdPostChange:
  504             {
  505             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventUserIdPostChange Start") );
  506             TRACE( T_LIT("contactindex = %d"),aContactIndex );
  507             TRACE( T_LIT("itemarraycount = %d"),iItemArray.Count() );
  508             if( aContactIndex < iItemArray.Count() )
  509                 {
  510                 CVIMPSTProcessContactItem* newItem = CVIMPSTProcessContactItem::NewL(const_cast<TDesC&>(aContact->Name() ),
  511                         const_cast<TDesC&>(aContact->UserId() ),
  512                         aContact->ContactLink() );
  513                 MVIMPSTProcessArrayItem* oldItem = iItemArray[ aContactIndex ];
  514                 TRACE( T_LIT("contact removed in item array of index = %d"),aContactIndex );
  515                 iItemArray.Remove(aContactIndex );
  516                 delete oldItem;
  517                 iItemArray.Compress();
  518                 TRACE( T_LIT("Insert at index = %d"), aContactIndex);
  519                 iItemArray.InsertL (newItem, aContactIndex);
  520                 }
  521             if(iProcessObservers )
  522                 {
  523                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, aContactIndex );
  524                 }
  525             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL EStorageEventUserIdPostChange End") );
  526             break;
  527             }
  528         default:
  529             {
  530             TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL Event default") );
  531             break;
  532             }
  533         }
  534     TRACE( T_LIT("CVIMPSTProcessArray::HandleStorageChangeL Function End") );
  535     }
  536 
  537 // --------------------------------------------------------------------------
  538 // CVIMPSTProcessArray::AddObserver
  539 // --------------------------------------------------------------------------
  540 //
 
  541 void CVIMPSTProcessArray::AddObserver( MVIMPSTProcessArrayObserver* aObserver ) 
  542     {
  543     iProcessObservers = aObserver;
  544     }
  545 // --------------------------------------------------------------------------
  546 // CVIMPSTProcessArray::RemoveObserver
  547 // --------------------------------------------------------------------------
  548 //
 
- 549 void CVIMPSTProcessArray::RemoveObserver( ) 
  550     {
  551     iProcessObservers = NULL;
  552     }
  553 
  554 // -----------------------------------------------------------------------------
  555 // CVIMPSTProcessArray::GetItemNameTextL
  556 // -----------------------------------------------------------------------------
  557 
 
  558 TPtrC CVIMPSTProcessArray::GetItemNameText(TInt aIndex)
  559     {
  560     TVIMPSTEnums::TItem itemtype = GetType( aIndex );
  561    MVIMPSTProcessArrayItem* arrayItem = NULL;
  562     /* Codescanner warning is ignored, since Bound check is done 
  563      * inside the GetType()
  564      * method*/
  565     switch(itemtype)
  566         {
  567         case TVIMPSTEnums::EOwnStatusItem:
  568             {
  569             MVIMPSTProcessArrayItem *arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  570             return arrayItem->GetItemUserId(); // no name for own user   
  571             }
  572         case TVIMPSTEnums::EContactListItem:
  573         case TVIMPSTEnums::EContactItem:
  574             { 
  575             arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  576               break;   
  577             }
  578         case TVIMPSTEnums::EFriendRequestItem:
  579             {
  580             arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  581             break;
  582             }
  583        case TVIMPSTEnums::EUnknonContactItem:
  584            {
  585            arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  586            break;
  587            }
  588         case TVIMPSTEnums::EInvalid:
  589         default:
  590             {
  591             break;
  592             }
  593         }
  594    if( arrayItem )
  595       {
  596       return arrayItem->GetItemNameText();   
  597       }
  598    return KNullDesC();
  599     }
  600 
  601 // -----------------------------------------------------------------------------
  602 // CVIMPSTProcessArray::GetItemUserId
  603 // -----------------------------------------------------------------------------
  604 
 
12   605 TPtrC CVIMPSTProcessArray::GetItemUserId(TInt aIndex)
  606     {
  607     TVIMPSTEnums::TItem itemtype = GetType( aIndex );
  608 
  609     /* Codescanner warning is ignored, since Bound check is done 
  610      * inside the GetType()
  611      * method*/
  612     switch(itemtype)    
  613         {
  614         case TVIMPSTEnums::EContactItem:
  615         case TVIMPSTEnums::EFriendRequestItem:
  616         case TVIMPSTEnums::EUnknonContactItem:
  617         case TVIMPSTEnums::EOwnStatusItem:
  618             {
  619             MVIMPSTProcessArrayItem *arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  620             return arrayItem->GetItemUserId(); // no name for own user   
  621             }
  622         default:
  623             {
  624             return KNullDesC(); 
  625             }
  626         }
  627     }
  628 
  629 // -----------------------------------------------------------------------------
  630 // CVIMPSTProcessArray::ContactLink
  631 // -----------------------------------------------------------------------------
  632 
 
  633 MVPbkContactLink* CVIMPSTProcessArray::ContactLink(TInt aIndex)
  634     {
  635     TVIMPSTEnums::TItem itemtype = GetType( aIndex );
  636 
  637     /* Codescanner warning is ignored, since Bound check is done 
  638      * inside the GetType()
  639      * method*/
  640     switch(itemtype)
  641         {
  642         case TVIMPSTEnums::EOwnStatusItem:
  643             {
  644             return NULL;   
  645             }
  646         case TVIMPSTEnums::EContactListItem:
  647         case TVIMPSTEnums::EContactItem:
  648             {    
  649             MVIMPSTProcessArrayItem *arrayItem = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  650             return arrayItem->ContactLink();   
  651             }
  652         case TVIMPSTEnums::EInvalid:
  653         default:
  654             {
  655             }
  656         }
  657     return NULL;
  658     }
  659 
  660 // -----------------------------------------------------------------------------
  661 // CVIMPSTProcessArray::Count
  662 // -----------------------------------------------------------------------------
  663 
 
- 664 TInt CVIMPSTProcessArray::Count() const
  665    {
  666    // return the total count here.
  667    return iItemArray.Count() ;
  668    }
  669 // -----------------------------------------------------------------------------
  670 // CVIMPSTProcessArray::IsSubServiceSupportedL
  671 // -----------------------------------------------------------------------------
  672 
 
  673 TBool CVIMPSTProcessArray::IsSubServiceSupportedL(TVIMPSTEnums::SubServiceType aType ) const
  674    {
  675    return iEngine.IsSubServiceSupportedL(aType );
  676    }
  677 // -----------------------------------------------------------------------------
  678 // CVIMPSTProcessArray::GetType
  679 // Get the type from engine and return the type
  680 // -----------------------------------------------------------------------------
  681 
 
32   682 TVIMPSTEnums::TItem CVIMPSTProcessArray::GetType(TInt aIndex) const
  683    {
  684    TInt itemArrayCount = iItemArray.Count();
  685    if(itemArrayCount <=0 || (aIndex < 0 || aIndex >= itemArrayCount) )
  686        {
  687        return TVIMPSTEnums::EInvalid;
  688        }
  689 
  690    else if(itemArrayCount>0)
  691        {
  692        TInt index = aIndex <= 0 ? 0 : aIndex;
  693        MVIMPSTProcessArrayItem* item = iItemArray[ index ];   
  694        return item->Type();
  695        }
  696    else
  697        {
  698        return TVIMPSTEnums::EInvalid;
  699        }   
  700    }
  701 // -----------------------------------------------------------------------------
  702 // CVIMPSTProcessArray::FillItemL
  703 // Fill up the complete array one item at a time
  704 // -----------------------------------------------------------------------------
  705 
 
134 134   706 void CVIMPSTProcessArray::FillItemL()
  707     {
  708     TInt count = 0;
  709     if(iContactListModel)
  710         {
  711         count = iContactListModel->Count();
  712         }
  713 
  714     // the index is starting from 1, because we already added owndata item to the list.......
  715     for ( TInt index = 0; index < count ; index++)
  716         {
  717         // fetch the item and process correct type
  718         MVIMPSTStorageItemModel::SItem item = iContactListModel->Item( index );
  719         switch( item.iType )
  720             {
  721             case MVIMPSTStorageItemModel::EContactList:
  722                 break;
  723             case MVIMPSTStorageItemModel::EContactItem:
  724                 {
  725                 // contact item
  726                 // add this items to contact item -- CONTACT 
  727                 // create an object of this type and append this to the rpointerarray
  728                 MVIMPSTStorageContact* contact = item.iContact;                        
  729                 TPtrC userId = contact->UserId();
  730                 CVIMPSTProcessContactItem* contactItem = 
  731                 CVIMPSTProcessContactItem::NewL(contact->Name(),
  732                                         userId ,
  733                                           contact->ContactLink() );
  734                 TInt otherCount = 1 + iUnKnownContactArray.Count() + iAddRequestArray.Count();
  735                 contactItem->SetItemIndex(index + otherCount );
  736                 //append this to the array
  737                 iItemArray.AppendL(contactItem);
  738                 if( TVIMPSTEnums::ESVCERegistered == iLoginState &&
  739                      TVIMPSTEnums::EBlocked != contact->OnlineStatus() && userId.Length() )
  740                     {
  741                     if( IsUnreadMessageExistsL( userId ) )
  742                         {
  743                         contactItem->SetMsgPending(ETrue);
  744                         }
  745                     if( IsConversationExistL( userId ) )
  746                         {
  747                         contactItem->SetConversationOpen(ETrue);
  748                         }
  749                     }
  750                 break;
  751                 }
  752             default:
  753                 {
  754                 // the call shouldn't be here
  755                 break;
  756                 }
  757             }
  758         }
  759 
  760     }
  761 
  762 // -----------------------------------------------------------------------------
  763 // CVIMPSTProcessArray::FillOwnDataL
  764 // FillOwnDataL implementation
  765 // -----------------------------------------------------------------------------
  766 // fill the owndata at the begining of array.....
 
136   767 TBool CVIMPSTProcessArray::FillOwnDataL()
  768     {
  769     TBool ownDataAdded = EFalse;
  770     TPtr dataPtr = iData->Des();    
  771     // Check whether the user has logged in before, if has
  772     // then dont update anything just return   
  773     //check if its logged in or not.
  774     // 1. if not logged in append 
  775     switch(iLoginState)
  776         {
  777         case TVIMPSTEnums::ESVCERegistered:
  778             {
  779             TPtrC userId = iContactInterface->OwnContactL().UserId();
  780             dataPtr.Copy(userId);
  781             break;
  782             }
  783         case TVIMPSTEnums::ESVCENetworkConnecting:
  784             {
  785             HBufC* tempStr = VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_LOGGING_LIST_ITEM );
  786             if(tempStr)
  787                 {
  788                 dataPtr.Copy(*tempStr);     
  789                 delete tempStr; 
  790                 }
  791 
  792             break;
  793             }
  794         case TVIMPSTEnums::ESVCEUpdatingContacts:
  795             {
  796             HBufC* tempStr = VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_UPDATING_LIST_ITEM );
  797             if(tempStr)
  798                 {
  799                 dataPtr.Copy(*tempStr);     
  800                 delete tempStr; 
  801                 }
  802 
  803             break;
  804             }
  805         case TVIMPSTEnums::ESVCEWaitingForNetwork:
  806             {
  807             HBufC* tempStr = KNetworkError().AllocL();
  808             if(tempStr)
  809                 {
  810                 dataPtr.Copy(*tempStr);     
  811                 delete tempStr; 
  812                 }
  813          break;   
  814             }
  815         case TVIMPSTEnums::ESVCENetworkDisConnecting:
  816             {
  817             HBufC* tempStr = NULL;
  818             if ( iEngine.IsSubServiceSupportedL(TVIMPSTEnums::EPresence) ) 
  819                 {
  820                 // if presence enabled use double line listbox string
  821                 tempStr= VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_LOGGINGOUT_LIST_ITEM );
  822                 }
  823             else
  824                 { 
  825                 // if  presence is not enabled use  single line listbox string
  826                 tempStr= VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_SINGLE_LINE_LOGGINGOUT_LIST_ITEM );
  827                 }
  828 
  829             if(tempStr)
  830                 {
  831                 dataPtr.Copy(*tempStr);     
  832                 delete tempStr;
  833                 }         
  834 
  835             break;
  836             }
  837         case TVIMPSTEnums::ESVCENotRegistered:
  838         default:
  839             {
  840             HBufC* str = NULL;
  841             if ( iEngine.SubService( TVIMPSTEnums::EPresence) ) 
  842                 {
  843                 // if presence enabled use double line listbox string
  844                 str = VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_LOGIN_LIST_ITEM );
  845                 }
  846             else
  847                 { 
  848                 // if  presence is not enabled use  single line listbox string
  849                 // get  the username from settings
  850                 TPtrC ownUserId = iContactInterface->OwnContactL().UserId();
  851                 if ( ownUserId.Length() )
  852                     { 
  853                     // if username is available then show with login item
  854                     // remove domain part and give it to resource laoder
  855                     str= VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_SINGLE_LINE_LOGIN_LIST_ITEM_WITH_USERNAME , VIMPSTUtils::DisplayId( ownUserId ) );
  856                     }
  857                 else
  858                     {
  859                     // this condition occures when there is allocated memory for username with NO data (length =0 )
  860                     // just make sure "no memory leak" without depending on the Function  LoginUserNameFromSettingsL()
  861                     // since that would return the allocated memory without Data (length=0 ) 
  862                     // just show login item since no username is available in the settings
  863                     str= VIMPSTUtils::LoadResourceL( R_QTN_SERVTAB_SINGLE_LINE_LOGIN_LIST_ITEM );
  864                     }
  865                 }
  866             if( str )
  867                 {
  868                 dataPtr.Copy(*str);      
  869                 delete str;      
  870                 }
  871             break;
  872             }
  873         }
  874     if( iItemArray.Count() )
  875        {
  876        // own item is already exist delete it before adding a fresh one
  877        MVIMPSTProcessArrayItem* arrayItem = iItemArray[ 0 ]; // should be own data
  878        if( arrayItem->Type() == TVIMPSTEnums::EOwnStatusItem )
  879           {
  880           iItemArray.Remove(0);   //iItemArray takes ownership of owndataItem, do not delete here
  881           delete arrayItem;
  882           iItemArray.Compress();
  883           }
  884        }
  885     //common code for all the above cases to update the owndata item to list at index 0
  886     CVIMPSTProcessOwnDataItem* owndataItem = CVIMPSTProcessOwnDataItem::NewL(*iData);
  887     owndataItem->SetItemIndex(0);
  888     //append this to the array
  889     iItemArray.InsertL( owndataItem,0 );   //iItemArray takes ownership of owndataItem, do not delete here
  890     iContactListIndex = 0;
  891     ownDataAdded = ETrue;     
  892     return ownDataAdded;
  893     }
  894 
  895 // -----------------------------------------------------------------------------
  896 // CVIMPSTProcessArray::FillArrayL
  897 // -----------------------------------------------------------------------------
  898 
 
134 134   899 void CVIMPSTProcessArray::FillArrayL()
  900     {
  901     if(FillOwnDataL() )
  902         {
  903         // then fill the conversations..or open chats....   
  904         }
  905     else
  906         {
  907         iContactListIndex = 0; // we have not added any thing to main array..so index is zero...
  908         }
  909     FillUnknownContactsL(); //will fill all unknown contact from iUnknownContactArray to iItemArray.
  910     FillAddRequestDataL();//will fill all requests from iAddRequestArray to iItemArray.
  911     FillItemL();   
  912     }
  913 
  914 
  915 // -----------------------------------------------------------------------------
  916 // CVIMPSTProcessArray::ResetArray
  917 // -----------------------------------------------------------------------------
  918 
 
134 134   919 void CVIMPSTProcessArray::ResetArray()
  920     {
  921     RemoveUnKnownContacts(); //will remove all the unknown contacts from iItemArray.
  922     RemoveAddRequestData();//will remove all the requests from iItemArray.
  923     iItemArray.ResetAndDestroy();
  924     TRAPD( err, FillArrayL());
  925     if ( err != KErrNone )
  926         {
  927         CActiveScheduler::Current()->Error( err );
  928         }
  929     }
  930 
  931 // -----------------------------------------------------------------------------
  932 // CVIMPSTProcessArray::SetLoginState
  933 // -----------------------------------------------------------------------------
  934 
 
  935 void CVIMPSTProcessArray::SetLoginStateL(TVIMPSTEnums::TVIMPSTRegistrationState aLoginState)
  936     {
  937     iLoginState = aLoginState;
  938     if(aLoginState != TVIMPSTEnums::ESVCERegistered )
  939         {
  940         iFetchCompleted = EFalse;
  941         RemoveUnKnownContacts();
  942         RemoveAddRequestData();
  943         iUnKnownContactArray.ResetAndDestroy();// delete all items
  944         iUnKnownContactArray.Reset();
  945         iAddRequestArray.ResetAndDestroy();// delete all items
  946         iAddRequestArray.Reset();
  947         }
  948     FillOwnDataL(); // this will change the own item based on connection status
  949     }
  950 // -----------------------------------------------------------------------------
  951 // CVIMPSTProcessArray::GetLoginState
  952 // -----------------------------------------------------------------------------
  953 
 
  954 TVIMPSTEnums::TVIMPSTRegistrationState CVIMPSTProcessArray::GetLoginState()
  955     {
  956     return iLoginState;
  957     }
  958 
  959 // -----------------------------------------------------------------------------
  960 // CVIMPSTProcessArray::GetOnlineStatus
  961 // -----------------------------------------------------------------------------
  962 
 
  963 TVIMPSTEnums::TOnlineStatus CVIMPSTProcessArray::GetOnlineStatusL(TInt aIndex)
  964     {
  965     TVIMPSTEnums::TItem itemtype = GetType( aIndex );
  966     TVIMPSTEnums::TOnlineStatus status = TVIMPSTEnums::EUnknown;
  967     switch(itemtype)
  968         {
  969         case TVIMPSTEnums::EOwnStatusItem:
  970             {
  971             if( iContactInterface )
  972                {
  973                  status = iContactInterface->OwnContactL().OnlineStatus();
  974                }
  975             break;
  976             }
  977         case TVIMPSTEnums::EContactItem:
  978             { 
  979             MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId( GetItemUserId(aIndex) );
  980             if(contact)
  981                 {
  982                 status = contact->OnlineStatus();
  983                 }
  984             break;
  985             }
  986         case TVIMPSTEnums::EInvalid:
  987         default:
  988             {
  989             break;
  990             }
  991         }
  992     return status;
  993     }
  994 //-----------------------------------------------------------
  995 //CVIMPSTProcessArray::StatusText
  996 //-----------------------------------------------------------
  997 // 
 
  998 const TDesC&  CVIMPSTProcessArray::StatusTextL(TInt aIndex ) 
  999     {
  1000     TVIMPSTEnums::TItem itemtype = GetType( aIndex );
  1001     switch(itemtype)
  1002         {
  1003         case TVIMPSTEnums::EOwnStatusItem:
  1004             {
  1005             if( iContactInterface )
  1006                {
  1007                return iContactInterface->OwnContactL().StatusText();   
  1008                }
  1009             break;
  1010             }
  1011         case TVIMPSTEnums::EContactItem:
  1012             { 
  1013             MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId(GetItemUserId(aIndex));
  1014             if(contact && contact->StatusText().Length() )
  1015                 {
  1016                 // KStatusMsgMaxLenght is the max length of the status message shown
  1017                 // make sure that it copies only that much
  1018                 return contact->StatusText();
  1019                 }
  1020             break;
  1021             }
  1022         case TVIMPSTEnums::EInvalid:
  1023         default:
  1024             {
  1025             break;
  1026             }
  1027         }
  1028     return KNullDesC;
  1029     }
  1030 //-----------------------------------------------------------
  1031 //CVIMPSTProcessArray::RemoveFromUnknonOrInvitationListL
  1032 //-----------------------------------------------------------
  1033 //
 
  1034 TBool CVIMPSTProcessArray::RemoveFromUnknonOrInvitationListL( const TDesC& aAddedUserId ,TBool aBlocked )
  1035     {
  1036     TBool found = RemoveFromUnknonListL( aAddedUserId );
  1037     if( !found )
  1038         {
  1039         found = RemoveFromInvitationListL( aAddedUserId );
  1040         }
  1041     //Get IM SubService  
  1042     if( aBlocked && found && aAddedUserId.Length() )
  1043         {
  1044         MVIMPSTEngineSubService* subService =         
  1045         (iEngine.SubService(TVIMPSTEnums::EIM));
  1046 
  1047         if(subService )
  1048             {
  1049             MVIMPSTEngineIMSubService& imSubService = 
  1050             MVIMPSTEngineIMSubService::Cast (*subService);
  1051             imSubService.CloseConversationL( aAddedUserId );
  1052             }
  1053         }
  1054     return found;
  1055     }
  1056 //-----------------------------------------------------------
  1057 //CVIMPSTProcessArray::RemoveFromUnknonListL
  1058 //-----------------------------------------------------------
  1059 //
 
  1060 TBool CVIMPSTProcessArray::RemoveFromUnknonListL( const TDesC& aAddedUserId )
  1061     {
  1062     TRACE( T_LIT("CVIMPSTProcessArray::RemoveFromUnknonListL start ") );
  1063     TPtrC addedUserId = VIMPSTUtils::DisplayId( aAddedUserId );
  1064     TBool found = EFalse;
  1065     TInt count = iUnKnownContactArray.Count();
  1066     CVIMPSTProcessUnknownContactItem* unknownItem = NULL;
  1067     TInt index = KErrNotFound;
  1068     TInt itemIndex = KErrNotFound;
  1069     // check in unknon array
  1070     for(index = 0 ; index < count ; index++)
  1071         {
  1072         unknownItem = iUnKnownContactArray[index];
  1073         TPtrC contactId = VIMPSTUtils::DisplayId( unknownItem->GetItemUserId() );
  1074         if( addedUserId.Compare(  contactId ) == 0 )
  1075             {
  1076             itemIndex = iItemArray.Find(unknownItem);
  1077             if( itemIndex > -1 )
  1078                 {
  1079                 found = ETrue;
  1080                 }
  1081             break;
  1082             }
  1083         TRACE( T_LIT("CVIMPSTProcessArray::RemoveFromUnknonListL  for ends") );
  1084         }
  1085     if( found )
  1086         {
  1087         iItemArray.Remove(itemIndex);
  1088         iUnKnownContactArray.Remove( index );
  1089         delete unknownItem;
  1090         unknownItem = NULL;
  1091         iItemArray.Compress();
  1092         iUnKnownContactArray.Compress();
  1093         if( iProcessObservers )
  1094             {
  1095             // this is to refresh the list box
  1096             // KErrNotFound , focus remain at same position
  1097             iProcessObservers->HandleDeletionL(TVIMPSTEnums::EUnknonContactItem, KErrNotFound );
  1098             }
  1099         }
  1100     TRACE( T_LIT("CVIMPSTProcessArray::RemoveFromUnknonListL end ") );
  1101     return found;
  1102     }
  1103 //-----------------------------------------------------------
  1104 //CVIMPSTProcessArray::RemoveFromInvitationListL
  1105 //-----------------------------------------------------------
  1106 //
 
  1107 TBool CVIMPSTProcessArray::RemoveFromInvitationListL( const TDesC& aAddedUserId )
  1108     {
  1109     TPtrC addedUserId = VIMPSTUtils::DisplayId( aAddedUserId );
  1110     TBool found = EFalse;
  1111     TInt index = KErrNotFound;
  1112     TInt itemIndex = KErrNotFound;
  1113     // item not foun in unknown list
  1114     // check in invitation item array
  1115     TInt count = iAddRequestArray.Count();
  1116     CVIMPSTProcessFriendRequestItem* requestItem = NULL;
  1117     for(index = 0 ; index < count ; index++)
  1118         {
  1119         requestItem = iAddRequestArray[index];
  1120         TPtrC contactId = VIMPSTUtils::DisplayId( requestItem->GetItemUserId() );
  1121         if( addedUserId.Compare( contactId ) == 0 )
  1122             {
  1123             itemIndex = iItemArray.Find(requestItem);
  1124             if( itemIndex > -1 )
  1125                 {
  1126                 found = ETrue;
  1127                 }
  1128             break;
  1129             }
  1130         }
  1131     if( found )
  1132         {
  1133         iItemArray.Remove(itemIndex);
  1134         iAddRequestArray.Remove( index );
  1135         delete requestItem;
  1136         requestItem = NULL;
  1137         iItemArray.Compress();
  1138         iAddRequestArray.Compress();
  1139         if( iProcessObservers )
  1140             {
  1141             // this is to refresh the list box
  1142             // KErrNotFound , focus remain at same position
  1143             iProcessObservers->HandleDeletionL(TVIMPSTEnums::EFriendRequestItem, KErrNotFound );
  1144             }
  1145         }
  1146     return found;
  1147     }
  1148 //-----------------------------------------------------------
  1149 //CVIMPSTProcessArray::MapContactListPositions
  1150 //-----------------------------------------------------------
  1151 //
 
- 1152 void CVIMPSTProcessArray::MapContactListPositions(RArray<TInt>& aPos )
  1153     {
  1154     // add conversation also this list ..and return..
  1155     RArray<TInt> listPos; 
  1156 
  1157     //   iContactListModel->MapContactListPositions(listPos);
  1158     TInt positionIndex = 0;
  1159     // if count is more than 0..fill the maparray...
  1160     if(iItemArray.Count()  + iContactListIndex > 0) 
  1161         {
  1162 
  1163         TInt count = listPos.Count();
  1164 
  1165         for(TInt posIndex = 0; posIndex < count; posIndex++, positionIndex++)
  1166             {
  1167             aPos.Append( listPos[posIndex] + iContactListIndex );
  1168             }
  1169         }
  1170     listPos.Close();   
  1171     }
  1172 // -----------------------------------------------------------------------------
  1173 // CVIMPSTProcessArray::GetAndCreateOpenChatListL
  1174 // return contact index including friend request.
  1175 // -----------------------------------------------------------------------------
 
  1176 void CVIMPSTProcessArray::GetAndCreateOpenChatListL() 
  1177     {
  1178     //Get IM SubService     
  1179     MVIMPSTEngineSubService* subService =         
  1180                 (iEngine.SubService(TVIMPSTEnums::EIM));
  1181     RArray<SIMCacheChatItem> openChats;
  1182     openChats.Reset();
  1183     if(subService)
  1184         {
  1185         MVIMPSTEngineIMSubService& imSubService = 
  1186             MVIMPSTEngineIMSubService::Cast (*subService);
  1187         openChats = imSubService.GetOpenChatListL();
  1188         }
  1189     while( openChats.Count() )
  1190         {
  1191         SIMCacheChatItem chat = openChats[ 0 ]; // first item 
  1192         TPtrC contactId = *chat.iBuddyId;
  1193         MVIMPSTProcessArrayItem* arrayItem = FindArrayItem( contactId );
  1194         TBool msgPending = EFalse;
  1195         if( contactId.Length() )
  1196             {
  1197             if( IsUnreadMessageExistsL( contactId ) )
  1198                 {
  1199                 msgPending = ETrue;
  1200                 }
  1201             }
  1202         if( arrayItem )
  1203             {
  1204             arrayItem->SetConversationOpen( ETrue );
  1205             arrayItem->SetMsgPending( msgPending );
  1206             }
  1207         else
  1208             {
  1209             // not in buddy List
  1210             DoHandleUnKnownContactMessageL( contactId ,msgPending );
  1211             }
  1212         openChats.Remove( 0 );
  1213         delete chat.iBuddyId;
  1214         chat.iBuddyId = NULL;
  1215         openChats.Compress();
  1216         }
  1217     }
  1218 //-----------------------------------------------------------
  1219 //CVIMPSTProcessArray::FindArrayItem
  1220 //-----------------------------------------------------------
  1221 // 
 
  1222 MVIMPSTProcessArrayItem* CVIMPSTProcessArray::FindArrayItem( const TDesC& aSenderId )
  1223     {
  1224     TPtrC senderId = VIMPSTUtils::DisplayId( aSenderId );
  1225     MVIMPSTProcessArrayItem* arrayItem = NULL;
  1226     TInt count = iItemArray.Count();
  1227     for( TInt i = 1; i < count; i++ )
  1228         {
  1229         MVIMPSTProcessArrayItem* contactItem = (MVIMPSTProcessArrayItem *)iItemArray[i];
  1230         TPtrC contactId = VIMPSTUtils::DisplayId( contactItem->GetItemUserId() );
  1231         if( senderId.Compare(  contactId ) == 0 )
  1232             {
  1233             arrayItem = contactItem;
  1234             break;
  1235             }
  1236         }
  1237     return arrayItem;
  1238     }
  1239 //-----------------------------------------------------------
  1240 //CVIMPSTProcessArray::HandleChatMessageEventL
  1241 //-----------------------------------------------------------
  1242 // 
 
12 12   1243 void CVIMPSTProcessArray::HandleChatMessageEventL( TVIMPSTEnums::TIMEventType aEventType ,
  1244                                                     const TDesC& aSender )
  1245     {
  1246     if( !iFetchCompleted )
  1247         {
  1248         // contact matching will not be correct until fetching completed
  1249         // hence return 
  1250         return;
  1251         }
  1252     switch( aEventType )
  1253         {
  1254         case TVIMPSTEnums::EIMUnreadMessage:
  1255             {
  1256             if( FindAndMarkContactAsOpenChat( aSender , ETrue ) )
  1257                 {
  1258                 if(iProcessObservers)
  1259                     {
  1260                     iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  1261                     }
  1262                 }
  1263             else 
  1264                 {
  1265                 DoHandleUnKnownContactMessageL( aSender , ETrue );
  1266                 }
  1267             break;
  1268             }
  1269         case TVIMPSTEnums::EIMUnreadChange:
  1270             {
  1271             FindAndMarkContactAsOpenChat( aSender , EFalse ) ;
  1272             if(iProcessObservers)
  1273                 {
  1274                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem,KErrNotFound );
  1275                 }
  1276             break;
  1277             }
  1278         case TVIMPSTEnums::EIMChatStarted:
  1279             {
  1280             if( FindAndMarkContactAsOpenChat( aSender , EFalse ) )
  1281                 {
  1282                 if(iProcessObservers)
  1283                     {
  1284                     iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  1285                     }
  1286                 }
  1287             else 
  1288                 {
  1289                 DoHandleUnKnownContactMessageL( aSender, EFalse );
  1290                 }
  1291             break;
  1292             }
  1293         case TVIMPSTEnums::EIMChatClosed:
  1294             {
  1295             if( !RemoveFromUnknonListL( aSender ) )
  1296                 {
  1297                 MVIMPSTProcessArrayItem* arrayItem = FindArrayItem( aSender );
  1298                 if( arrayItem )
  1299                     {
  1300                     arrayItem->SetConversationOpen( EFalse );
  1301                     arrayItem->SetMsgPending( EFalse );
  1302                     }
  1303                 }
  1304             if(iProcessObservers)
  1305                 {
  1306                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  1307                 }
  1308             break;
  1309             }
  1310         case TVIMPSTEnums::EIMAllChatClosed:
  1311             {
  1312             RemoveUnKnownContacts();
  1313             iUnKnownContactArray.ResetAndDestroy();// delete all items
  1314             ResetOpenConversationPendingMsg();
  1315             if(iProcessObservers)
  1316                 {
  1317                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  1318                 }
  1319             break;
  1320             }
  1321         case TVIMPSTEnums::EIMRequestCompleted:
  1322             {
  1323             if(iProcessObservers)
  1324                 {
  1325                 iProcessObservers->HandleAdditionL(TVIMPSTEnums::EContactItem, KErrNotFound );
  1326                 }
  1327             break;
  1328             }
  1329         default:
  1330             {
  1331             // do nothing
  1332             }
  1333         }
  1334     }
  1335 //-----------------------------------------------------------
  1336 //CVIMPSTProcessArray::HandleAddRequestEventL
  1337 //-----------------------------------------------------------
  1338 // 
 
18 18   1339 void  CVIMPSTProcessArray::HandleAddRequestEventL(TVIMPSTEnums::TOperationType aType, const TDesC& aRequesterId,
  1340                                                     const TDesC& aRequestorDisplayName )
  1341     {
  1342      //add new add request item at top of list(i.e at index 1, as 0 is own id).
  1343     //when request is entertained remove item from list.
  1344     switch( aType )
  1345        {
  1346       case TVIMPSTEnums::EAddItem :
  1347          {
  1348          if( (!FindAnyAddRequest(aRequesterId ) )&& ( !FindAnyContactServiceField( aRequesterId ) ) && !(IsContactBlocked( aRequesterId )) )
  1349             {
  1350             CVIMPSTProcessFriendRequestItem* addRequestItem = CVIMPSTProcessFriendRequestItem::NewL(aRequesterId,aRequestorDisplayName);
  1351             /* Add it as the first Item of IAddRequestARray as its like stack */
  1352             iAddRequestArray.Insert(addRequestItem,0); 
  1353             /*
  1354             *   always the new friend request will be shown in the beginning, so 0th item is own item, 1st item is new friendrequest
  1355             *   and remaining remains same.. 
  1356             */
  1357             // ownership is in iItemArray
  1358             TInt invitationIndex = iUnKnownContactArray.Count()+1;
  1359             iItemArray.Insert(addRequestItem, invitationIndex); 
  1360             if(iProcessObservers)
  1361                {
  1362                iProcessObservers->HandleAdditionL( TVIMPSTEnums::EFriendRequestItem ,KErrNotFound );
  1363                }
  1364             }
  1365          break;
  1366          }
  1367       case TVIMPSTEnums::ERemoveItem :
  1368          {
  1369          TInt count = iAddRequestArray.Count();
  1370          CVIMPSTProcessFriendRequestItem* requestItem = NULL;
  1371          for(TInt i = 0 ; i < count ; i++)
  1372             {
  1373             requestItem = iAddRequestArray[i];
  1374             if( aRequesterId.Compare(requestItem->GetItemUserId()) == 0 )
  1375                {
  1376                TInt index = iItemArray.Find(requestItem);
  1377                if(index != KErrNotFound)
  1378                   {
  1379                   iItemArray.Remove(index);
  1380                   iItemArray.Compress();
  1381                   }
  1382                iAddRequestArray.Remove(i);        
  1383                delete requestItem;
  1384                iAddRequestArray.Compress();
  1385                break;
  1386                }        
  1387             }    
  1388          if(iProcessObservers)
  1389             {
  1390             iProcessObservers->HandleDeletionL(TVIMPSTEnums::EFriendRequestItem, KErrNotFound );
  1391             }
  1392          break;
  1393          } 
  1394       default :
  1395          break;
  1396       }
  1397     }
  1398 //-----------------------------------------------------------
  1399 //CVIMPSTProcessArray::DoHandleUnKnownContactMessageL
  1400 //-----------------------------------------------------------
  1401 // 
 
  1402 void CVIMPSTProcessArray::DoHandleUnKnownContactMessageL( const TDesC& aSenderId ,TBool aIsMsgPending )
  1403     {
  1404     TBool contactExist = EFalse ;
  1405     TInt count = iUnKnownContactArray.Count();
  1406     CVIMPSTProcessUnknownContactItem* unknownItem = NULL;
  1407     for( TInt i=0; i<count; i++ )
  1408         {
  1409         unknownItem = iUnKnownContactArray[i];
  1410         if( aSenderId.Compare( unknownItem->GetItemUserId() ) == 0 )
  1411             {
  1412             contactExist = ETrue;
  1413             unknownItem->SetConversationOpen(ETrue);
  1414             unknownItem->SetMsgPending( aIsMsgPending );
  1415             break;
  1416             }
  1417         }
  1418     if( !contactExist )
  1419         {
  1420         CVIMPSTProcessUnknownContactItem* addItem = CVIMPSTProcessUnknownContactItem::NewL(aSenderId);
  1421         /* Add it as the first Item of IAddRequestARray as its like stack */
  1422         iUnKnownContactArray.Insert(addItem,0); 
  1423         // ownership is in iItemArray
  1424         iItemArray.Insert(addItem, 1);  // just after own Item
  1425         addItem->SetMsgPending( aIsMsgPending );
  1426         addItem->SetConversationOpen(ETrue);
  1427         }
  1428     if(iProcessObservers)
  1429         {
  1430         iProcessObservers->HandleAdditionL( TVIMPSTEnums::EUnknonContactItem ,KErrNotFound );
  1431         }
  1432     }
  1433 //-----------------------------------------------------------
  1434 //CVIMPSTProcessArray::IsMsgPending
  1435 //-----------------------------------------------------------
  1436 // 
 
- 1437 TBool CVIMPSTProcessArray::IsMsgPending(TInt aIndex)
  1438     {
  1439     if( aIndex < iItemArray.Count() && aIndex >= 0 )
  1440         {
  1441         MVIMPSTProcessArrayItem* item = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  1442         if(item)
  1443             {   
  1444             return item->IsMsgPending();
  1445             }   
  1446         }
  1447     return EFalse;
  1448     }
  1449 
  1450 //-----------------------------------------------------------
  1451 //CVIMPSTProcessArray::IsConversationExist
  1452 //-----------------------------------------------------------
  1453 // 
 
- 1454 TBool CVIMPSTProcessArray::IsConversationExist(TInt aIndex)
  1455     {
  1456     if( aIndex < iItemArray.Count() && aIndex >= 0 )
  1457         {
  1458         MVIMPSTProcessArrayItem* item = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  1459         if(item)
  1460             {   
  1461             return item->IsConversationOpen();
  1462             }   
  1463         }
  1464     return EFalse;
  1465     }
  1466 
  1467 //-----------------------------------------------------------
  1468 //CVIMPSTProcessArray::ResetPendingMsg
  1469 //-----------------------------------------------------------
  1470 // 
 
- 1471 void CVIMPSTProcessArray::ResetPendingMsg(TInt aIndex)
  1472     {
  1473     if( aIndex < iItemArray.Count() && aIndex >= 0 )
  1474         {
  1475         MVIMPSTProcessArrayItem* item = (MVIMPSTProcessArrayItem *)iItemArray[aIndex];
  1476         if(item)
  1477             {   
  1478             item->SetMsgPending( EFalse );
  1479             }   
  1480         }
  1481     }
  1482 //-----------------------------------------------------------
  1483 //CVIMPSTProcessArray::ResetOpenConversationPendingMsg
  1484 //-----------------------------------------------------------
  1485 // 
 
  1486 void CVIMPSTProcessArray::ResetOpenConversationPendingMsg()
  1487     {
  1488     for( TInt index  = 0; index < iItemArray.Count() ;index++ )
  1489         {
  1490         MVIMPSTProcessArrayItem* item = (MVIMPSTProcessArrayItem *)iItemArray[index];
  1491         if(item)
  1492             {   
  1493             item->SetConversationOpen( EFalse );
  1494             item->SetMsgPending( EFalse );
  1495             }   
  1496         }
  1497     }
  1498 // -----------------------------------------------------------------------------
  1499 // CVIMPSTProcessArray::FindAnyContact
  1500 // Try to load with given ID, return NULL if not found.
  1501 // -----------------------------------------------------------------------------
 
  1502 TBool CVIMPSTProcessArray::FindAnyContact( const TDesC& aContactId )
  1503     {
  1504     if(aContactId.Length() != 0)
  1505         {
  1506         MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId(aContactId);
  1507         if( contact )
  1508             {
  1509             return ETrue;
  1510             }
  1511         }
  1512     return EFalse;
  1513     }
  1514 
  1515 // -----------------------------------------------------------------------------
  1516 // CVIMPSTProcessArray::FindAnyContactServiceField
  1517 // Try to load with given ID, return NULL if not found.
  1518 // -----------------------------------------------------------------------------
 
  1519 TBool CVIMPSTProcessArray::FindAnyContactServiceField( const TDesC& aContactId )
  1520     {
  1521     if(aContactId.Length() != 0)
  1522         {
  1523         MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId(aContactId);
  1524         if( contact )
  1525             {
  1526             return ETrue;
  1527             }
  1528         }
  1529     return EFalse;
  1530     }
  1531 // -----------------------------------------------------------------------------
  1532 // CVIMPSTProcessArray::FindAndMarkContactAsOpenChat
  1533 // Try to load with given ID, return NULL if not found.
  1534 // -----------------------------------------------------------------------------
 
  1535 TBool CVIMPSTProcessArray::FindAndMarkContactAsOpenChat( const TDesC& aContactId, TBool aMesssagePending )
  1536     {
  1537     TPtrC senderId = VIMPSTUtils::DisplayId( aContactId );
  1538     TBool ret = EFalse;
  1539     TInt count = iItemArray.Count();
  1540     for( TInt i = 1; i < count; i++ )
  1541         {
  1542         MVIMPSTProcessArrayItem* contactItem = (MVIMPSTProcessArrayItem *)iItemArray[i];
  1543         TPtrC contactId = VIMPSTUtils::DisplayId( contactItem->GetItemUserId() );
  1544         if( senderId.Compare(  contactId ) == 0 )
  1545             {
  1546             contactItem->SetConversationOpen( ETrue );
  1547             contactItem->SetMsgPending( aMesssagePending );
  1548             ret = ETrue;
  1549             break;
  1550             }
  1551         }
  1552     return ret;
  1553     }
  1554 //-----------------------------------------------------------------------------
  1555 // CVIMPSTProcessArray::IsUnreadMessageExists
  1556 // ( Other items commented in header )
  1557 //-----------------------------------------------------------------------------    
 
136   1558 TBool CVIMPSTProcessArray::IsUnreadMessageExistsL(const TDesC& aRecipientId) 
  1559     {
  1560     TBool ret = EFalse;
  1561     TInt unreaMsgCount = KErrNone;
  1562     //Get IM SubService     
  1563     MVIMPSTEngineSubService* subService =         
  1564             (iEngine.SubService(TVIMPSTEnums::EIM));
  1565     if(subService)
  1566         {
  1567         MVIMPSTEngineIMSubService& imSubService = 
  1568         MVIMPSTEngineIMSubService::Cast (*subService);
  1569         unreaMsgCount = imSubService.GetUnreadCountL( aRecipientId );
  1570         }
  1571     if( unreaMsgCount )
  1572         {
  1573         ret = ETrue;
  1574         }
  1575     return ret; 
  1576     }
  1577 //-----------------------------------------------------------------------------
  1578 // CVIMPSTProcessArray::IsConversationExistL
  1579 // ( Other items commented in header )
  1580 //-----------------------------------------------------------------------------    
 
138   1581 TBool CVIMPSTProcessArray::IsConversationExistL(const TDesC& aRecipientId) 
  1582     {
  1583     //Get IM SubService     
  1584     MVIMPSTEngineSubService* subService1 =          
  1585                 (iEngine.SubService(TVIMPSTEnums::EIM));
  1586     if(subService1)
  1587         {
  1588         MVIMPSTEngineIMSubService& imSubService = 
  1589                     MVIMPSTEngineIMSubService::Cast (*subService1);
  1590         return imSubService.IsConversationExistL( aRecipientId );
  1591         }
  1592     return EFalse; 
  1593     }
  1594 //-----------------------------------------------------------------------------
  1595 // CVIMPSTProcessArray::FindContactIndexL
  1596 // ( Other items commented in header )
  1597 //-----------------------------------------------------------------------------    
 
  1598 TInt CVIMPSTProcessArray::FindContactIndexL( const TDesC& aContactId )
  1599     {
  1600     MVIMPSTStorageContact* newContact = iContactInterface->FindContactByUserId( aContactId );
  1601     if(newContact)
  1602         {
  1603         // return the index of contact rather bool value..
  1604         // 1 is for own data item.
  1605         return (iContactListIndex + 1 + iContactListModel->IndexOfContact( newContact ));
  1606         }
  1607     return KErrNotFound;
  1608     }
  1609 
  1610 
  1611 //-----------------------------------------------------------------------------
  1612 // CVIMPSTProcessArray::FillUnknownContactsL
  1613 // ( Other items commented in header )
  1614 //------------------------------------------------------------------------------
 
134 134   1615 void CVIMPSTProcessArray::FillUnknownContactsL()
  1616     {
  1617     TInt count = iUnKnownContactArray.Count();
  1618     /* 
  1619      * Index = 1 cos 0th index will be OwnData, and 1 - n where n is the number of friend requests, will be friend requests 
  1620      */
  1621     TInt index = 1; 
  1622     for(TInt i = 0 ; i < count ; i++)
  1623         {
  1624         // all friend request item ownership is transfered to iItemArray
  1625         CVIMPSTProcessUnknownContactItem* unknownItem = iUnKnownContactArray[i];
  1626         unknownItem->SetItemIndex(index);        
  1627         iItemArray.Insert(unknownItem, index);        
  1628         index ++;
  1629         }
  1630     }
  1631 
  1632 //-----------------------------------------------------------------------------
  1633 // CVIMPSTProcessArray::FillAddRequestDataL
  1634 // ( Other items commented in header )
  1635 //------------------------------------------------------------------------------
 
134 134   1636 void CVIMPSTProcessArray::FillAddRequestDataL()
  1637     {
  1638     TInt count = iAddRequestArray.Count();
  1639    /* 
  1640     * Index = unknowncontacts are tops so after that 1 cos 0th index will be OwnData, and 1 - n where n is the number of friend requests, will be friend requests 
  1641     */
  1642    TInt index = iUnKnownContactArray.Count() +1 ; 
  1643     for(TInt i = 0 ; i < count ; i++)
  1644         {
  1645         // all friend request item ownership is transfered to iItemArray
  1646         CVIMPSTProcessFriendRequestItem* requestItem = iAddRequestArray[i];
  1647         requestItem->SetItemIndex(index );        
  1648         iItemArray.Insert(requestItem, index);        
  1649       index ++;
  1650         }
  1651     }
  1652 
  1653 //-----------------------------------------------------------------------------
  1654 // CVIMPSTProcessArray::RemoveUnKnownContacts
  1655 // ( Other items commented in header )
  1656 //------------------------------------------------------------------------------
 
136 136   1657 void CVIMPSTProcessArray::RemoveUnKnownContacts()
  1658     {
  1659     TInt count = iUnKnownContactArray.Count();
  1660     for(TInt i = 0 ; i < count ; i++)
  1661         {
  1662         CVIMPSTProcessUnknownContactItem* unknownItem = iUnKnownContactArray[i];
  1663         TInt index = iItemArray.Find(unknownItem);
  1664         if(index > -1)
  1665             {            
  1666             iItemArray.Remove(index);
  1667             iItemArray.Compress();
  1668             }       
  1669         }
  1670     }
  1671 //-----------------------------------------------------------------------------
  1672 // CVIMPSTProcessArray::RemoveAddRequestData
  1673 // ( Other items commented in header )
  1674 //------------------------------------------------------------------------------
 
134 134   1675 void CVIMPSTProcessArray::RemoveAddRequestData()
  1676     {
  1677     TInt count = iAddRequestArray.Count();
  1678     for(TInt i = 0 ; i < count ; i++)
  1679         {
  1680         CVIMPSTProcessFriendRequestItem* requestItem = iAddRequestArray[i];
  1681         TInt index = iItemArray.Find(requestItem);
  1682         if(index > -1)
  1683             {            
  1684             iItemArray.Remove(index);
  1685             iItemArray.Compress();
  1686             }       
  1687         }
  1688     
  1689     }
  1690 //-----------------------------------------------------------------------------
  1691 // CVIMPSTProcessArray::LoginUserIdFromStoreL
  1692 // ( Other items commented in header )
  1693 //------------------------------------------------------------------------------
  1694 
 
  1695 const TDesC& CVIMPSTProcessArray::LoginUserIdFromStoreL() const
  1696     {
  1697     if( iContactInterface )
  1698       {
  1699       // most of the time this get called 
  1700       return iContactInterface->OwnContactL().UserId();
  1701       }
  1702     return KNullDesC;
  1703     }
  1704 
  1705 //-----------------------------------------------------------------------------
  1706 // CVIMPSTProcessArray::AvatarIndex
  1707 // ( Other items commented in header )
  1708 //------------------------------------------------------------------------------
  1709 
 
  1710 TInt CVIMPSTProcessArray::AvatarIndex(TInt aContactIndex)
  1711     {
  1712     TVIMPSTEnums::TItem itemtype = GetType( aContactIndex );
  1713     /* Codescanner warning is ignored, since Bound check is done 
  1714      * inside the GetType()   method*/
  1715 
  1716     if( TVIMPSTEnums::EContactItem == itemtype )
  1717         {
  1718        // if the type is a contact item then return the index
  1719         MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId( GetItemUserId(aContactIndex) );
  1720         if(contact)
  1721             {
  1722             // if any contact is found then return the index
  1723             return contact->AvatarIndex();
  1724             }
  1725         }
  1726     return KErrNone;
  1727     }
  1728 //-----------------------------------------------------------------------------
  1729 // CVIMPSTProcessArray::SetAvatarIndex
  1730 // ( Other items commented in header )
  1731 //------------------------------------------------------------------------------
  1732 
 
  1733 void CVIMPSTProcessArray::SetAvatarIndex( TInt aContactIndex ,TInt aAvatarIndex )
  1734     {
  1735     TVIMPSTEnums::TItem itemtype = GetType( aContactIndex );
  1736     if( TVIMPSTEnums::EContactItem == itemtype )
  1737         {
  1738         // if the type is a contact item then set the index 
  1739         MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId(GetItemUserId(aContactIndex));
  1740         if(contact)
  1741             {
  1742             // if any contact is found then set the index
  1743             contact->SetAvatarIndex( aAvatarIndex );
  1744             }
  1745         }
  1746 
  1747     }
  1748 
  1749 //-----------------------------------------------------------------------------
  1750 // CVIMPSTProcessArray::AvatarContent
  1751 // ( Other items commented in header )
  1752 //------------------------------------------------------------------------------
  1753 
 
  1754 const TDesC8& CVIMPSTProcessArray::AvatarContent(TInt aContactIndex)
  1755     {   
  1756     TVIMPSTEnums::TItem itemtype = GetType( aContactIndex );
  1757 
  1758     if(  itemtype == TVIMPSTEnums::EContactItem )
  1759         {
  1760         // if the type is a contact item then get the avatar content from strorage
  1761         MVIMPSTStorageContact* contact = iContactInterface->FindContactByUserId(GetItemUserId(aContactIndex));
  1762         if(contact)
  1763             {
  1764             // if any contact is found then get the content
  1765             return contact->AvatarContent();
  1766             }
  1767         }
  1768     return KNullDesC8();
  1769     }
  1770 //-----------------------------------------------------------------------------
  1771 // CVIMPSTProcessArray::OwnAvatarContentL
  1772 // ( Other items commented in header )
  1773 //------------------------------------------------------------------------------
  1774 
 
  1775 const TDesC8& CVIMPSTProcessArray::OwnAvatarContentL( ) const
  1776    {   
  1777     MVIMPSTStorageContact& contact = iContactInterface->OwnContactL();             
  1778     // if any contact is found then get the content
  1779     return contact.AvatarContent();
  1780    }
  1781 //-----------------------------------------------------------------------------
  1782 // CVIMPSTProcessArray::OwnAvatarIndexL
  1783 // ( Other items commented in header )
  1784 //------------------------------------------------------------------------------
  1785 
 
  1786 TInt CVIMPSTProcessArray::OwnAvatarIndexL( )
  1787     {
  1788     MVIMPSTStorageContact& contact = iContactInterface->OwnContactL();  
  1789     return contact.AvatarIndex();           
  1790     }
  1791 //-----------------------------------------------------------------------------
  1792 // CVIMPSTProcessArray::SetOwnAvatarIndexL
  1793 // ( Other items commented in header )
  1794 //------------------------------------------------------------------------------
  1795 
 
- 1796 void CVIMPSTProcessArray::SetOwnAvatarIndexL( TInt aAvatarIndex )
  1797     {
  1798     MVIMPSTStorageContact& contact = iContactInterface->OwnContactL();             
  1799     contact.SetAvatarIndex( aAvatarIndex );
  1800     }
  1801 
  1802 //-----------------------------------------------------------------------------
  1803 // CVIMPSTProcessArray::FindAnyAddRequest
  1804 // ( Other items commented in header )
  1805 //------------------------------------------------------------------------------
  1806 
 
20   1807 TInt CVIMPSTProcessArray::FindAnyAddRequest( const TDesC& aRequesterId )
  1808     {
  1809     TInt count = iAddRequestArray.Count();
  1810     for(TInt i=0; i<count; i++)
  1811         {   
  1812         if((aRequesterId.Compare(iAddRequestArray[i]->GetItemUserId()))==0 )                
  1813             {
  1814             return ETrue;
  1815             }
  1816         }
  1817     return EFalse;
  1818     }
  1819 
  1820 // -----------------------------------------------------------------------------
  1821 // CVIMPSTProcessArray::GetSelectedItemIndex
  1822 // return contact index including friend request.
  1823 // -----------------------------------------------------------------------------
 
  1824 TInt CVIMPSTProcessArray::GetSelectedItemIndex(const TDesC& aContactId) 
  1825    {
  1826    TInt itemArrayCount = iItemArray.Count();
  1827    for(TInt index=0; index<itemArrayCount; index++)
  1828       {
  1829       MVIMPSTProcessArrayItem* item = iItemArray[ index ];
  1830       if(0 == aContactId.Compare(item->GetItemUserId()))
  1831           {
  1832           return index; 
  1833           }
  1834       }
  1835    return KErrNotFound;
  1836    }
  1837 
  1838 // --------------------------------------------------------------------------
  1839 // CVIMPSTProcessArray::IsContactBlocked
  1840 // --------------------------------------------------------------------------
 
  1841 TBool CVIMPSTProcessArray::IsContactBlocked(const TDesC& aUserId)
  1842     {
  1843     MVIMPSTEngineSubService* subService =          
  1844                         (iEngine.SubService(TVIMPSTEnums::EPresence));
  1845     if(subService)
  1846         {
  1847         MVIMPSTEnginePresenceSubService& presence = 
  1848                 MVIMPSTEnginePresenceSubService::Cast (*subService);
  1849                 
  1850         RPointerArray<HBufC> *blockedlist = presence .GetBlockedList();
  1851         
  1852         if(blockedlist)
  1853             {
  1854             for(TInt i=0; i<blockedlist->Count(); ++i)
  1855                 {
  1856                 if(0 == aUserId.CompareC((*blockedlist)[i]->Des()))
  1857                     {
  1858                     return ETrue;
  1859                     }
  1860                 }
  1861             }
  1862         }
  1863     return EFalse;  
  1864     }       
  1865 
  1866 
  1867 //END OF FILE
***TER 87% (47/54) of SOURCE FILE cvimpstprocessarray.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD41.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD41.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,451 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #41/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarrayitem.cpp
+Instrumentation mode: function
+TER: 57 % ( 21/ 37)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : cvimpstprocessarrayitem.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : CVIMPSTProcessContactItem, CVIMPSTProcessContactListItem, CVIMPSTProcessOwnDataItem,
  6              CVIMPSTProcessConversationItem:  Method implementation
  7 *  Version     : %vision: 10 %
  8 *
  9 *  Copyright © 2008 Nokia Corporation.
  10 *  This material, including documentation and any related 
  11 *  computer programs, is protected by copyright controlled by 
  12 *  Nokia Corporation. All rights are reserved. Copying, 
  13 *  including reproducing, storing, adapting or translating, any 
  14 *  or all of this material requires the prior written consent of 
  15 *  Nokia Corporation. This material also contains confidential 
  16 *  information which may not be disclosed to others without the 
  17 *  prior written consent of Nokia Corporation.
  18 * ==============================================================================
  19 */
  20 
  21 #include "cvimpstprocessarrayitem.h"
  22 #include "tvimpstconsts.h"
  23 #include "vimpstutils.h"
  24 #include <vimpstuires.rsg>
  25 // -----------------------------------------------------------------------------
  26 // CVIMPSTProcessContactItem::NewL
  27 // -----------------------------------------------------------------------------
  28 //
 
154   29 CVIMPSTProcessContactItem* CVIMPSTProcessContactItem::NewL(const TDesC& aContactName,
  30                                           const TDesC& aContactId ,
  31                                        MVPbkContactLink* aContactLink)
  32     {
  33     CVIMPSTProcessContactItem* self = new( ELeave ) CVIMPSTProcessContactItem
  34                          ( aContactLink);
  35     CleanupStack::PushL( self );
  36     self->ConstructL(aContactId,aContactName );
  37     CleanupStack::Pop(); //Codescanner warning ignored
  38     return self;
  39     }
  40 
  41 // -----------------------------------------------------------------------------
  42 // CVIMPSTProcessContactItem::ConstructL
  43 // -----------------------------------------------------------------------------
  44 //
 
154 154   45 void CVIMPSTProcessContactItem::ConstructL(const TDesC& aContactId,
  46                                 const TDesC& aContactName )
  47     {
  48     iContactUserId = aContactId.AllocL();
  49     iItemNameTextContact = aContactName.AllocL();
  50     iSMsgPending = EFalse;
  51     }
  52 
  53 // -----------------------------------------------------------------------------
  54 // CVIMPSTProcessContactItem::CVIMPSTProcessContactItem
  55 // -----------------------------------------------------------------------------
  56 //   
 
154 154   57 CVIMPSTProcessContactItem::CVIMPSTProcessContactItem(MVPbkContactLink* aContactLink)
  58 : iContactLink(aContactLink)
  59     {
  60     } 
  61     
  62 // -----------------------------------------------------------------------------
  63 // CVIMPSTProcessContactItem::~CVIMPSTProcessContactItem
  64 // -----------------------------------------------------------------------------
  65 //  
 
66 66   66 CVIMPSTProcessContactItem::~CVIMPSTProcessContactItem()
  67    {
  68    delete iContactUserId;
  69    delete iItemNameTextContact;
  70    }
  71       
  72 // -----------------------------------------------------------------------------
  73 //CVIMPSTProcessContactItem: Type
  74 // -----------------------------------------------------------------------------
  75 //
 
18   76 TVIMPSTEnums::TItem CVIMPSTProcessContactItem::Type()
  77    {
  78    return TVIMPSTEnums::EContactItem;
  79    }
  80 
  81 // -----------------------------------------------------------------------------
  82 //CVIMPSTProcessContactItem: GetItemNameText
  83 // -----------------------------------------------------------------------------
  84 //
 
- 85 TPtrC CVIMPSTProcessContactItem::GetItemNameText()
  86     {
  87      if( iItemNameTextContact )
  88        {
  89        return *iItemNameTextContact;   
  90        }
  91    return KNullDesC();
  92     }
  93  
  94  // -----------------------------------------------------------------------------
  95 //CVIMPSTProcessContactItem: GetItemUserId
  96 // -----------------------------------------------------------------------------
  97 //
 
18   98 TPtrC CVIMPSTProcessContactItem::GetItemUserId()
  99     {
  100     if( iContactUserId )
  101        {
  102        return *iContactUserId;   
  103        }
  104    return KNullDesC();
  105     }
  106 // -----------------------------------------------------------------------------
  107 //CVIMPSTProcessContactItem: SetMsgPending
  108 // -----------------------------------------------------------------------------
  109 //
 
  110 void CVIMPSTProcessContactItem::SetMsgPending(TBool aPendingMessageStatus)
  111     {
  112     iSMsgPending = aPendingMessageStatus;
  113     }
  114 // -----------------------------------------------------------------------------
  115 //CVIMPSTProcessContactItem: GetMsgPending
  116 // -----------------------------------------------------------------------------
  117 //
 
- 118 TBool CVIMPSTProcessContactItem::IsMsgPending()
  119     {
  120     return iSMsgPending;
  121     }
  122 
  123 // -----------------------------------------------------------------------------
  124 //CVIMPSTProcessContactItem: SetConversationOpen
  125 // -----------------------------------------------------------------------------
  126 //
 
  127 void CVIMPSTProcessContactItem::SetConversationOpen(TBool aConversationOpen)
  128     {
  129     iIsConversationOpen = aConversationOpen;
  130     }
  131 // -----------------------------------------------------------------------------
  132 //CVIMPSTProcessContactItem: IsConversationOpen
  133 // -----------------------------------------------------------------------------
  134 //
 
- 135 TBool CVIMPSTProcessContactItem::IsConversationOpen()
  136     {
  137     return iIsConversationOpen;
  138     }
  139 // -----------------------------------------------------------------------------
  140 // CVIMPSTProcessContactListItem::NewL
  141 // -----------------------------------------------------------------------------
  142 //
 
- 143 CVIMPSTProcessContactListItem* CVIMPSTProcessContactListItem::NewL()
  144     {
  145     CVIMPSTProcessContactListItem* self = new( ELeave ) CVIMPSTProcessContactListItem();
  146     CleanupStack::PushL( self );
  147     self->ConstructL();
  148     CleanupStack::Pop();//Codescanner warning ignored
  149     return self;
  150     }
  151 
  152 // -----------------------------------------------------------------------------
  153 // CVIMPSTProcessContactListItem::ConstructL
  154 // -----------------------------------------------------------------------------
  155 //
 
- 156 void CVIMPSTProcessContactListItem::ConstructL()
  157     {
  158     iItemNameTextList = HBufC::NewL(KFriendsListMaxIdentificationLength);
  159     }
  160 // -----------------------------------------------------------------------------
  161 // CVIMPSTProcessContactListItem::c++ default constructor
  162 // -----------------------------------------------------------------------------
  163 //   
 
- 164 CVIMPSTProcessContactListItem::CVIMPSTProcessContactListItem()
  165     {
  166        
  167     }    
  168 // -----------------------------------------------------------------------------
  169 // CVIMPSTProcessContactListItemPC::~CVIMPSTProcessContactListItemPC destructor
  170 // -----------------------------------------------------------------------------
  171 //
 
- 172 CVIMPSTProcessContactListItem::~CVIMPSTProcessContactListItem()
  173     {
  174     delete iItemNameTextList;
  175     iItemNameTextList = NULL;
  176     }    
  177         
  178 // -----------------------------------------------------------------------------
  179 //CVIMPSTProcessContactListItem: Type
  180 // -----------------------------------------------------------------------------
  181 //
 
- 182 TVIMPSTEnums::TItem CVIMPSTProcessContactListItem::Type()
  183    {
  184    return TVIMPSTEnums::EContactListItem;
  185    }
  186 
  187 // -----------------------------------------------------------------------------
  188 //CVIMPSTProcessContactListItem: IsCollapsed
  189 // -----------------------------------------------------------------------------
  190 //
 
- 191 TBool CVIMPSTProcessContactListItem::IsCollapsed()
  192    {
  193    return iCollapsedStatus;
  194    }
  195 
  196 // -----------------------------------------------------------------------------
  197 //CVIMPSTProcessContactListItem: SetCollapsed
  198 // -----------------------------------------------------------------------------
  199 //
 
- 200 void CVIMPSTProcessContactListItem::SetCollapsed(TBool aCollapsedStatus)
  201    {
  202    iCollapsedStatus = aCollapsedStatus;
  203    }
  204 
  205 // -----------------------------------------------------------------------------
  206 //CVIMPSTProcessContactListItem: GetItemNameText
  207 // -----------------------------------------------------------------------------
  208 //
 
- 209 TPtrC CVIMPSTProcessContactListItem::GetItemNameText()
  210    {
  211    return *iItemNameTextList;
  212    }
  213 
  214 // -----------------------------------------------------------------------------
  215 //CVIMPSTProcessContactListItem: SetItemNameText
  216 // -----------------------------------------------------------------------------
  217 //
 
- 218 void CVIMPSTProcessContactListItem::SetItemNameText(const TDesC& aItemName)
  219    {
  220    *iItemNameTextList = aItemName;
  221    }
  222 
  223 // -----------------------------------------------------------------------------
  224 // CVIMPSTProcessOwnDataItem::NewL
  225 // -----------------------------------------------------------------------------
  226 //
 
144   227 CVIMPSTProcessOwnDataItem* CVIMPSTProcessOwnDataItem::NewL(TDesC& aOwnId)
  228     {
  229     CVIMPSTProcessOwnDataItem* self = new( ELeave ) CVIMPSTProcessOwnDataItem(aOwnId);
  230     CleanupStack::PushL( self );
  231     self->ConstructL();
  232     CleanupStack::Pop(); //Codescanner warning ignored
  233     return self;
  234     }
  235 
  236 // -----------------------------------------------------------------------------
  237 // CVIMPSTProcessOwnDataItem::ConstructL
  238 // -----------------------------------------------------------------------------
  239 //
 
144 144   240 void CVIMPSTProcessOwnDataItem::ConstructL()
  241     {
  242     }
  243     
  244 // -----------------------------------------------------------------------------
  245 // CVIMPSTProcessOwnDataItem::CVIMPSTProcessOwnDataItem
  246 // -----------------------------------------------------------------------------
  247 //   
 
144 144   248 CVIMPSTProcessOwnDataItem::CVIMPSTProcessOwnDataItem(TDesC& aOwnId)
  249 :iOwnDataId(aOwnId) 
  250     {
  251        
  252     }
  253 // -----------------------------------------------------------------------------
  254 // CVIMPSTProcessOwnDataItem::~CVIMPSTProcessOwnDataItem
  255 // -----------------------------------------------------------------------------
  256 //   
 
64 64   257 CVIMPSTProcessOwnDataItem::~CVIMPSTProcessOwnDataItem()
  258     {
  259        
  260     }
  261 
  262 // -----------------------------------------------------------------------------
  263 //CVIMPSTProcessOwnDataItem: Type
  264 // -----------------------------------------------------------------------------
  265 //
 
12   266 TVIMPSTEnums::TItem CVIMPSTProcessOwnDataItem::Type()
  267    {
  268    return TVIMPSTEnums::EOwnStatusItem;
  269    }
  270 
  271 // -----------------------------------------------------------------------------
  272 //CVIMPSTProcessOwnDataItemPC: GetItemUserId
  273 // -----------------------------------------------------------------------------
  274 //
 
14   275 TPtrC CVIMPSTProcessOwnDataItem::GetItemUserId() 
  276    {
  277    return iOwnDataId;
  278    }
  279 
  280 /////////////////////////////////////////////////////////////////////////
  281 ///////////////////////////////// Unknowncontact item ////////////////////
  282 
  283 
  284 // -----------------------------------------------------------------------------
  285 // CVIMPSTProcessUnknownContactItem::default constructor
  286 // -----------------------------------------------------------------------------
  287 //
 
  288 CVIMPSTProcessUnknownContactItem::CVIMPSTProcessUnknownContactItem()
  289     {
  290     
  291     }
  292 
  293 // -----------------------------------------------------------------------------
  294 // CVIMPSTProcessUnknownContactItem::NewL
  295 // -----------------------------------------------------------------------------
  296 //
 
  297 CVIMPSTProcessUnknownContactItem* CVIMPSTProcessUnknownContactItem::NewL(const TDesC& aBuddyId )
  298     {
  299     CVIMPSTProcessUnknownContactItem* self = new (ELeave) CVIMPSTProcessUnknownContactItem();
  300     CleanupStack::PushL(self);
  301     self->ConstructL(aBuddyId);
  302     CleanupStack::Pop();
  303     return self;
  304     }
  305 
  306 // -----------------------------------------------------------------------------
  307 // CVIMPSTProcessUnknownContactItem::ConstructL
  308 // -----------------------------------------------------------------------------
  309 //
 
  310 void CVIMPSTProcessUnknownContactItem::ConstructL(const TDesC& aBuddyId)
  311     {
  312      iUesrId = aBuddyId.AllocL();
  313      //load formatted string from resource.
  314      iItemNameText = VIMPSTUtils::LoadResourceL(R_SERVTAB_UNKNOWN_BUDDY);
  315      iIndex = -1;//default index if no index is set.
  316     }
  317 
  318 // -----------------------------------------------------------------------------
  319 // CVIMPSTProcessUnknownContactItem::destructor
  320 // -----------------------------------------------------------------------------
  321 //
 
  322 CVIMPSTProcessUnknownContactItem::~CVIMPSTProcessUnknownContactItem()
  323     {
  324     delete iItemNameText;
  325     delete iUesrId;
  326     }
  327 
  328 // -----------------------------------------------------------------------------
  329 // CVIMPSTProcessUnknownContactItem::GetItemNameText
  330 // -----------------------------------------------------------------------------
  331 //
 
- 332 TPtrC CVIMPSTProcessUnknownContactItem::GetItemNameText()
  333     {
  334     return iItemNameText->Des();
  335     }
  336 
  337 // -----------------------------------------------------------------------------
  338 // CVIMPSTProcessUnknownContactItem::Type
  339 // -----------------------------------------------------------------------------
  340 //
 
- 341 TVIMPSTEnums::TItem CVIMPSTProcessUnknownContactItem::Type()
  342     {
  343     return TVIMPSTEnums::EUnknonContactItem;
  344     }
  345 /**
  346 * Returns the user id of the listbox item 
  347 * @return TPtrC: user id of the listbox item.
  348 */
 
  349 TPtrC CVIMPSTProcessUnknownContactItem::GetItemUserId()
  350     {
  351     return iUesrId->Des();
  352     }
  353 
  354 // -----------------------------------------------------------------------------
  355 //CVIMPSTProcessUnknownContactItem: SetMsgPending
  356 // -----------------------------------------------------------------------------
  357 //
 
  358 void CVIMPSTProcessUnknownContactItem::SetMsgPending(TBool aPendingMessageStatus)
  359     {
  360     iSMsgPending = aPendingMessageStatus;
  361     }
  362 // -----------------------------------------------------------------------------
  363 //CVIMPSTProcessUnknownContactItem: GetMsgPending
  364 // -----------------------------------------------------------------------------
  365 //
 
- 366 TBool CVIMPSTProcessUnknownContactItem::IsMsgPending()
  367     {
  368     return iSMsgPending;
  369     }
  370 
  371 // -----------------------------------------------------------------------------
  372 //CVIMPSTProcessUnknownContactItem: SetConversationOpen
  373 // -----------------------------------------------------------------------------
  374 //
 
  375 void CVIMPSTProcessUnknownContactItem::SetConversationOpen(TBool aConversationOpen)
  376     {
  377     iIsConversationOpen = aConversationOpen;
  378     }
  379 // -----------------------------------------------------------------------------
  380 //CVIMPSTProcessUnknownContactItem: IsConversationOpen
  381 // -----------------------------------------------------------------------------
  382 //
 
- 383 TBool CVIMPSTProcessUnknownContactItem::IsConversationOpen()
  384     {
  385     return iIsConversationOpen;
  386     }
***TER 57% (21/37) of SOURCE FILE cvimpstprocessarrayitem.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD42.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD42.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,168 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #42/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessfriendrequestitem.cpp
+Instrumentation mode: function
+TER: 45 % ( 5/ 11)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimpstprocessfriendrequestitem.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 4.1.3 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 #include "cvimpstprocessfriendrequestitem.h"
  19 #include "vimpstutils.h"
  20 #include <vimpstuires.rsg>
  21 
  22 
  23 // -----------------------------------------------------------------------------
  24 // CVIMPSTProcessFriendRequestItem::default constructor
  25 // -----------------------------------------------------------------------------
  26 //
 
  27 CVIMPSTProcessFriendRequestItem::CVIMPSTProcessFriendRequestItem()
  28     {
  29     
  30     }
  31 
  32 // -----------------------------------------------------------------------------
  33 // CVIMPSTProcessFriendRequestItem::NewL
  34 // -----------------------------------------------------------------------------
  35 //
 
  36 CVIMPSTProcessFriendRequestItem* CVIMPSTProcessFriendRequestItem::NewL(const TDesC& aRequesterId,
  37                                                                         const TDesC& aRequestorDisplayName)
  38     {
  39     CVIMPSTProcessFriendRequestItem* self = new (ELeave) CVIMPSTProcessFriendRequestItem();
  40     CleanupStack::PushL(self);
  41     self->ConstructL(aRequesterId,aRequestorDisplayName);
  42     CleanupStack::Pop();
  43     return self;
  44     }
  45 
  46 // -----------------------------------------------------------------------------
  47 // CVIMPSTProcessFriendRequestItem::ConstructL
  48 // -----------------------------------------------------------------------------
  49 //
 
  50 void CVIMPSTProcessFriendRequestItem::ConstructL(const TDesC& aRequesterId, const TDesC& aRequestorDisplayName)
  51     {
  52      iUesrId = aRequesterId.AllocL();
  53      iDisplayName = aRequestorDisplayName.AllocL();
  54      //load formatted string from resource.
  55      iIndex = -1;//default index if no index is set.
  56     }
  57 
  58 // -----------------------------------------------------------------------------
  59 // CVIMPSTProcessFriendRequestItem::destructor
  60 // -----------------------------------------------------------------------------
  61 //
 
  62 CVIMPSTProcessFriendRequestItem::~CVIMPSTProcessFriendRequestItem()
  63     {
  64     delete iUesrId;
  65     delete iDisplayName;
  66     }
  67 
  68 // -----------------------------------------------------------------------------
  69 // CVIMPSTProcessFriendRequestItem::GetItemNameText
  70 // -----------------------------------------------------------------------------
  71 //
 
- 72 TPtrC CVIMPSTProcessFriendRequestItem::GetItemNameText()
  73     {
  74     if((*iDisplayName).Length())
  75         return iDisplayName->Des();
  76     else 
  77         return iUesrId->Des();
  78     }
  79 
  80 // -----------------------------------------------------------------------------
  81 // CVIMPSTProcessFriendRequestItem::Type
  82 // -----------------------------------------------------------------------------
  83 //
 
- 84 TVIMPSTEnums::TItem CVIMPSTProcessFriendRequestItem::Type()
  85     {
  86     return TVIMPSTEnums::EFriendRequestItem;
  87     }
  88 
  89 /**
  90 * Returns the user id of the listbox item 
  91 * @return TPtrC: user id of the listbox item.
  92 */
 
18   93 TPtrC CVIMPSTProcessFriendRequestItem::GetItemUserId()
  94     {
  95     return iUesrId->Des();
  96     }
  97 
  98 // -----------------------------------------------------------------------------
  99 //CVIMPSTProcessFriendRequestItem: SetMsgPending
  100 // -----------------------------------------------------------------------------
  101 //
 
- 102 void CVIMPSTProcessFriendRequestItem::SetMsgPending(TBool aPendingMessageStatus)
  103     {
  104     iSMsgPending = aPendingMessageStatus;
  105     }
  106 // -----------------------------------------------------------------------------
  107 //CVIMPSTProcessFriendRequestItem: GetMsgPending
  108 // -----------------------------------------------------------------------------
  109 //
 
- 110 TBool CVIMPSTProcessFriendRequestItem::IsMsgPending()
  111     {
  112     return iSMsgPending;
  113     }
  114 // -----------------------------------------------------------------------------
  115 //CVIMPSTProcessFriendRequestItem: SetConversationOpen
  116 // -----------------------------------------------------------------------------
  117 //
 
- 118 void CVIMPSTProcessFriendRequestItem::SetConversationOpen(TBool aConversationOpen)
  119     {
  120     iIsConversationOpen = aConversationOpen;
  121     }
  122 // -----------------------------------------------------------------------------
  123 //CVIMPSTProcessFriendRequestItem: IsConversationOpen
  124 // -----------------------------------------------------------------------------
  125 //
 
- 126 TBool CVIMPSTProcessFriendRequestItem::IsConversationOpen()
  127     {
  128     return iIsConversationOpen;
  129     }
***TER 45% (5/11) of SOURCE FILE cvimpstprocessfriendrequestitem.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD43.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD43.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,175 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #43/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimstcmdfriendrequest.cpp
+Instrumentation mode: function
+TER: 100 % ( 8/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ===========================================================================
  3 *  Name        : cvimstcmdfriendrequest.cpp
  4 *  Part of     : IMUiServiceTab/vimpstcmdprocess
  5 *  Description : 
  6 *  Version     : %version: 4 %
  7 *
  8 *  Copyright © 2008 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 // INCLUDE FILES
  20 #include "cvimstcmdfriendrequest.h"
  21 
  22 #include "vimpstcmd.hrh"
  23 #include "mvimpstcmdobserver.h"
  24 #include "vimpstdebugprint.h" 
  25 
  26 #include <e32def.h>
  27 #include "mvimpstengine.h"
  28 #include "mvimpstenginepresencesubservice.h"
  29 #include "mvimpstenginesubservice.h"
  30 
  31 // Constants
  32 
  33 // --------------------------------------------------------------------------
  34 // CVIMPSTCmdFriendRequest::CVIMPSTCmdFriendRequest
  35 // --------------------------------------------------------------------------
  36 //
 
  37 CVIMPSTCmdFriendRequest::CVIMPSTCmdFriendRequest( 
  38         const TInt aCommandId ,const TDesC& aContactId,
  39         MVIMPSTEngine& aEngine) :            
  40             iCommandId( aCommandId ),
  41             iContactId( aContactId ),
  42             iEngine(aEngine)
  43     {
  44     }
  45 
  46 // --------------------------------------------------------------------------
  47 // CVIMPSTCmdFriendRequest::~CVIMPSTCmdFriendRequest
  48 // --------------------------------------------------------------------------
  49 //
 
  50 CVIMPSTCmdFriendRequest::~CVIMPSTCmdFriendRequest()
  51     {    
  52     
  53     }
  54 
  55 // --------------------------------------------------------------------------
  56 // CVIMPSTCmdFriendRequest::NewL
  57 // --------------------------------------------------------------------------
  58 //
 
  59 CVIMPSTCmdFriendRequest* CVIMPSTCmdFriendRequest::NewL( 
  60         const TInt aCommandId,const TDesC& aContactId,
  61         MVIMPSTEngine& aEngine)
  62     {
  63     CVIMPSTCmdFriendRequest* self = new (ELeave ) CVIMPSTCmdFriendRequest( aCommandId ,aContactId, aEngine);
  64     self->ConstructL(); //use contsurctL if necessary
  65     return self;
  66     }
  67 // --------------------------------------------------------------------------
  68 // CVIMPSTCmdFriendRequest::ConstructL
  69 // --------------------------------------------------------------------------
  70 //
 
  71 void CVIMPSTCmdFriendRequest::ConstructL()
  72     {    
  73     iError = KErrNone;
  74     }
  75 
  76 // --------------------------------------------------------------------------
  77 // CVIMPSTCmdFriendRequest::ExecuteLD
  78 // --------------------------------------------------------------------------
  79 //
 
  80 void CVIMPSTCmdFriendRequest::ExecuteLD()
  81     {
  82     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest::ExecuteLD");
  83     //push to the cleanupstack
  84     CleanupStack::PushL( this );     
  85     
  86     //Get Presence SubService 
  87     MVIMPSTEngineSubService* subService =          
  88                   (iEngine.SubService(TVIMPSTEnums::EPresence));
  89     
  90     if(subService)
  91         {
  92         MVIMPSTEnginePresenceSubService& presence = 
  93               MVIMPSTEnginePresenceSubService::Cast (*subService);
  94         presence.SendPresenceGrantPresentityL(iContactId, ( iCommandId == EFriendAccpeted  ));
  95         }
  96     
  97     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest:: CommandFinished");
  98 
  99     if(iObserver)
  100         {
  101         iObserver->CommandFinishedL(*this);
  102         }
  103     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest:: CommandFinished");    
  104     CleanupStack::PopAndDestroy();  
  105     CHAT_DP_FUNC_DONE("CVIMPSTCmdFriendRequest::ExecuteLD");    
  106     }
  107 
  108 
  109 // --------------------------------------------------------------------------
  110 // CVIMPSTCmdFriendRequest::AddObserver
  111 // --------------------------------------------------------------------------
  112 //
 
  113 void CVIMPSTCmdFriendRequest::AddObserver( MVIMPSTCmdObserver& aObserver )
  114     {
  115     // store the observer to notify the command completion
  116     iObserver = &aObserver;
  117     }
  118 
  119 
  120 // --------------------------------------------------------------------------
  121 // CVIMPSTCmdFriendRequest::CommandId
  122 // --------------------------------------------------------------------------
  123 //
 
  124 TInt CVIMPSTCmdFriendRequest::CommandId() const
  125     {
  126     return iCommandId;  
  127     }
  128 
  129 // --------------------------------------------------------------------------
  130 // CVIMPSTCmdFriendRequest::Result
  131 // --------------------------------------------------------------------------
  132 //
 
  133 TInt CVIMPSTCmdFriendRequest::Result() const
  134     {
  135     //return valid data regd the command operation
  136     return iError;
  137     }
  138 
  139 // End of File
***TER 100% (8/8) of SOURCE FILE cvimstcmdfriendrequest.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD5.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,261 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #5/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_cvpbkcontactlinkarray.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 27)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ==============================================================================
  3 *  Name        : s_CVPbkContactLinkArray.cpp
  4 *  Part of     : Virtual Phonebook / VPbkEng.dll
  5 *  Description : An array for contact links.
  6 *  Version     : %version: 1 %
  7 *
  8 *  Copyright © 2002-2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 */
  18 
  19 
  20 // INCLUDES
  21 #include <CVPbkContactLinkArray.h>
  22 /**
  23  * Creates an empty link array.
  24  *
  25  * @return A new instance of this class
  26  */
 
- 27 EXPORT_C  CVPbkContactLinkArray* CVPbkContactLinkArray::NewL(){ return new (ELeave) CVPbkContactLinkArray; }
  28 
  29 /**
  30  * Creates an empty link array. Leaves the created array object on
  31  * the cleanup stack.
  32  *
  33  * @return A new instance of this class
  34  */
 
- 35 EXPORT_C  CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC()
  36 
  37 CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; 
  38 CleanupStack::PushL(self);
  39 return self;
  40 }
  41 
  42 /**
  43  * Creates a link array from a packed descriptor of links.
  44  *
  45  * @param aPackedLinks a buffer that was created using PackLC
  46  *        of MVPbkContactLinkArray or MVPbkContactLink
  47  * @param aStoreList the list of stores that contain the
  48  *        stores that links belong.
  49  * @return A new instance of this class
  50  */
 
- 51 EXPORT_C  CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC(
  52         const TDesC8& /*aPackedLinks*/,
  53         const MVPbkContactStoreList& /*aStoreList*/)
  54    { 
  55    CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; 
  56    CleanupStack::PushL(self);
  57    return self;
  58    }
  59 
  60 /**
  61  * Creates a link array from a stream of links.
  62  *
  63  * @param aStream a stream of contact link that was created
  64  *                using MVPbkStreamable interface of
  65  *                MVPbkContactLink
  66  * @param aStoreList the list of stores that contain the
  67  *                stores that links belong.
  68  * @return A new instance of this class
  69  */
 
- 70 EXPORT_C  CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC(
  71         RReadStream& /*aStream*/,
  72         const MVPbkContactStoreList& /*aStoreList*/)
  73         { 
  74       CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; 
  75       CleanupStack::PushL(self);
  76       return self;
  77       }
  78 
  79 /**
  80  * Creates a link array from a stream of links. Uses aLoader
  81  * to find and load stores.
  82  * aLoader must exist the life time of this object.
  83  *
  84  * @param aStream a stream of contact link that was created
  85  *                using MVPbkStreamable interface of
  86  *                MVPbkContactLink
  87  * @param aLoader the contact store loader for internalization.
  88  * @return A new instance of this class
  89  */
 
- 90  CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC(
  91         RReadStream& /*aStream*/,
  92         MVPbkContactStoreLoader& /*aLoader*/ )
  93        { 
  94       CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; 
  95       CleanupStack::PushL(self);
  96       return self;
  97       }
  98 
  99 /**
  100  * Destructor.
  101  */
 
- 102 CVPbkContactLinkArray::~CVPbkContactLinkArray(){ }
  103 
  104 
  105 /**
  106  * Appends a link to this array.
  107  *
  108  * @param aLink the link object to append. This array takes ownership
  109  *              of the link if append is succesful.
  110  * @pre aLink != NULL
  111  * @post Array count is increased by one and the link is in the last 
  112  * element of the array.
  113  */
 
- 114 EXPORT_C void CVPbkContactLinkArray::AppendL(MVPbkContactLink* /*aLink*/){ }
  115 
  116 /**
  117  * Inserts a link to this array.
  118  *
  119  * @param aLink the link object to insert. This array takes ownership
  120  *              of the link if insertion is succesful.
  121  * @param aIndex    position where to insert the link.
  122  * @exception KErrNoMemory  if out of memory.
  123  * @pre aLink != NULL
  124  * @pre aIndex >= 0 && aIndex <= Count()
  125  * @post Array count is increased by one and the link is in the position 
  126  * marked by the aIndex element of the array.
  127  */
 
- 128 EXPORT_C void CVPbkContactLinkArray::InsertL(MVPbkContactLink* /*aLink*/, TInt /*aIndex*/){ }
  129 
  130 /**
  131  * Removes a link at aIndex from this array.
  132  *  
  133  * @pre aIndex >= 0 && aIndex <= Count()
  134  * @post The array count is decreased by one.
  135  */
 
- 136 EXPORT_C void CVPbkContactLinkArray::Remove(TInt /*aIndex*/){ }
  137 
  138 /**
  139  * Removes and deletes a link at aIndex from this array.
  140  *
  141  * @pre aIndex >= 0 && aIndex <= Count()
  142  * @post The array count is decreased by one.
  143  */
 
- 144 EXPORT_C void CVPbkContactLinkArray::Delete(TInt /*aIndex*/){ }
  145 
  146 /**
  147  * Resets the array and destroys the links
  148  */
 
- 149 EXPORT_C void CVPbkContactLinkArray::ResetAndDestroy(){ }
  150 
  151 /**
  152  * Resets this array but doesn't destroy links
  153  * 
  154  * @post Count() == 0
  155  */
 
- 156 EXPORT_C void CVPbkContactLinkArray::Reset(){ }
  157 
  158 /**
  159  * Returns the size of the packed link array
  160  */
 
- 161 EXPORT_C TInt CVPbkContactLinkArray::PackedBufferSize() const{ return 0; }
  162 
  163 
 
- 164 TInt CVPbkContactLinkArray::Count() const{ return 0; }
 
- 165 const MVPbkContactLink& CVPbkContactLinkArray::At(TInt /*aIndex*/) const
  166    { 
  167    MVPbkContactLink* ret = NULL;
  168    return *ret;
  169    }
  170 
 
- 171 TInt CVPbkContactLinkArray::Find(const MVPbkContactLink& /*aLink*/) const{ return 0; }
 
- 172 HBufC8* CVPbkContactLinkArray::PackLC() const
  173 {  
  174 _LIT8(KText,"Nutan@presence");
  175    
  176     HBufC8* temp = HBufC8::NewLC( 32 );
  177     TPtr8 tempptr = temp->Des();
  178     tempptr.Zero();
  179     tempptr.Append( KText );
  180   
  181     //CleanupStack::PushL( temp );
  182     return temp;
  183 }
 
- 184 const MVPbkStreamable* CVPbkContactLinkArray::Streamable() const
  185 
  186 return NULL;
  187 }
  188 
  189 
 
- 190 CVPbkContactLinkArray::CVPbkContactLinkArray(){ }
 
- 191 void CVPbkContactLinkArray::ConstructL(){ }
 
- 192 void CVPbkContactLinkArray::ConstructL(const TDesC8& /*aPackedLinks*/, 
  193         const MVPbkContactStoreList& /*aOperations*/){ }
 
- 194 void CVPbkContactLinkArray::ConstructL(RReadStream& /*aStream*/, 
  195         const MVPbkContactStoreList& /*aOperations*/){ }
 
- 196 TInt CVPbkContactLinkArray::DoCalculatePackedBufferSizeV2() const{ return 0; }
 
- 197 void CVPbkContactLinkArray::DoFillPackedBufferV2L(RWriteStream& /*aWriteStream*/) const{ }
 
- 198 void CVPbkContactLinkArray::InternalizeFromBufferL( RReadStream& /*aReadStream*/, 
  199         const MVPbkContactStoreList& /*aStoreList*/ ){ }
 
- 200 void CVPbkContactLinkArray::DoInternalizeFromBufferL( RReadStream& /*aReadStream*/, 
  201         const MVPbkContactStoreList& /*aStoreList*/){ }
 
- 202 void CVPbkContactLinkArray::DoInternalizeFromBufferV2L(RReadStream& /*aReadStream*/, 
  203         const MVPbkContactStoreList& /*aStoreList*/){ }
  204 
  205     
  206 // End of file
***TER 0% (0/27) of SOURCE FILE s_cvpbkcontactlinkarray.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD6.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD6.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,122 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #6/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_engineextentionfeatures.cpp
+Instrumentation mode: function
+TER: 50 % ( 3/ 6)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_engineextentionfeatures.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 1 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_engineextentionfeatures.h"
  21 #include "tvimpstenums.h"
  22 
 
12   23 MVIMPSTEngineExtentionFeatures* extentionfeatures_stub::NewL()
  24 {
  25    MVIMPSTEngineExtentionFeatures * extFeature = new(ELeave) extentionfeatures_stub;
  26    return extFeature ;
  27 }
  28 
 
- 29 TVIMPSTEnums::FeatureSupport extentionfeatures_stub::IsSupported() const 
  30 {
  31    return TVIMPSTEnums::ESupported;
  32 }
  33 
  34 /**
  35 * SetSupported
  36 * @param TVIMPSTEnums::FeatureSupport defined in tvimpstenums.h
  37 */
 
- 38 void extentionfeatures_stub::SetSupported(TVIMPSTEnums::FeatureSupport /*aSupported*/ )
  39 {
  40    
  41 }
  42 
  43 
  44 /**
  45 * Type of the Extention Feature
  46 * @return TVIMPSTEnums::ExtentionType defined in tvimpstenums.h
  47 */
  48 
 
12   49 TVIMPSTEnums::ExtentionType extentionfeatures_stub::Type() const
  50 {
  51    return TVIMPSTEnums::EContactManagement;
  52 }
  53 
  54 /*
  55 MVIMPSTEngineContactMgmtExtention& extentionfeatures_stub::Cast(
  56             MVIMPSTEngineExtentionFeatures& aExtentionFeature)
  57 {
  58     __ASSERT_ALWAYS( aExtentionFeature.Type() == TVIMPSTEnums::EServerContactManagement,
  59         User::Panic(KErrNotFound) );
  60     return static_cast<MVIMPSTEngineContactMgmtExtention&>(aExtentionFeature);
  61 }
  62 
  63     
  64 const MVIMPSTEngineContactMgmtExtention& extentionfeatures_stub::Cast(
  65         const MVIMPSTEngineExtentionFeatures& aExtentionFeature)
  66 {
  67     __ASSERT_ALWAYS( aExtentionFeature.Type() == TVIMPSTEnums::EServerContactManagement,
  68         User::Panic(KErrNotFound) );
  69     return static_cast<const MVIMPSTEngineContactMgmtExtention&>(aExtentionFeature);
  70 }
  71   */    
  72 
  73 
 
12   74 TInt extentionfeatures_stub::AddServerContactL(const TDesC& /*aContactList*/, 
  75                        const TDesC& aUserId,const TDesC& /*aNickname*/,TBool /*aWaitToComplete */  ) 
  76 {
  77    return KErrNotFound;
  78 }
  79     
  80     
 
- 81 TInt extentionfeatures_stub::DeleteServerContactL( const TDesC& /*aContactListId*/, 
  82                           const TDesC& /*aUserId*/ ) 
  83 {
  84    return KErrNotFound;
  85 }
  86 
  87 
  88 //end of file
***TER 50% (3/6) of SOURCE FILE s_engineextentionfeatures.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD7.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD7.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,112 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #7/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_enginesearchextention.cpp
+Instrumentation mode: function
+TER: 38 % ( 3/ 8)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2 * ============================================================================
  3 *  Name        : s_engineextentionfeatures.cpp
  4 *  Part of     : 
  5 *  Description : 
  6 *  Version     : %version: 2 %
  7 *
  8 *  Copyright © 2006, 2007 Nokia.  All rights reserved.
  9 *  This material, including documentation and any related computer
  10 *  programs, is protected by copyright controlled by Nokia.  All
  11 *  rights are reserved.  Copying, including reproducing, storing,
  12 *  adapting or translating, any or all of this material requires the
  13 *  prior written consent of Nokia.  This material also contains
  14 *  confidential information which may not be disclosed to others
  15 *  without the prior written consent of Nokia.
  16 * ============================================================================
  17 * Template version: 4.1
  18 */
  19 
  20 #include "s_enginesearchextention.h"
  21 #include "tvimpstenums.h"
  22 
 
  23 MVIMPSTEngineSearchMgrExtention* searchextention_stub::NewL()
  24 {
  25    MVIMPSTEngineSearchMgrExtention* extFeature = new(ELeave) searchextention_stub;
  26    return extFeature ;
  27 }
  28 
 
- 29 TVIMPSTEnums::FeatureSupport searchextention_stub::IsSupported() const 
  30 {
  31    return TVIMPSTEnums::ESupported;
  32 }
  33 
  34 /**
  35 * SetSupported
  36 * @param TVIMPSTEnums::FeatureSupport defined in tvimpstenums.h
  37 */
 
- 38 void searchextention_stub::SetSupported(TVIMPSTEnums::FeatureSupport /*aSupported*/ )
  39 {
  40    
  41 }
  42 
  43 
  44 /**
  45 * Type of the Extention Feature
  46 * @return TVIMPSTEnums::ExtentionType defined in tvimpstenums.h
  47 */
  48 
 
  49 TVIMPSTEnums::ExtentionType searchextention_stub::Type() const
  50 {
  51    return TVIMPSTEnums::ESearch;
  52 }
  53 
 
- 54 void searchextention_stub::RegisterObserver(MVIMPSTEngineSearchExtentionEventObserver* /*aObserver*/)
  55 {
  56    
  57 }
  58 
  59 
 
- 60 void  searchextention_stub::UnRegisterObserver(MVIMPSTEngineSearchExtentionEventObserver* /*aObserver*/ ) 
  61 {
  62    
  63 }
  64 
 
  65 TInt searchextention_stub::SearchContactsL( RArray<TVIMPSTSearchKeyData>& /*aKeyDataArray*/ ) 
  66 {
  67    return 1;
  68 }
  69  
 
- 70 TInt searchextention_stub::SubscribeForSearchKeysL() 
  71 {
  72    return 1;
  73 }
  74 
  75 
  76 //end of file
***TER 38% (3/8) of SOURCE FILE s_enginesearchextention.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD8.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD8.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,201 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #8/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_imsubservice.cpp
+Instrumentation mode: function
+TER: 0 % ( 0/ 13)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2  * ==============================================================================
  3  *  Name        : s_vimpstenginepresencesubservice.cpp
  4  *  Part of     : IMUiServiceTab\internal\vimstcmdprocess_ut
  5  *  Description : Handles the use of Precense Framework
  6  *
  7  *  Copyright © 2007 Nokia.  All rights reserved.
  8  *  This material, including documentation and any related computer
  9  *  programs, is protected by copyright controlled by Nokia.  All
  10  *  rights are reserved.  Copying, including reproducing, storing,
  11  *  adapting or translating, any or all of this material requires the
  12  *  prior written consent of Nokia.  This material also contains
  13  *  confidential information which may not be disclosed to others
  14  *  without the prior written consent of Nokia.
  15  * ============================================================================
  16  * Template version: 4.2
  17  */
  18 
  19 // INCLUDE FILES
  20 #include "s_imsubservice.h"
  21 
  22 //Presence Observer
  23 //#include "mvimpstenginepresencesubserviceeventobserver.h"
  24 
  25 
  26 
  27 // ================= MEMBER FUNCTIONS =======================
  28 
  29 // ---------------------------------------------------------------------------
  30 // CVIMPSTEnginePresenceSubService_Stub::
  31 //      CVIMPSTEnginePresenceSubService_Stub()
  32 // ---------------------------------------------------------------------------
  33 //
 
- 34 CVIMPSTEngineImSubService_Stub::CVIMPSTEngineImSubService_Stub(  ) 
  35         {
  36         }
  37 
  38 // ---------------------------------------------------------------------------
  39 // CVIMPSTEnginePresenceSubService_Stub::ConstructL()
  40 // ---------------------------------------------------------------------------
  41 //
 
- 42 void CVIMPSTEngineImSubService_Stub::ConstructL()
  43     {
  44    
  45 
  46     }
  47 
  48 // ---------------------------------------------------------------------------
  49 // CVIMPSTEnginePresenceSubService_Stub::NewL()
  50 // ---------------------------------------------------------------------------
  51 //
  52 CVIMPSTEngineImSubService_Stub* 
 
- 53 CVIMPSTEngineImSubService_Stub::NewL(  )
  54     {
  55     CVIMPSTEngineImSubService_Stub* self = NewLC();
  56     CleanupStack::Pop(self);
  57     return self;
  58     }
  59 
  60 // ---------------------------------------------------------------------------
  61 // CVIMPSTEnginePresenceSubService_Stub::NewLC()
  62 // ---------------------------------------------------------------------------
  63 //
  64 CVIMPSTEngineImSubService_Stub* 
 
- 65 CVIMPSTEngineImSubService_Stub::NewLC( )
  66     {
  67     CVIMPSTEngineImSubService_Stub* self =
  68     new (ELeave) CVIMPSTEngineImSubService_Stub( );
  69     CleanupStack::PushL(self);
  70     self->ConstructL();
  71     return self;
  72     }
  73 
  74 // ---------------------------------------------------------------------------
  75 // CVIMPSTEnginePresenceSubService_Stub::
  76 //      ~CVIMPSTEnginePresenceSubService_Stub()
  77 // ---------------------------------------------------------------------------
  78 //
 
- 79 CVIMPSTEngineImSubService_Stub::~CVIMPSTEngineImSubService_Stub()
  80     {
  81    
  82     }
  83 
  84 
 
- 85 TVIMPSTEnums::TVIMPSTRegistrationState CVIMPSTEngineImSubService_Stub::SubServiceState() const
  86     {
  87     return TVIMPSTEnums::ESVCERegistered;
  88     }
  89 
  90 // ---------------------------------------------------------------------------
  91 // CVIMPSTEnginePresenceSubService_Stub::
  92 //      Type()
  93 // ---------------------------------------------------------------------------
  94 //
  95 
 
- 96 TVIMPSTEnums::SubServiceType CVIMPSTEngineImSubService_Stub::Type() const
  97     {               
  98     return TVIMPSTEnums::EPresence;
  99     } 
  100 
  101 
  102 
  103    
  104 
  105         /**
  106         * @see MVIMPSTIMSubService
  107         */
 
- 108         void CVIMPSTEngineImSubService_Stub::RegisterChatObserver(MVIMPSTEngineIMSubServiceEventObserver* aObserver)
  109             {
  110             
  111             }
  112 
  113         /**
  114         * @see MVIMPSTIMSubService
  115         */
 
- 116         void CVIMPSTEngineImSubService_Stub::UnRegisterChatObserver(MVIMPSTEngineIMSubServiceEventObserver* aObserver)
  117             {
  118             
  119             }
  120 
  121         /**
  122         * @see MVIMPSTIMSubService
  123         */
 
- 124         TInt CVIMPSTEngineImSubService_Stub::GetUnreadCountL(const TDesC& aSender)
  125         {
  126         return 0;
  127         }
  128         
  129 
  130 
  131         /**
  132         * @see MVIMPSTIMSubService
  133         */
 
- 134         TBool CVIMPSTEngineImSubService_Stub::IsConversationExistL(const TDesC& aRecipientId) const 
  135         {
  136         if(aRecipientId.Length())
  137             return ETrue;
  138         else
  139             return EFalse;
  140         }
  141 
  142         /**
  143         * @see MVIMPSTIMSubService
  144         */
 
- 145         void CVIMPSTEngineImSubService_Stub::CloseConversationL( const TDesC& aContactId )
  146         {
  147         
  148         }
  149         
  150         /**
  151         * @see MVIMPSTIMSubService
  152         */
  153         
 
- 154         RArray<SIMCacheChatItem>CVIMPSTEngineImSubService_Stub::GetOpenChatListL()
  155             {
  156 
  157             RArray<SIMCacheChatItem> item;
  158             return item;
  159             }
  160 // End of file
***TER 0% (0/13) of SOURCE FILE s_imsubservice.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD9.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexD9.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,88 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Execution Profile +   #9/43

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Index | No Index


+File: \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaconnection.cpp
+Instrumentation mode: function
+TER: 25 % ( 1/ 4)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Start/ End/    
True False - Line Source

  1 /*
  2  * ============================================================================
  3  *  Name        : mccaconnection.cpp
  4  *  Part of     : CCA / CCAClient
  5  *  Description : This is a class for launching CCA application.
  6  *  Version     : %version: 6 %
  7  *
  8  *  Copyright © 2007 Nokia.  All rights reserved.
  9  *  This material, including documentation and any related computer
  10  *  programs, is protected by copyright controlled by Nokia.  All
  11  *  rights are reserved.  Copying, including reproducing, storing,
  12  *  adapting or translating, any or all of this material requires the
  13  *  prior written consent of Nokia.  This material also contains
  14  *  confidential information which may not be disclosed to others
  15  *  without the prior written consent of Nokia.
  16  * ============================================================================
  17  * Template version: 4.2
  18  */
  19 
  20 
  21 #include "s_mccaconnection.h"
  22 
  23 
  24 class MCCAParameter;
  25 class MCCAObserver;
  26 
  27 
 
  28 MCCAConnection* MCCAConnectionStub::NewL()
  29     {
  30     MCCAConnection* parameter = new(ELeave)MCCAConnectionStub;
  31         return parameter;
  32     }
  33 
 
- 34 void MCCAConnectionStub::Close() 
  35     {
  36     
  37     }
  38     /**
  39      * DEPRECATED - USE LaunchAppL() instead!
  40      * Ownership of MCCAParameter is NOT transferred.
  41      */
 
- 42      void MCCAConnectionStub::LaunchApplicationL( MCCAParameter& aParameter )
  43          {
  44          
  45          }
  46 
  47    
  48 
 
- 49      void MCCAConnectionStub::LaunchAppL(
  50         MCCAParameter& aParameter,
  51         MCCAObserver* aObserver  )
  52          {
  53          
  54          }
  55     // End of File
  56     
***TER 25% (1/4) of SOURCE FILE s_mccaconnection.cpp

+Directory Summary | Files Summary | Functions Summary | Execution Profile
+To files: First | Previous | Next | Last | Top | Index | No Index


+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexE.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexE.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,14 @@ + + +Source Files Not Found + + + + + + + + +The following source files were not found by ctc2html: +

+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexF.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexF.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,57 @@ + + +CTC++ Coverage Report + + + + + + + + +CTC++ Coverage Report - +Directory Summary

+Directory Summary | Files Summary | Functions Summary | Execution Profile

+ + + + + + + + + + + + +
Symbol file(s): MON.sym (Tue Oct 06 16:19:13 2009)
Data file(s): MON.dat (Tue Oct 06 16:25:54 2009)
Listing produced at: Tue Oct 06 16:26:53 2009
Coverage view: As instrumented
 
Input listing: profile.txt
Html generated at: Tue Oct 6 16:27:11 2009
ctc2html v2.4 options: -i profile.txt 
Threshold percent: 100 %

+(Click on header to sort) + + + + + + + + + + + + + + + + + + +
TER%- Covered Not-covered All Directory
80%-12315\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src
30%-68157225\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub
82%-21146257\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src

59%-291206497OVERALL

+ + + + + + + +
Number of directories: 3
Number of monitored source files: 43
Number of functions: 497
Number of source lines: 8386
Number of measurement points: 994
TER: 59% (function)

+Directory Summary | Files Summary | Functions Summary | Execution Profile

+ diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexG.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexG.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,16 @@ + + +CTC++ Coverage Report + + + + + + + + + + + + + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexH.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/indexH.html Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,63 @@ + + +CTC++ Coverage Report + + + + + + + + +Index
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_cmdfactory_utestcases.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\t_vimpstcmdprocess_processarray_utest.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\vimpstcmdprocess_utest.cpp
 
\meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_ccafactory.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_cvpbkcontactlinkarray.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_engineextentionfeatures.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_enginesearchextention.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_imsubservice.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaconnection.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mccaparameter.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_mvpbkcontactlinkstub.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_processarrayobserver.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_storageitemmodel.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstcmdobserver.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstengin.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstenginepresencesubservice.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpstprocessarrayitem.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontact.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragecontactlist.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststoragemanagerfactory.cpp
   \meco_domain\conversations\uiservicetab\internal\tsrc\vimpstcmdprocess_utest\src\stub\s_vimpststorageserviceview.cpp
 
\meco_domain\conversations\uiservicetab\vimpstcmdprocess\src
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddcontact.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdaddtopbk.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdblockcontact.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcancellogin.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcca.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownavtar.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownmessage.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdchangeownstatus.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdcloseconversation.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmddeletecontact.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfactory.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdfetchblockedlist.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdhandler.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogin.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdlogout.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdprocessselectedcontact.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdsearch.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstcmdunblockcontact.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarray.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessarrayitem.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimpstprocessfriendrequestitem.cpp
   \meco_domain\conversations\uiservicetab\vimpstcmdprocess\src\cvimstcmdfriendrequest.cpp
diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/red.gif Binary file uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/red.gif has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/sorttable.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/sorttable.js Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,492 @@ +/* + SortTable + version 2 + 7th April 2007 + Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/ + + Instructions: + Download this file + Add to your HTML + Add class="sortable" to any table you'd like to make sortable + Click on the headers to sort + + Thanks to many, many people for contributions and suggestions. + Licenced as X11: http://www.kryogenix.org/code/browser/licence.html + This basically means: do what you want with it. +*/ + + +var stIsIE = /*@cc_on!@*/false; + +sorttable = { + init: function() { + // quit if this function has already been called + if (arguments.callee.done) return; + // flag this function so we don't do the same thing twice + arguments.callee.done = true; + // kill the timer + if (_timer) clearInterval(_timer); + + if (!document.createElement || !document.getElementsByTagName) return; + + sorttable.DATE_RE = /^(dd?)[/.-](dd?)[/.-]((dd)?dd)$/; + + forEach(document.getElementsByTagName('table'), function(table) { + if (table.className.search(/\bsortable\b/) != -1) { + sorttable.makeSortable(table); + } + }); + + }, + + makeSortable: function(table) { + if (table.getElementsByTagName('thead').length == 0) { + // table doesn't have a tHead. Since it should have, create one and + // put the first table row in it. + the = document.createElement('thead'); + the.appendChild(table.rows[0]); + table.insertBefore(the,table.firstChild); + } + // Safari doesn't support table.tHead, sigh + if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; + + if (table.tHead.rows.length != 1) return; // can't cope with two header rows + + // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as + // "total" rows, for example). This is B&R, since what you're supposed + // to do is put them in a tfoot. So, if there are sortbottom rows, + // for backwards compatibility, move them to tfoot (creating it if needed). + sortbottomrows = []; + for (var i=0; i5' : ' ▴'; + this.appendChild(sortrevind); + return; + } + if (this.className.search(/\bsorttable_sorted_reverse\b/) != -1) { + // if we're already sorted by this column in reverse, just + // re-reverse the table, which is quicker + sorttable.reverse(this.sorttable_tbody); + this.className = this.className.replace('sorttable_sorted_reverse', + 'sorttable_sorted'); + this.removeChild(document.getElementById('sorttable_sortrevind')); + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + return; + } + + // remove sorttable_sorted classes + theadrow = this.parentNode; + forEach(theadrow.childNodes, function(cell) { + if (cell.nodeType == 1) { // an element + cell.className = cell.className.replace('sorttable_sorted_reverse',''); + cell.className = cell.className.replace('sorttable_sorted',''); + } + }); + sortfwdind = document.getElementById('sorttable_sortfwdind'); + if (sortfwdind) { sortfwdind.parentNode.removeChild(sortfwdind); } + sortrevind = document.getElementById('sorttable_sortrevind'); + if (sortrevind) { sortrevind.parentNode.removeChild(sortrevind); } + + this.className += ' sorttable_sorted'; + sortfwdind = document.createElement('span'); + sortfwdind.id = "sorttable_sortfwdind"; + sortfwdind.innerHTML = stIsIE ? ' 6' : ' ▾'; + this.appendChild(sortfwdind); + + // build an array to sort. This is a Schwartzian transform thing, + // i.e., we "decorate" each row with the actual sort key, + // sort based on the sort keys, and then put the rows back in order + // which is a lot faster because you only do getInnerText once per row + row_array = []; + col = this.sorttable_columnindex; + rows = this.sorttable_tbody.rows; + for (var j=0; j 12) { + // definitely dd/mm + return sorttable.sort_ddmm; + } else if (second > 12) { + return sorttable.sort_mmdd; + } else { + // looks like a date, but we can't tell which, so assume + // that it's dd/mm (English imperialism!) and keep looking + sortfn = sorttable.sort_ddmm; + } + } + } + } + return sortfn; + }, + + getInnerText: function(node) { + // gets the text we want to use for sorting for a cell. + // strips leading and trailing whitespace. + // this is *not* a generic getInnerText function; it's special to sorttable. + // for example, you can override the cell text with a customkey attribute. + // it also gets .value for fields. + + hasInputs = (typeof node.getElementsByTagName == 'function') && + node.getElementsByTagName('input').length; + + if (node.getAttribute("sorttable_customkey") != null) { + return node.getAttribute("sorttable_customkey"); + } + else if (typeof node.textContent != 'undefined' && !hasInputs) { + return node.textContent.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.innerText != 'undefined' && !hasInputs) { + return node.innerText.replace(/^\s+|\s+$/g, ''); + } + else if (typeof node.text != 'undefined' && !hasInputs) { + return node.text.replace(/^\s+|\s+$/g, ''); + } + else { + switch (node.nodeType) { + case 3: + if (node.nodeName.toLowerCase() == 'input') { + return node.value.replace(/^\s+|\s+$/g, ''); + } + case 4: + return node.nodeValue.replace(/^\s+|\s+$/g, ''); + break; + case 1: + case 11: + var innerText = ''; + for (var i = 0; i < node.childNodes.length; i++) { + innerText += sorttable.getInnerText(node.childNodes[i]); + } + return innerText.replace(/^\s+|\s+$/g, ''); + break; + default: + return ''; + } + } + }, + + reverse: function(tbody) { + // reverse the rows in a tbody + newrows = []; + for (var i=0; i=0; i--) { + tbody.appendChild(newrows[i]); + } + delete newrows; + }, + + /* sort functions + each sort function takes two parameters, a and b + you are comparing a[0] and b[0] */ + sort_numeric: function(a,b) { + aa = parseFloat(a[0].replace(/[^0-9.-]/g,'')); + if (isNaN(aa)) aa = 0; + bb = parseFloat(b[0].replace(/[^0-9.-]/g,'')); + if (isNaN(bb)) bb = 0; + return aa-bb; + }, + sort_alpha: function(a,b) { + if (a[0]==b[0]) return 0; + if (a[0] 0 ) { + var q = list[i]; list[i] = list[i+1]; list[i+1] = q; + swap = true; + } + } // for + t--; + + if (!swap) break; + + for(var i = t; i > b; --i) { + if ( comp_func(list[i], list[i-1]) < 0 ) { + var q = list[i]; list[i] = list[i-1]; list[i-1] = q; + swap = true; + } + } // for + b++; + + } // while(swap) + } +} + +/* ****************************************************************** + Supporting functions: bundled here to avoid depending on a library + ****************************************************************** */ + +// Dean Edwards/Matthias Miller/John Resig + +/* for Mozilla/Opera9 */ +if (document.addEventListener) { + document.addEventListener("DOMContentLoaded", sorttable.init, false); +} + +/* for Internet Explorer */ +/*@cc_on @*/ +/*@if (@_win32) + document.write(""); + var script = document.getElementById("__ie_onload"); + script.onreadystatechange = function() { + if (this.readyState == "complete") { + sorttable.init(); // call the onload handler + } + }; +/*@end @*/ + +/* for Safari */ +if (/WebKit/i.test(navigator.userAgent)) { // sniff + var _timer = setInterval(function() { + if (/loaded|complete/.test(document.readyState)) { + sorttable.init(); // call the onload handler + } + }, 10); +} + +/* for other browsers */ +window.onload = sorttable.init; + +// written by Dean Edwards, 2005 +// with input from Tino Zijdel, Matthias Miller, Diego Perini + +// http://dean.edwards.name/weblog/2005/10/add-event/ + +function dean_addEvent(element, type, handler) { + if (element.addEventListener) { + element.addEventListener(type, handler, false); + } else { + // assign each event handler a unique ID + if (!handler.$$guid) handler.$$guid = dean_addEvent.guid++; + // create a hash table of event types for the element + if (!element.events) element.events = {}; + // create a hash table of event handlers for each element/event pair + var handlers = element.events[type]; + if (!handlers) { + handlers = element.events[type] = {}; + // store the existing event handler (if there is one) + if (element["on" + type]) { + handlers[0] = element["on" + type]; + } + } + // store the event handler in the hash table + handlers[handler.$$guid] = handler; + // assign a global event handler to do all the work + element["on" + type] = handleEvent; + } +}; +// a counter used to create unique IDs +dean_addEvent.guid = 1; + +function removeEvent(element, type, handler) { + if (element.removeEventListener) { + element.removeEventListener(type, handler, false); + } else { + // delete the event handler from the hash table + if (element.events && element.events[type]) { + delete element.events[type][handler.$$guid]; + } + } +}; + +function handleEvent(event) { + var returnValue = true; + // grab the event object (IE uses a global event object) + event = event || fixEvent(((this.ownerDocument || this.document || this).parentWindow || window).event); + // get a reference to the hash table of event handlers + var handlers = this.events[event.type]; + // execute each event handler + for (var i in handlers) { + this.$$handleEvent = handlers[i]; + if (this.$$handleEvent(event) === false) { + returnValue = false; + } + } + return returnValue; +}; + +function fixEvent(event) { + // add W3C standard event methods + event.preventDefault = fixEvent.preventDefault; + event.stopPropagation = fixEvent.stopPropagation; + return event; +}; +fixEvent.preventDefault = function() { + this.returnValue = false; +}; +fixEvent.stopPropagation = function() { + this.cancelBubble = true; +} + +// Dean's forEach: http://dean.edwards.name/base/forEach.js +/* + forEach, version 1.0 + Copyright 2006, Dean Edwards + License: http://www.opensource.org/licenses/mit-license.php +*/ + +// array-like enumeration +if (!Array.forEach) { // mozilla already supports this + Array.forEach = function(array, block, context) { + for (var i = 0; i < array.length; i++) { + block.call(context, array[i], i, array); + } + }; +} + +// generic enumeration +Function.prototype.forEach = function(object, block, context) { + for (var key in object) { + if (typeof this.prototype[key] == "undefined") { + block.call(context, object[key], key, object); + } + } +}; + +// character enumeration +String.forEach = function(string, block, context) { + Array.forEach(string.split(""), function(chr, index) { + block.call(context, chr, index, string); + }); +}; + +// globally resolve forEach enumeration +var forEach = function(object, block, context) { + if (object) { + var resolve = Object; // default + if (object instanceof Function) { + // functions have a "length" property + resolve = Function; + } else if (object.forEach instanceof Function) { + // the object implements a custom forEach method so use that + object.forEach(block, context); + return; + } else if (typeof object == "string") { + // the object is a string + resolve = String; + } else if (typeof object.length == "number") { + // the object is array-like + resolve = Array; + } + resolve.forEach(object, block, context); + } +}; diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/white.gif Binary file uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/function coverage/white.gif has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsheadercontrol.cpp --- a/uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsheadercontrol.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsheadercontrol.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -352,7 +352,7 @@ { MVPbkStoreContactField& field = fieldCollection.FieldAt( i ); const MVPbkFieldType* type = field.BestMatchingFieldType() ; - if( R_VPBK_FIELD_TYPE_THUMBNAILPIC == type->FieldTypeResId() ) + if(type && R_VPBK_FIELD_TYPE_THUMBNAILPIC == type->FieldTypeResId() ) { iHeaderField = field.CloneLC(); CleanupStack::Pop(); diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/s_mvimpststoragecontacts.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/s_mvimpststoragecontacts.h Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,259 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Stored contact data container interface +* +*/ + + + +#ifndef MVIMPSTSTORAGECONTACTS_H +#define MVIMPSTSTORAGECONTACTS_H + + +#include "TVIMPSTEnums.h" + +#include +#include +#include "mvimpststoragecontact.h" + +// FORWARD DECLARATIONS +class MVIMPSTStorageContactsObserver; +class MVIMPSTStorageContactList; +class MVIMPSTStorageContact; +class MVPbkContactLink; +class CVPbkContactManager; +class MVPbkStoreContact; +class MVIMPSTStorageVpbkStoreHandler; +class MVIMPSTStorageContactManagementObserver; + + + + +// CLASS DECLARATION + +/** + * Interface for stored contacts container + * + * @lib VIMPSTStorage.dll + * @since 5.0 + */ +class MVIMPSTStorageContacts + { + public : + virtual void UpdateAvatarDataL( const TDesC& aContactId ,const TDesC8& aData) = 0; + public: // Definitions + /** + * An Enum + * To define contact list preperty. + * not used. + */ + + enum TContactListProperty + { + EPrimaryCollapseInUse, /*primary collapse. */ + ESecondaryCollapseInUse /* secondary collapse. */ + }; + + public: // New functions + + /** + * Add an observer. + * @param aObserver The observer + */ + virtual void AddObserverL( MVIMPSTStorageContactsObserver* aObserver ) = 0; + + /** + * Remove an observer. + * @param aObserver The observer + */ + virtual void RemoveObserver( + MVIMPSTStorageContactsObserver* aObserver ) = 0; + + + /** + * Find a contact from the store by Name + * @param aContactListId List which contains contact. + * @param aId the User ID of the contact to find + * @return The contact + */ + virtual MVIMPSTStorageContact* FindContactByName( const TDesC& aContactListId, + const TDesC& aId ) = 0; + + virtual MVIMPSTStorageContact* FindContactByName( const TDesC& aContactListId, + const TDesC& aId, + MVIMPSTStorageContactList*& aContactList ) = 0; + + /** + * Find any contact which id is aContactId + * @param aContactId Contactid to recognize contact. + * @return First one which matches contactId. If not found return NULL + */ + virtual MVIMPSTStorageContact* FindAnyContactByName( const TDesC& aContactId ) = 0; + + /** + * Find any contact which has contact link same as aContactLink + * @param aContactId Contactid to recognize contact. + * @return First one which matches contactId. If not found return NULL + */ + virtual MVIMPSTStorageContact* FindContact( const MVPbkContactLink& aContactLink, + MVIMPSTStorageContactList*& aContactList ) = 0; + + + /** + * Find a contact from the store by using Service ID + * @param aServiceId the Service ID of the contact to find + * @return The contact + */ + virtual MVIMPSTStorageContact* FindContactByServiceField( const TDesC& aServiceId ) = 0; + + /** + * Count of lists. + * @return Count of lists. + */ + virtual TInt ListCount() const = 0; + + /** + * List in index. + * @param aIndex. Index of list. + * return Contact list. + */ + virtual MVIMPSTStorageContactList& ListAt( TInt aIndex ) const = 0; + + /** + * Find contact list by id + * @param aListId. Id to find. + * @return Contactlist. If not found return NULL + */ + virtual MVIMPSTStorageContactList* FindContactList( const TDesC& aListId ) = 0; + + /** + * Find out if contact exists in all list. + * @param aContactId. Id to check. + * @return ETrue if contact is in all lists. EFalse if not. + */ + virtual TBool ContactInAllLists( const TDesC& aContactId ) const = 0; + + /** + * Add new contact list. + * @param aContactListId Id for new contact list. + * @param aDisplayName Display name of new contact list. + */ + virtual MVIMPSTStorageContactList* AddContactListIdL( const TDesC& aContactListId, + const TDesC& aDisplayName, + TBool aNotify = ETrue ) = 0; + + /** + * Remove contact list from store. + * @param aContactListId. Id of contact list to be removed. + */ + virtual void RemoveContactList( const TDesC& aContactListId ) = 0; + + + /** + * Removes all contacts. + */ + virtual void RemoveAllContactsL() = 0; + + /** + * Count of stored contacts + * @param aSkipOfflineContacts ETrue skip offline contacts. + * EFalse Do not skip. + * @return TInt Count of contacts + */ + virtual TInt ContactCount( + TBool aSkipOfflineContacts = EFalse ) const = 0; + + /** + * Online status of user. + * @param aContactId Id which status is wanted. + * @return Onlinestatus of user. + */ + virtual TVIMPSTEnums::TOnlineStatus OnlineStatus( + const TDesC& aContactId ) = 0; + + /** + * Update presence information of contact. + * @param aContactId Id of contact which presence is updated. + * @param aStatus. New presence status + * @param aAlias. New alias. + * @param aStatusText New status message text. + * @return MVIMPSTStorageContact* pointer of the contact + */ + virtual MVIMPSTStorageContact* UpdatePresenceL( const TDesC& aContactId, + TVIMPSTEnums::TOnlineStatus aStatus, + const TDesC& aAlias, + const TDesC& aStatusText) = 0; + + + /** + * Check if contact is found in storage. + * @param aContact contact to find. + * @return TBool ETrue if contact is found from storage + */ + virtual TBool IsContactValid( const MVIMPSTStorageContact* aContact ) const = 0; + + /** + * Sorts contact lists alphabetically. + * @since S60 v5.0 + */ + virtual void SortContactLists() = 0; + + + /** + * From MVIMPSTStorageContacts + */ + virtual void Sort( const TDesC& aContactListId = KNullDesC ) = 0; + + /** + * Resort one contact, what ever contact list it is in + */ + virtual void ResortContactInAll( MVIMPSTStorageContact* aContact ) = 0; + + /** + * From MVIMPSTStorageContacts + */ + virtual void SetSortAlgorithm( MVIMPSTStorageContact::TSortAlgorithm aAlgorithm ) = 0; + + /** + * add contact ot the virtual phonebook. + * @param aContact contact id to be added. + */ + virtual MVIMPSTStorageContact* AddContactL( const TDesC& aFirstName = KNullDesC, + const TDesC& aServiceField = KNullDesC ) = 0; + + + /** + * removes contact from the virtual phonebook. + * @param aContact contact id to be removed. + */ + virtual void RemoveContactL( const MVPbkContactLink& aContactLink) = 0; + + /** + * removes contact from the virtual phonebook. + * @param aContact contact id to be removed. + */ + virtual void RemoveContactL( const TDesC& aServiceContactId) = 0; + + virtual void SetOwnDataL( const TDesC& aOwnId ) = 0; + + protected: + /** + * virtual destructor. + */ + virtual ~MVIMPSTStorageContacts(){}; + }; + +#endif // MVIMPSTSTORAGECONTACTS_H + +// End of File diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/vimpstengine_utu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/vimpstengine_utu.def Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,104 @@ +EXPORTS + ?CreateTestSuiteL@@YAPAVMEUnitTest@@XZ @ 1 NONAME ; class MEUnitTest * CreateTestSuiteL(void) + ??0CActive@@IAE@H@Z @ 2 NONAME ; CActive::CActive(int) + ??0CActiveSchedulerWait@@QAE@XZ @ 3 NONAME ; CActiveSchedulerWait::CActiveSchedulerWait(void) + ??0RWsSession@@QAE@XZ @ 4 NONAME ; RWsSession::RWsSession(void) + ??0TApaTask@@QAE@AAVRWsSession@@@Z @ 5 NONAME ; TApaTask::TApaTask(class RWsSession &) + ??0TApaTaskList@@QAE@AAVRWsSession@@@Z @ 6 NONAME ; TApaTaskList::TApaTaskList(class RWsSession &) + ??1CActive@@UAE@XZ @ 7 NONAME ; CActive::~CActive(void) + ??1CActiveSchedulerWait@@UAE@XZ @ 8 NONAME ; CActiveSchedulerWait::~CActiveSchedulerWait(void) + ??1CSPEntry@@UAE@XZ @ 9 NONAME ; CSPEntry::~CSPEntry(void) + ??1CSPProperty@@UAE@XZ @ 10 NONAME ; CSPProperty::~CSPProperty(void) + ??1CSPSettings@@UAE@XZ @ 11 NONAME ; CSPSettings::~CSPSettings(void) + ??8CSPProperty@@QBEHABV0@@Z @ 12 NONAME ; int CSPProperty::operator==(class CSPProperty const &) const + ?Add@CActiveScheduler@@SAXPAVCActive@@@Z @ 13 NONAME ; void CActiveScheduler::Add(class CActive *) + ?AddEntryL@CSPSettings@@QAEHAAVCSPEntry@@@Z @ 14 NONAME ; int CSPSettings::AddEntryL(class CSPEntry &) + ?AddOrUpdatePropertyL@CSPSettings@@QAEHIABVCSPProperty@@@Z @ 15 NONAME ; int CSPSettings::AddOrUpdatePropertyL(unsigned int, class CSPProperty const &) + ?AddPropertyL@CSPEntry@@QAEHABVCSPProperty@@@Z @ 16 NONAME ; int CSPEntry::AddPropertyL(class CSPProperty const &) + ?After@User@@SAXVTTimeIntervalMicroSeconds32@@@Z @ 17 NONAME ; void User::After(class TTimeIntervalMicroSeconds32) + ?AsyncStop@CActiveSchedulerWait@@QAEXXZ @ 18 NONAME ; void CActiveSchedulerWait::AsyncStop(void) + ?Attach@RProperty@@QAEHVTUid@@IW4TOwnerType@@@Z @ 19 NONAME ; int RProperty::Attach(class TUid, unsigned int, enum TOwnerType) + ?Cancel@CActive@@QAEXXZ @ 20 NONAME ; void CActive::Cancel(void) + ?Cancel@RProperty@@QAEXXZ @ 21 NONAME ; void RProperty::Cancel(void) + ?Cast@MVIMPSTEngineContactMgmtExtention@@SAAAV1@AAVMVIMPSTEngineExtentionFeatures@@@Z @ 22 NONAME ; class MVIMPSTEngineContactMgmtExtention & MVIMPSTEngineContactMgmtExtention::Cast(class MVIMPSTEngineExtentionFeatures &) + ?Cast@MVIMPSTEngineContactMgmtExtention@@SAABV1@ABVMVIMPSTEngineExtentionFeatures@@@Z @ 23 NONAME ; class MVIMPSTEngineContactMgmtExtention const & MVIMPSTEngineContactMgmtExtention::Cast(class MVIMPSTEngineExtentionFeatures const &) + ?Cast@MVIMPSTEngineIMSubService@@SAAAV1@AAVMVIMPSTEngineSubService@@@Z @ 24 NONAME ; class MVIMPSTEngineIMSubService & MVIMPSTEngineIMSubService::Cast(class MVIMPSTEngineSubService &) + ?Cast@MVIMPSTEngineIMSubService@@SAABV1@ABVMVIMPSTEngineSubService@@@Z @ 25 NONAME ; class MVIMPSTEngineIMSubService const & MVIMPSTEngineIMSubService::Cast(class MVIMPSTEngineSubService const &) + ?Cast@MVIMPSTEnginePresenceSubService@@SAAAV1@AAVMVIMPSTEngineSubService@@@Z @ 26 NONAME ; class MVIMPSTEnginePresenceSubService & MVIMPSTEnginePresenceSubService::Cast(class MVIMPSTEngineSubService &) + ?Cast@MVIMPSTEnginePresenceSubService@@SAABV1@ABVMVIMPSTEngineSubService@@@Z @ 27 NONAME ; class MVIMPSTEnginePresenceSubService const & MVIMPSTEnginePresenceSubService::Cast(class MVIMPSTEngineSubService const &) + ?Cast@MVIMPSTEngineSearchMgrExtention@@SAAAV1@AAVMVIMPSTEngineExtentionFeatures@@@Z @ 28 NONAME ; class MVIMPSTEngineSearchMgrExtention & MVIMPSTEngineSearchMgrExtention::Cast(class MVIMPSTEngineExtentionFeatures &) + ?Cast@MVIMPSTEngineSearchMgrExtention@@SAABV1@ABVMVIMPSTEngineExtentionFeatures@@@Z @ 29 NONAME ; class MVIMPSTEngineSearchMgrExtention const & MVIMPSTEngineSearchMgrExtention::Cast(class MVIMPSTEngineExtentionFeatures const &) + ?Close@RHandleBase@@QAEXXZ @ 30 NONAME ; void RHandleBase::Close(void) + ?Close@RWsSession@@QAEXXZ @ 31 NONAME ; void RWsSession::Close(void) + ?Connect@RWsSession@@QAEHXZ @ 32 NONAME ; int RWsSession::Connect(void) + ?ContactListInterfaceL@CVIMPSTStorageManagerFactory@@SAPAVMVIMPSTStorageServiceView@@K@Z @ 33 NONAME ; class MVIMPSTStorageServiceView * CVIMPSTStorageManagerFactory::ContactListInterfaceL(unsigned long) + ?CopyL@CSPProperty@@QAEXABV1@@Z @ 34 NONAME ; void CSPProperty::CopyL(class CSPProperty const &) + ?CreateAccessorL@CIMCacheFactory@@QAEPAVMIMCacheAccessor@@HABVTDesC16@@@Z @ 35 NONAME ; class MIMCacheAccessor * CIMCacheFactory::CreateAccessorL(int, class TDesC16 const &) + ?CreateReaderL@MPresenceCacheReader2@@SAPAV1@XZ @ 36 NONAME ; class MPresenceCacheReader2 * MPresenceCacheReader2::CreateReaderL(void) + ?CreateUpdaterL@CIMCacheFactory@@QAEPAVMIMCacheUpdater@@HABVTDesC16@@H@Z @ 37 NONAME ; class MIMCacheUpdater * CIMCacheFactory::CreateUpdaterL(int, class TDesC16 const &, int) + ?DataType@CSPProperty@@SA?AW4TPropertyDataType@@W4TServicePropertyName@@@Z @ 38 NONAME ; enum TPropertyDataType CSPProperty::DataType(enum TServicePropertyName) + ?Define@RProperty@@SAHVTUid@@IHH@Z @ 39 NONAME ; int RProperty::Define(class TUid, unsigned int, int, int) + ?DeleteProperty@CSPEntry@@QAEHH@Z @ 40 NONAME ; int CSPEntry::DeleteProperty(int) + ?DeleteProperty@CSPEntry@@QAEHW4TServicePropertyName@@@Z @ 41 NONAME ; int CSPEntry::DeleteProperty(enum TServicePropertyName) + ?Deque@CActive@@QAEXXZ @ 42 NONAME ; void CActive::Deque(void) + ?EndTask@TApaTask@@QAEXXZ @ 43 NONAME ; void TApaTask::EndTask(void) + ?Exists@TApaTask@@QBEHXZ @ 44 NONAME ; int TApaTask::Exists(void) const + ?Extension_@CActive@@MAEHIAAPAXPAX@Z @ 45 NONAME ; int CActive::Extension_(unsigned int, void * &, void *) + ?FindApp@TApaTaskList@@QAE?AVTApaTask@@VTUid@@@Z @ 46 NONAME ; class TApaTask TApaTaskList::FindApp(class TUid) + ?FindEntryL@CSPSettings@@QAEHIAAVCSPEntry@@@Z @ 47 NONAME ; int CSPSettings::FindEntryL(unsigned int, class CSPEntry &) + ?FindPropertyL@CSPSettings@@QAEHIW4TServicePropertyName@@AAVCSPProperty@@@Z @ 48 NONAME ; int CSPSettings::FindPropertyL(unsigned int, enum TServicePropertyName, class CSPProperty &) + ?FindServiceIdsL@CSPSettings@@QAEHAAV?$RArray@I@@@Z @ 49 NONAME ; int CSPSettings::FindServiceIdsL(class RArray &) + ?Get@RProperty@@QAEHAAH@Z @ 50 NONAME ; int RProperty::Get(int &) + ?Get@RProperty@@SAHVTUid@@IAAH@Z @ 51 NONAME ; int RProperty::Get(class TUid, unsigned int, int &) + ?GetAllProperties@CSPEntry@@QBEABV?$RPointerArray@VCSPProperty@@@@XZ @ 52 NONAME ; class RPointerArray const & CSPEntry::GetAllProperties(void) const + ?GetDataType@CSPProperty@@QBE?AW4TPropertyDataType@@XZ @ 53 NONAME ; enum TPropertyDataType CSPProperty::GetDataType(void) const + ?GetName@CSPProperty@@QBE?AW4TServicePropertyName@@XZ @ 54 NONAME ; enum TServicePropertyName CSPProperty::GetName(void) const + ?GetProperty@CSPEntry@@QBEHAAPBVCSPProperty@@H@Z @ 55 NONAME ; int CSPEntry::GetProperty(class CSPProperty const * &, int) const + ?GetProperty@CSPEntry@@QBEHAAPBVCSPProperty@@W4TServicePropertyName@@@Z @ 56 NONAME ; int CSPEntry::GetProperty(class CSPProperty const * &, enum TServicePropertyName) const + ?GetPropertyType@CSPProperty@@QBE?AW4TSPItemType@@XZ @ 57 NONAME ; enum TSPItemType CSPProperty::GetPropertyType(void) const + ?GetService@CCch@@QAEPAVCCchService@@H@Z @ 58 NONAME ; class CCchService * CCch::GetService(int) + ?GetServiceId@CSPEntry@@QBEIXZ @ 59 NONAME ; unsigned int CSPEntry::GetServiceId(void) const + ?GetServiceName@CSPEntry@@QBEABVTDesC16@@XZ @ 60 NONAME ; class TDesC16 const & CSPEntry::GetServiceName(void) const + ?GetValue@CSPProperty@@QBEHAAH@Z @ 61 NONAME ; int CSPProperty::GetValue(int &) const + ?GetValue@CSPProperty@@QBEHAAVTDes16@@@Z @ 62 NONAME ; int CSPProperty::GetValue(class TDes16 &) const + ?GetValue@CSPProperty@@QBEHAAW4TOnOff@@@Z @ 63 NONAME ; int CSPProperty::GetValue(enum TOnOff &) const + ?InitialiseLibraryL@CVIMPSTStorageManagerFactory@@SAXXZ @ 64 NONAME ; void CVIMPSTStorageManagerFactory::InitialiseLibraryL(void) + ?InitialiseViewL@CVIMPSTStorageManagerFactory@@SAXKABVTDesC16@@0@Z @ 65 NONAME ; void CVIMPSTStorageManagerFactory::InitialiseViewL(unsigned long, class TDesC16 const &, class TDesC16 const &) + ?InstanceL@CIMCacheFactory@@SAPAV1@XZ @ 66 NONAME ; class CIMCacheFactory * CIMCacheFactory::InstanceL(void) + ?ItemModelInterfaceL@CVIMPSTStorageManagerFactory@@SAPAVMVIMPSTStorageItemModel@@K@Z @ 67 NONAME ; class MVIMPSTStorageItemModel * CVIMPSTStorageManagerFactory::ItemModelInterfaceL(unsigned long) + ?KillTask@TApaTask@@QAEXXZ @ 68 NONAME ; void TApaTask::KillTask(void) + ?NewL@CSPEntry@@SAPAV1@XZ @ 69 NONAME ; class CSPEntry * CSPEntry::NewL(void) + ?NewL@CSPProperty@@SAPAV1@XZ @ 70 NONAME ; class CSPProperty * CSPProperty::NewL(void) + ?NewL@CSPSettings@@SAPAV1@XZ @ 71 NONAME ; class CSPSettings * CSPSettings::NewL(void) + ?NewL@CVIMPSTEngineImageHandler@@SAPAV1@XZ @ 72 NONAME ; class CVIMPSTEngineImageHandler * CVIMPSTEngineImageHandler::NewL(void) + ?NewL@CVIMPSTSettingsStore@@SAPAVMVIMPSTSettingsStore@@XZ @ 73 NONAME ; class MVIMPSTSettingsStore * CVIMPSTSettingsStore::NewL(void) + ?NewLC@CSPEntry@@SAPAV1@XZ @ 74 NONAME ; class CSPEntry * CSPEntry::NewLC(void) + ?NewLC@CSPProperty@@SAPAV1@XZ @ 75 NONAME ; class CSPProperty * CSPProperty::NewLC(void) + ?NewLC@CSPSettings@@SAPAV1@XZ @ 76 NONAME ; class CSPSettings * CSPSettings::NewLC(void) + ?NewLC@CVIMPSTEngineImageHandler@@SAPAV1@XZ @ 77 NONAME ; class CVIMPSTEngineImageHandler * CVIMPSTEngineImageHandler::NewLC(void) + ?NewLC@CVIMPSTSettingsStore@@SAPAVMVIMPSTSettingsStore@@XZ @ 78 NONAME ; class MVIMPSTSettingsStore * CVIMPSTSettingsStore::NewLC(void) + ?ProcessImageFromDataL@CVIMPSTEngineImageHandler@@QAEPAVHBufC8@@ABVTDesC8@@0@Z @ 79 NONAME ; class HBufC8 * CVIMPSTEngineImageHandler::ProcessImageFromDataL(class TDesC8 const &, class TDesC8 const &) + ?ProcessImageFromFileL@CVIMPSTEngineImageHandler@@QAEPAVHBufC8@@ABVTDesC16@@ABVTDesC8@@@Z @ 80 NONAME ; class HBufC8 * CVIMPSTEngineImageHandler::ProcessImageFromFileL(class TDesC16 const &, class TDesC8 const &) + ?PropertyCount@CSPEntry@@QBEHXZ @ 81 NONAME ; int CSPEntry::PropertyCount(void) const + ?PropertyType@CSPProperty@@SA?AW4TSPItemType@@W4TServicePropertyName@@@Z @ 82 NONAME ; enum TSPItemType CSPProperty::PropertyType(enum TServicePropertyName) + ?Release@CIMCacheFactory@@SAXXZ @ 83 NONAME ; void CIMCacheFactory::Release(void) + ?Release@CVIMPSTStorageManagerFactory@@SAHXZ @ 84 NONAME ; int CVIMPSTStorageManagerFactory::Release(void) + ?RunError@CActive@@MAEHH@Z @ 85 NONAME ; int CActive::RunError(int) + ?Set@RProperty@@SAHVTUid@@IH@Z @ 86 NONAME ; int RProperty::Set(class TUid, unsigned int, int) + ?SetActive@CActive@@IAEXXZ @ 87 NONAME ; void CActive::SetActive(void) + ?SetName@CSPProperty@@QAEHW4TServicePropertyName@@@Z @ 88 NONAME ; int CSPProperty::SetName(enum TServicePropertyName) + ?SetPriority@CActive@@QAEXH@Z @ 89 NONAME ; void CActive::SetPriority(int) + ?SetServiceName@CSPEntry@@QAEHABVTDesC16@@@Z @ 90 NONAME ; int CSPEntry::SetServiceName(class TDesC16 const &) + ?SetValue@CSPProperty@@QAEHABVTDesC16@@@Z @ 91 NONAME ; int CSPProperty::SetValue(class TDesC16 const &) + ?SetValue@CSPProperty@@QAEHH@Z @ 92 NONAME ; int CSPProperty::SetValue(int) + ?SetValue@CSPProperty@@QAEHW4TOnOff@@@Z @ 93 NONAME ; int CSPProperty::SetValue(enum TOnOff) + ?SettingsCountL@CSPSettings@@QAEHXZ @ 94 NONAME ; int CSPSettings::SettingsCountL(void) + ?Start@CActiveSchedulerWait@@QAEXXZ @ 95 NONAME ; void CActiveSchedulerWait::Start(void) + ?Start@CPeriodic@@QAEXVTTimeIntervalMicroSeconds32@@0VTCallBack@@@Z @ 96 NONAME ; void CPeriodic::Start(class TTimeIntervalMicroSeconds32, class TTimeIntervalMicroSeconds32, class TCallBack) + ?Subscribe@RProperty@@QAEXAAVTRequestStatus@@@Z @ 97 NONAME ; void RProperty::Subscribe(class TRequestStatus &) + ?UpdateEntryL@CSPSettings@@QAEHABVCSPEntry@@@Z @ 98 NONAME ; int CSPSettings::UpdateEntryL(class CSPEntry const &) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@ABVTDesC16@@@Z @ 99 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, class TDesC16 const &) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@H@Z @ 100 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, int) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@W4TOnOff@@@Z @ 101 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, enum TOnOff) + ?WaitForRequest@User@@SAXAAVTRequestStatus@@@Z @ 102 NONAME ; void User::WaitForRequest(class TRequestStatus &) + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/vimpstengine_utu.def1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/bwins/vimpstengine_utu.def1 Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,104 @@ +EXPORTS + ?CreateTestSuiteL@@YAPAVMEUnitTest@@XZ @ 1 NONAME ; class MEUnitTest * CreateTestSuiteL(void) + ??0CActive@@IAE@H@Z @ 2 NONAME ; CActive::CActive(int) + ??0CActiveSchedulerWait@@QAE@XZ @ 3 NONAME ; CActiveSchedulerWait::CActiveSchedulerWait(void) + ??0RWsSession@@QAE@XZ @ 4 NONAME ; RWsSession::RWsSession(void) + ??0TApaTask@@QAE@AAVRWsSession@@@Z @ 5 NONAME ; TApaTask::TApaTask(class RWsSession &) + ??0TApaTaskList@@QAE@AAVRWsSession@@@Z @ 6 NONAME ; TApaTaskList::TApaTaskList(class RWsSession &) + ??1CActive@@UAE@XZ @ 7 NONAME ; CActive::~CActive(void) + ??1CActiveSchedulerWait@@UAE@XZ @ 8 NONAME ; CActiveSchedulerWait::~CActiveSchedulerWait(void) + ??1CSPEntry@@UAE@XZ @ 9 NONAME ; CSPEntry::~CSPEntry(void) + ??1CSPProperty@@UAE@XZ @ 10 NONAME ; CSPProperty::~CSPProperty(void) + ??1CSPSettings@@UAE@XZ @ 11 NONAME ; CSPSettings::~CSPSettings(void) + ??8CSPProperty@@QBEHABV0@@Z @ 12 NONAME ; int CSPProperty::operator==(class CSPProperty const &) const + ?Add@CActiveScheduler@@SAXPAVCActive@@@Z @ 13 NONAME ; void CActiveScheduler::Add(class CActive *) + ?AddEntryL@CSPSettings@@QAEHAAVCSPEntry@@@Z @ 14 NONAME ; int CSPSettings::AddEntryL(class CSPEntry &) + ?AddOrUpdatePropertyL@CSPSettings@@QAEHIABVCSPProperty@@@Z @ 15 NONAME ; int CSPSettings::AddOrUpdatePropertyL(unsigned int, class CSPProperty const &) + ?AddPropertyL@CSPEntry@@QAEHABVCSPProperty@@@Z @ 16 NONAME ; int CSPEntry::AddPropertyL(class CSPProperty const &) + ?After@User@@SAXVTTimeIntervalMicroSeconds32@@@Z @ 17 NONAME ; void User::After(class TTimeIntervalMicroSeconds32) + ?AsyncStop@CActiveSchedulerWait@@QAEXXZ @ 18 NONAME ; void CActiveSchedulerWait::AsyncStop(void) + ?Attach@RProperty@@QAEHVTUid@@IW4TOwnerType@@@Z @ 19 NONAME ; int RProperty::Attach(class TUid, unsigned int, enum TOwnerType) + ?Cancel@CActive@@QAEXXZ @ 20 NONAME ; void CActive::Cancel(void) + ?Cancel@RProperty@@QAEXXZ @ 21 NONAME ; void RProperty::Cancel(void) + ?Cast@MVIMPSTEngineContactMgmtExtention@@SAAAV1@AAVMVIMPSTEngineExtentionFeatures@@@Z @ 22 NONAME ; class MVIMPSTEngineContactMgmtExtention & MVIMPSTEngineContactMgmtExtention::Cast(class MVIMPSTEngineExtentionFeatures &) + ?Cast@MVIMPSTEngineContactMgmtExtention@@SAABV1@ABVMVIMPSTEngineExtentionFeatures@@@Z @ 23 NONAME ; class MVIMPSTEngineContactMgmtExtention const & MVIMPSTEngineContactMgmtExtention::Cast(class MVIMPSTEngineExtentionFeatures const &) + ?Cast@MVIMPSTEngineIMSubService@@SAAAV1@AAVMVIMPSTEngineSubService@@@Z @ 24 NONAME ; class MVIMPSTEngineIMSubService & MVIMPSTEngineIMSubService::Cast(class MVIMPSTEngineSubService &) + ?Cast@MVIMPSTEngineIMSubService@@SAABV1@ABVMVIMPSTEngineSubService@@@Z @ 25 NONAME ; class MVIMPSTEngineIMSubService const & MVIMPSTEngineIMSubService::Cast(class MVIMPSTEngineSubService const &) + ?Cast@MVIMPSTEnginePresenceSubService@@SAAAV1@AAVMVIMPSTEngineSubService@@@Z @ 26 NONAME ; class MVIMPSTEnginePresenceSubService & MVIMPSTEnginePresenceSubService::Cast(class MVIMPSTEngineSubService &) + ?Cast@MVIMPSTEnginePresenceSubService@@SAABV1@ABVMVIMPSTEngineSubService@@@Z @ 27 NONAME ; class MVIMPSTEnginePresenceSubService const & MVIMPSTEnginePresenceSubService::Cast(class MVIMPSTEngineSubService const &) + ?Cast@MVIMPSTEngineSearchMgrExtention@@SAAAV1@AAVMVIMPSTEngineExtentionFeatures@@@Z @ 28 NONAME ; class MVIMPSTEngineSearchMgrExtention & MVIMPSTEngineSearchMgrExtention::Cast(class MVIMPSTEngineExtentionFeatures &) + ?Cast@MVIMPSTEngineSearchMgrExtention@@SAABV1@ABVMVIMPSTEngineExtentionFeatures@@@Z @ 29 NONAME ; class MVIMPSTEngineSearchMgrExtention const & MVIMPSTEngineSearchMgrExtention::Cast(class MVIMPSTEngineExtentionFeatures const &) + ?Close@RHandleBase@@QAEXXZ @ 30 NONAME ; void RHandleBase::Close(void) + ?Close@RWsSession@@QAEXXZ @ 31 NONAME ; void RWsSession::Close(void) + ?Connect@RWsSession@@QAEHXZ @ 32 NONAME ; int RWsSession::Connect(void) + ?ContactListInterfaceL@CVIMPSTStorageManagerFactory@@SAPAVMVIMPSTStorageContacts@@K@Z @ 33 NONAME ; class MVIMPSTStorageContacts * CVIMPSTStorageManagerFactory::ContactListInterfaceL(unsigned long) + ?CopyL@CSPProperty@@QAEXABV1@@Z @ 34 NONAME ; void CSPProperty::CopyL(class CSPProperty const &) + ?CreateAccessorL@CIMCacheFactory@@QAEPAVMIMCacheAccessor@@HABVTDesC16@@@Z @ 35 NONAME ; class MIMCacheAccessor * CIMCacheFactory::CreateAccessorL(int, class TDesC16 const &) + ?CreateReaderL@MPresenceCacheReader2@@SAPAV1@XZ @ 36 NONAME ; class MPresenceCacheReader2 * MPresenceCacheReader2::CreateReaderL(void) + ?CreateUpdaterL@CIMCacheFactory@@QAEPAVMIMCacheUpdater@@HABVTDesC16@@H@Z @ 37 NONAME ; class MIMCacheUpdater * CIMCacheFactory::CreateUpdaterL(int, class TDesC16 const &, int) + ?DataType@CSPProperty@@SA?AW4TPropertyDataType@@W4TServicePropertyName@@@Z @ 38 NONAME ; enum TPropertyDataType CSPProperty::DataType(enum TServicePropertyName) + ?Define@RProperty@@SAHVTUid@@IHH@Z @ 39 NONAME ; int RProperty::Define(class TUid, unsigned int, int, int) + ?DeleteProperty@CSPEntry@@QAEHH@Z @ 40 NONAME ; int CSPEntry::DeleteProperty(int) + ?DeleteProperty@CSPEntry@@QAEHW4TServicePropertyName@@@Z @ 41 NONAME ; int CSPEntry::DeleteProperty(enum TServicePropertyName) + ?Deque@CActive@@QAEXXZ @ 42 NONAME ; void CActive::Deque(void) + ?EndTask@TApaTask@@QAEXXZ @ 43 NONAME ; void TApaTask::EndTask(void) + ?Exists@TApaTask@@QBEHXZ @ 44 NONAME ; int TApaTask::Exists(void) const + ?Extension_@CActive@@MAEHIAAPAXPAX@Z @ 45 NONAME ; int CActive::Extension_(unsigned int, void * &, void *) + ?FindApp@TApaTaskList@@QAE?AVTApaTask@@VTUid@@@Z @ 46 NONAME ; class TApaTask TApaTaskList::FindApp(class TUid) + ?FindEntryL@CSPSettings@@QAEHIAAVCSPEntry@@@Z @ 47 NONAME ; int CSPSettings::FindEntryL(unsigned int, class CSPEntry &) + ?FindPropertyL@CSPSettings@@QAEHIW4TServicePropertyName@@AAVCSPProperty@@@Z @ 48 NONAME ; int CSPSettings::FindPropertyL(unsigned int, enum TServicePropertyName, class CSPProperty &) + ?FindServiceIdsL@CSPSettings@@QAEHAAV?$RArray@I@@@Z @ 49 NONAME ; int CSPSettings::FindServiceIdsL(class RArray &) + ?Get@RProperty@@QAEHAAH@Z @ 50 NONAME ; int RProperty::Get(int &) + ?Get@RProperty@@SAHVTUid@@IAAH@Z @ 51 NONAME ; int RProperty::Get(class TUid, unsigned int, int &) + ?GetAllProperties@CSPEntry@@QBEABV?$RPointerArray@VCSPProperty@@@@XZ @ 52 NONAME ; class RPointerArray const & CSPEntry::GetAllProperties(void) const + ?GetDataType@CSPProperty@@QBE?AW4TPropertyDataType@@XZ @ 53 NONAME ; enum TPropertyDataType CSPProperty::GetDataType(void) const + ?GetName@CSPProperty@@QBE?AW4TServicePropertyName@@XZ @ 54 NONAME ; enum TServicePropertyName CSPProperty::GetName(void) const + ?GetProperty@CSPEntry@@QBEHAAPBVCSPProperty@@H@Z @ 55 NONAME ; int CSPEntry::GetProperty(class CSPProperty const * &, int) const + ?GetProperty@CSPEntry@@QBEHAAPBVCSPProperty@@W4TServicePropertyName@@@Z @ 56 NONAME ; int CSPEntry::GetProperty(class CSPProperty const * &, enum TServicePropertyName) const + ?GetPropertyType@CSPProperty@@QBE?AW4TSPItemType@@XZ @ 57 NONAME ; enum TSPItemType CSPProperty::GetPropertyType(void) const + ?GetService@CCch@@QAEPAVCCchService@@H@Z @ 58 NONAME ; class CCchService * CCch::GetService(int) + ?GetServiceId@CSPEntry@@QBEIXZ @ 59 NONAME ; unsigned int CSPEntry::GetServiceId(void) const + ?GetServiceName@CSPEntry@@QBEABVTDesC16@@XZ @ 60 NONAME ; class TDesC16 const & CSPEntry::GetServiceName(void) const + ?GetValue@CSPProperty@@QBEHAAH@Z @ 61 NONAME ; int CSPProperty::GetValue(int &) const + ?GetValue@CSPProperty@@QBEHAAVTDes16@@@Z @ 62 NONAME ; int CSPProperty::GetValue(class TDes16 &) const + ?GetValue@CSPProperty@@QBEHAAW4TOnOff@@@Z @ 63 NONAME ; int CSPProperty::GetValue(enum TOnOff &) const + ?InitialiseLibraryL@CVIMPSTStorageManagerFactory@@SAXXZ @ 64 NONAME ; void CVIMPSTStorageManagerFactory::InitialiseLibraryL(void) + ?InitialiseViewL@CVIMPSTStorageManagerFactory@@SAXKABVTDesC16@@0@Z @ 65 NONAME ; void CVIMPSTStorageManagerFactory::InitialiseViewL(unsigned long, class TDesC16 const &, class TDesC16 const &) + ?InstanceL@CIMCacheFactory@@SAPAV1@XZ @ 66 NONAME ; class CIMCacheFactory * CIMCacheFactory::InstanceL(void) + ?ItemModelInterfaceL@CVIMPSTStorageManagerFactory@@SAPAVMVIMPSTStorageItemModel@@K@Z @ 67 NONAME ; class MVIMPSTStorageItemModel * CVIMPSTStorageManagerFactory::ItemModelInterfaceL(unsigned long) + ?KillTask@TApaTask@@QAEXXZ @ 68 NONAME ; void TApaTask::KillTask(void) + ?NewL@CSPEntry@@SAPAV1@XZ @ 69 NONAME ; class CSPEntry * CSPEntry::NewL(void) + ?NewL@CSPProperty@@SAPAV1@XZ @ 70 NONAME ; class CSPProperty * CSPProperty::NewL(void) + ?NewL@CSPSettings@@SAPAV1@XZ @ 71 NONAME ; class CSPSettings * CSPSettings::NewL(void) + ?NewL@CVIMPSTEngineImageHandler@@SAPAV1@XZ @ 72 NONAME ; class CVIMPSTEngineImageHandler * CVIMPSTEngineImageHandler::NewL(void) + ?NewL@CVIMPSTSettingsStore@@SAPAVMVIMPSTSettingsStore@@XZ @ 73 NONAME ; class MVIMPSTSettingsStore * CVIMPSTSettingsStore::NewL(void) + ?NewLC@CSPEntry@@SAPAV1@XZ @ 74 NONAME ; class CSPEntry * CSPEntry::NewLC(void) + ?NewLC@CSPProperty@@SAPAV1@XZ @ 75 NONAME ; class CSPProperty * CSPProperty::NewLC(void) + ?NewLC@CSPSettings@@SAPAV1@XZ @ 76 NONAME ; class CSPSettings * CSPSettings::NewLC(void) + ?NewLC@CVIMPSTEngineImageHandler@@SAPAV1@XZ @ 77 NONAME ; class CVIMPSTEngineImageHandler * CVIMPSTEngineImageHandler::NewLC(void) + ?NewLC@CVIMPSTSettingsStore@@SAPAVMVIMPSTSettingsStore@@XZ @ 78 NONAME ; class MVIMPSTSettingsStore * CVIMPSTSettingsStore::NewLC(void) + ?ProcessImageFromDataL@CVIMPSTEngineImageHandler@@QAEPAVHBufC8@@ABVTDesC8@@0@Z @ 79 NONAME ; class HBufC8 * CVIMPSTEngineImageHandler::ProcessImageFromDataL(class TDesC8 const &, class TDesC8 const &) + ?ProcessImageFromFileL@CVIMPSTEngineImageHandler@@QAEPAVHBufC8@@ABVTDesC16@@ABVTDesC8@@@Z @ 80 NONAME ; class HBufC8 * CVIMPSTEngineImageHandler::ProcessImageFromFileL(class TDesC16 const &, class TDesC8 const &) + ?PropertyCount@CSPEntry@@QBEHXZ @ 81 NONAME ; int CSPEntry::PropertyCount(void) const + ?PropertyType@CSPProperty@@SA?AW4TSPItemType@@W4TServicePropertyName@@@Z @ 82 NONAME ; enum TSPItemType CSPProperty::PropertyType(enum TServicePropertyName) + ?Release@CIMCacheFactory@@SAXXZ @ 83 NONAME ; void CIMCacheFactory::Release(void) + ?Release@CVIMPSTStorageManagerFactory@@SAHXZ @ 84 NONAME ; int CVIMPSTStorageManagerFactory::Release(void) + ?RunError@CActive@@MAEHH@Z @ 85 NONAME ; int CActive::RunError(int) + ?Set@RProperty@@SAHVTUid@@IH@Z @ 86 NONAME ; int RProperty::Set(class TUid, unsigned int, int) + ?SetActive@CActive@@IAEXXZ @ 87 NONAME ; void CActive::SetActive(void) + ?SetName@CSPProperty@@QAEHW4TServicePropertyName@@@Z @ 88 NONAME ; int CSPProperty::SetName(enum TServicePropertyName) + ?SetPriority@CActive@@QAEXH@Z @ 89 NONAME ; void CActive::SetPriority(int) + ?SetServiceName@CSPEntry@@QAEHABVTDesC16@@@Z @ 90 NONAME ; int CSPEntry::SetServiceName(class TDesC16 const &) + ?SetValue@CSPProperty@@QAEHABVTDesC16@@@Z @ 91 NONAME ; int CSPProperty::SetValue(class TDesC16 const &) + ?SetValue@CSPProperty@@QAEHH@Z @ 92 NONAME ; int CSPProperty::SetValue(int) + ?SetValue@CSPProperty@@QAEHW4TOnOff@@@Z @ 93 NONAME ; int CSPProperty::SetValue(enum TOnOff) + ?SettingsCountL@CSPSettings@@QAEHXZ @ 94 NONAME ; int CSPSettings::SettingsCountL(void) + ?Start@CActiveSchedulerWait@@QAEXXZ @ 95 NONAME ; void CActiveSchedulerWait::Start(void) + ?Start@CPeriodic@@QAEXVTTimeIntervalMicroSeconds32@@0VTCallBack@@@Z @ 96 NONAME ; void CPeriodic::Start(class TTimeIntervalMicroSeconds32, class TTimeIntervalMicroSeconds32, class TCallBack) + ?Subscribe@RProperty@@QAEXAAVTRequestStatus@@@Z @ 97 NONAME ; void RProperty::Subscribe(class TRequestStatus &) + ?UpdateEntryL@CSPSettings@@QAEHABVCSPEntry@@@Z @ 98 NONAME ; int CSPSettings::UpdateEntryL(class CSPEntry const &) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@ABVTDesC16@@@Z @ 99 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, class TDesC16 const &) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@H@Z @ 100 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, int) + ?UpdateProperty@CSPEntry@@QAEHW4TServicePropertyName@@W4TOnOff@@@Z @ 101 NONAME ; int CSPEntry::UpdateProperty(enum TServicePropertyName, enum TOnOff) + ?WaitForRequest@User@@SAXAAVTRequestStatus@@@Z @ 102 NONAME ; void User::WaitForRequest(class TRequestStatus &) + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/eabi/vimpstengine_utu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/eabi/vimpstengine_utu.def Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,115 @@ +EXPORTS + _Z16CreateTestSuiteLv @ 1 NONAME + _ZN15CIMCacheFactory15CreateAccessorLEiRK7TDesC16 @ 2 NONAME + _ZN20CVIMPSTSettingsStore4NewLEv @ 3 NONAME + _ZN20CVIMPSTSettingsStore5NewLCEv @ 4 NONAME + _ZN25CVIMPSTEngineImageHandler21ProcessImageFromDataLERK6TDesC8S2_ @ 5 NONAME + _ZN25CVIMPSTEngineImageHandler21ProcessImageFromFileLERK7TDesC16RK6TDesC8 @ 6 NONAME + _ZN25CVIMPSTEngineImageHandler4NewLEv @ 7 NONAME + _ZN25CVIMPSTEngineImageHandler5NewLCEv @ 8 NONAME + _ZN25MVIMPSTEngineIMSubService4CastER23MVIMPSTEngineSubService @ 9 NONAME + _ZN25MVIMPSTEngineIMSubService4CastERK23MVIMPSTEngineSubService @ 10 NONAME + _ZN28CVIMPSTStorageManagerFactory15InitialiseViewLEmRK7TDesC16S2_ @ 11 NONAME + _ZN28CVIMPSTStorageManagerFactory18InitialiseLibraryLEv @ 12 NONAME + _ZN28CVIMPSTStorageManagerFactory19ItemModelInterfaceLEm @ 13 NONAME + _ZN28CVIMPSTStorageManagerFactory21ContactListInterfaceLEm @ 14 NONAME + _ZN28CVIMPSTStorageManagerFactory7ReleaseEv @ 15 NONAME + _ZN31MVIMPSTEnginePresenceSubService4CastER23MVIMPSTEngineSubService @ 16 NONAME + _ZN31MVIMPSTEnginePresenceSubService4CastERK23MVIMPSTEngineSubService @ 17 NONAME + _ZN31MVIMPSTEngineSearchMgrExtention4CastER30MVIMPSTEngineExtentionFeatures @ 18 NONAME + _ZN31MVIMPSTEngineSearchMgrExtention4CastERK30MVIMPSTEngineExtentionFeatures @ 19 NONAME + _ZN33MVIMPSTEngineContactMgmtExtention4CastER30MVIMPSTEngineExtentionFeatures @ 20 NONAME + _ZN33MVIMPSTEngineContactMgmtExtention4CastERK30MVIMPSTEngineExtentionFeatures @ 21 NONAME + _ZTI12MyCchService @ 22 NONAME + _ZTI14T_VimpstEngine @ 23 NONAME + _ZTI15CIMCacheFactory @ 24 NONAME + _ZTI15MXIMPClientStub @ 25 NONAME + _ZTI16MSearchEventStub @ 26 NONAME + _ZTI16MXIMPContextStub @ 27 NONAME + _ZTI17MPresenceInfoStub @ 28 NONAME + _ZTI19MyMXIMPIdentityStub @ 29 NONAME + _ZTI20CActiveSchedulerWait @ 30 NONAME + _ZTI20MSearchKeysEventStub @ 31 NONAME + _ZTI21MPresenceWatchingStub @ 32 NONAME + _ZTI21T_VIMPSTEngineRequest @ 33 NONAME + _ZTI22MPresenceBlockInfoStub @ 34 NONAME + _ZTI22MPresenceInfoFieldStub @ 35 NONAME + _ZTI22MyMPresenceFeatureStub @ 36 NONAME + _ZTI22MyPresentityGroupsStub @ 37 NONAME + _ZTI22vimpstserviceview_stub @ 38 NONAME + _ZTI23MPersonPresenceInfoStub @ 39 NONAME + _ZTI23MPresenceBuddyInfo2Stub @ 40 NONAME + _ZTI23MPresencePublishingStub @ 41 NONAME + _ZTI24MServicePresenceInfoStub @ 42 NONAME + _ZTI24MyMXIMPObjectFactoryStub @ 43 NONAME + _ZTI24T_VimpstEngineCchHandler @ 44 NONAME + _ZTI25MPresenceCacheReader2Stub @ 45 NONAME + _ZTI26MPresenceAuthorizationStub @ 46 NONAME + _ZTI26MPresenceBuddyInfoListStub @ 47 NONAME + _ZTI26MPresenceObjectFactoryStub @ 48 NONAME + _ZTI26MXIMPContextStateEventStub @ 49 NONAME + _ZTI26MyVIMPSTStorageContactStub @ 50 NONAME + _ZTI26T_VimpstEngineImSubService @ 51 NONAME + _ZTI27T_VIMPSTEngineRequestMapper @ 52 NONAME + _ZTI28MPresentityPresenceEventStub @ 53 NONAME + _ZTI28T_VimpstEngineVoipSubService @ 54 NONAME + _ZTI29MPresenceGrantRequestInfoStub @ 55 NONAME + _ZTI29MXIMPRequestCompleteEventStub @ 56 NONAME + _ZTI30MyVIMPSTStorageContactListStub @ 57 NONAME + _ZTI31MPresenceInfoFieldValueEnumStub @ 58 NONAME + _ZTI31MPresenceInfoFieldValueTextStub @ 59 NONAME + _ZTI32MPresenceInfoFieldCollectionStub @ 60 NONAME + _ZTI32MPresentityGroupContentEventStub @ 61 NONAME + _ZTI32T_VimpstEnginePresenceSubService @ 62 NONAME + _ZTI33T_VIMPSTEngineServiceTableFetcher @ 63 NONAME + _ZTI34MPresenceGrantRequestListEventStub @ 64 NONAME + _ZTI34T_VIMPSTEngineContactMgmtExtention @ 65 NONAME + _ZTI34T_VimpstEngineSessionCntxtObserver @ 66 NONAME + _ZTI7CActive @ 67 NONAME + _ZTV12MyCchService @ 68 NONAME + _ZTV14T_VimpstEngine @ 69 NONAME + _ZTV15CIMCacheFactory @ 70 NONAME + _ZTV15MXIMPClientStub @ 71 NONAME + _ZTV16MSearchEventStub @ 72 NONAME + _ZTV16MXIMPContextStub @ 73 NONAME + _ZTV17MPresenceInfoStub @ 74 NONAME + _ZTV19MyMXIMPIdentityStub @ 75 NONAME + _ZTV20CActiveSchedulerWait @ 76 NONAME + _ZTV20MSearchKeysEventStub @ 77 NONAME + _ZTV21MPresenceWatchingStub @ 78 NONAME + _ZTV21T_VIMPSTEngineRequest @ 79 NONAME + _ZTV22MPresenceBlockInfoStub @ 80 NONAME + _ZTV22MPresenceInfoFieldStub @ 81 NONAME + _ZTV22MyMPresenceFeatureStub @ 82 NONAME + _ZTV22MyPresentityGroupsStub @ 83 NONAME + _ZTV22vimpstserviceview_stub @ 84 NONAME + _ZTV23MPersonPresenceInfoStub @ 85 NONAME + _ZTV23MPresenceBuddyInfo2Stub @ 86 NONAME + _ZTV23MPresencePublishingStub @ 87 NONAME + _ZTV24MServicePresenceInfoStub @ 88 NONAME + _ZTV24MyMXIMPObjectFactoryStub @ 89 NONAME + _ZTV24T_VimpstEngineCchHandler @ 90 NONAME + _ZTV25MPresenceCacheReader2Stub @ 91 NONAME + _ZTV26MPresenceAuthorizationStub @ 92 NONAME + _ZTV26MPresenceBuddyInfoListStub @ 93 NONAME + _ZTV26MPresenceObjectFactoryStub @ 94 NONAME + _ZTV26MXIMPContextStateEventStub @ 95 NONAME + _ZTV26MyVIMPSTStorageContactStub @ 96 NONAME + _ZTV26T_VimpstEngineImSubService @ 97 NONAME + _ZTV27T_VIMPSTEngineRequestMapper @ 98 NONAME + _ZTV28MPresentityPresenceEventStub @ 99 NONAME + _ZTV28T_VimpstEngineVoipSubService @ 100 NONAME + _ZTV29MPresenceGrantRequestInfoStub @ 101 NONAME + _ZTV29MXIMPRequestCompleteEventStub @ 102 NONAME + _ZTV30MyVIMPSTStorageContactListStub @ 103 NONAME + _ZTV31MPresenceInfoFieldValueEnumStub @ 104 NONAME + _ZTV31MPresenceInfoFieldValueTextStub @ 105 NONAME + _ZTV32MPresenceInfoFieldCollectionStub @ 106 NONAME + _ZTV32MPresentityGroupContentEventStub @ 107 NONAME + _ZTV32T_VimpstEnginePresenceSubService @ 108 NONAME + _ZTV33T_VIMPSTEngineServiceTableFetcher @ 109 NONAME + _ZTV34MPresenceGrantRequestListEventStub @ 110 NONAME + _ZTV34T_VIMPSTEngineContactMgmtExtention @ 111 NONAME + _ZTV34T_VimpstEngineSessionCntxtObserver @ 112 NONAME + _ZTV7CActive @ 113 NONAME + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/bld.inf --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/bld.inf Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/bld.inf Tue Sep 14 20:56:13 2010 +0300 @@ -20,5 +20,7 @@ PRJ_TESTMMPFILES vimpstengine_ut.mmp +#ifdef WINSCW_UDEB GNUMAKEFILE test_mover.make +#endif diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/vimpstengine_ut.mmp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/vimpstengine_ut.mmp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/group/vimpstengine_ut.mmp Tue Sep 14 20:56:13 2010 +0300 @@ -16,6 +16,7 @@ */ #include #include +#include #define KMyUniqueUid3 0x01070006 @@ -28,7 +29,9 @@ EPOCALLOWDLLDATA -CAPABILITY ALL -TCB +//CAPABILITY ALL -TCB +CAPABILITY EUNIT_CAPS + VENDORID VID_DEFAULT SOURCEPATH ./../src @@ -113,9 +116,21 @@ -APP_LAYER_SYSTEMINCLUDE -SYSTEMINCLUDE /epoc32/include/Digia/EUnit -SYSTEMINCLUDE /epoc32/include/ecom +#if defined ( OS_LAYER_SYSTEMINCLUDE ) + OS_LAYER_SYSTEMINCLUDE +#else + SYSTEMINCLUDE \epoc32\include + SYSTEMINCLUDE \epoc32\include\platform\digia\eunit +#endif + + +#if defined ( APP_LAYER_SYSTEMINCLUDE ) + APP_LAYER_SYSTEMINCLUDE +#else + SYSTEMINCLUDE \epoc32\include + SYSTEMINCLUDE \epoc32\include\platform\digia\eunit +#endif + USERINCLUDE ./../src/stubs USERINCLUDE ./../inc diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengine.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengine.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengine.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEngine_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstengineservicestateeventobserver.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecchhandler.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecchhandler.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecchhandler.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEngineCchHandler_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstenginecchhandlerobserver.h" #include "mvimpstenginecchuieventobserver.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecontactmgmtextention.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecontactmgmtextention.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginecontactmgmtextention.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VIMPSTEngineContactMgmtExtention_H_ // EXTERNAL INCLUDES -#include +#include #include "cvimpstenginecontactmgmtextention.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineimsubservice.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineimsubservice.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineimsubservice.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEngineImSubService_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstengineserviceconnectioneventobserver.h" #include "mvimpstengineimsubserviceeventobserver.h" // MVIMPSTEngineIMSubServiceEventObserver #include "mvimpstenginecchuieventobserver.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginepresencesubservice.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginepresencesubservice.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginepresencesubservice.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEnginePresenceSubService_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstengineserviceconnectioneventobserver.h" #include "cvimpstenginesessioncntxtobserver.h" // MVIMPSTEngineSessionCntxtObserver #include "mvimpstenginecchuieventobserver.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequest.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequest.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequest.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VIMPSTEngineRequest_H_ // EXTERNAL INCLUDES -#include +#include #include "cvimpstenginerequest.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequestmapper.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequestmapper.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginerequestmapper.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VIMPSTEngineRequestMapper_H_ // EXTERNAL INCLUDES -#include +#include #include "cvimpstenginerequestmapper.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesearchmgrextention.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesearchmgrextention.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesearchmgrextention.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VIMPSTEngineSearchMgrExtention_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstenginesearchextentioneventobserver.h" #include "cvimpstenginesearchmgrextention.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineservicetablefetcher.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineservicetablefetcher.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstengineservicetablefetcher.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VIMPSTEngineServiceTableFetcher_H_ // EXTERNAL INCLUDES -#include +#include #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesessioncntxtobserver.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesessioncntxtobserver.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginesessioncntxtobserver.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEngineSessionCntxtObserver_H_ // EXTERNAL INCLUDES -#include +#include //Forward declarations diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginevoipsubservice.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginevoipsubservice.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/inc/t_vimpstenginevoipsubservice.h Tue Sep 14 20:56:13 2010 +0300 @@ -18,7 +18,7 @@ #define _T_VimpstEngineVoipSubService_H_ // EXTERNAL INCLUDES -#include +#include #include "mvimpstenginecchuieventobserver.h" #include "mvimpstengineserviceconnectioneventobserver.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/Nokia_RnDCert_02.der Binary file uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/Nokia_RnDCert_02.der has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/Nokia_RnDCert_02.key --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/Nokia_RnDCert_02.key Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQC/TDP7KKIaf5+uW4OD2iVZuUMC2a+SeQTjf6srlKcOm+CpPNXn +uLNm/8fdEnyOIuRXPRKmqhs1n0JkxEGHynELWMTuKXbQx9SRAGUXzyneGn+IJNnO +vOKHWgKCouX2hfI8rtkdqJpqmO460gGsMgw+lsbeyWyW9lnfLxq+ZC7sqQIDAQAB +AoGBALmUWZE8GBaQ3P4u9WUCSd3DJkkrmXIFSULSZeH/chlwCwDjbbhArHothVzo +REE3hEFFlERvHbplZ+mNouzy7boduvgUzbksGrbGMLJ2qO1GzWWVwV+GzOWKd3ss +/98Gwoy5R8pjnkqUE2wP1iJFw0FjvUTKcYv/z6t3LLJ0CsoBAkEA+c7ixvsviQ3J +s0INytCKU2bf8fqFQJi1VI82ukxNsujGTQ9upVSjuvqPvWyDvvTdrUBHqO+3qPut +sEh01Q8aiQJBAMQKDJPVRu4ud3mwUfEavzL5EjqwG1k9VCNGYsT4FwtrHcxu1oP/ +pk6M3rIZukqomoEEnHWPMwhrK3fhBqi0OSECQQDr40VXege4FnH5OI2Hj4afHMyp +VdQQXGMWFyopnzXblFz0lXb43cTCIiorR9XcMqNFHybLypkWE5o+lRzlt55pAkBQ +P/zeF5Sts//cpL0mgdh7OVKpC6ZmZaCnwAx2rUhhuDu+kDDoYCLoTOps5fNI1LRK +1GRoC3LMo3Jr5IYhUYWBAkBpCpN6k4JU/mszq98EojHerQNxk8sPqvQKUzTutohT +1gLX9yepGayB/TtT2EEJDkWOlnTy/dvN6W3vzbJYz97x +-----END RSA PRIVATE KEY----- diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.pkg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,36 @@ +; +; 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: VIMPSTEngine Test code Package File +; + +;Header +#{"vimpstengine_ut"}, (0x10202BE9), 1, 0, 0, TYPE = SA, RU + +;Language - standard language definitions +&EN + +;Vendor ID +:"Nokia Corporation" + +;Localised vendor +%{"Vendor-EN"} + +;Supports Series 60 v 0.9 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + + + + +"\EPOC32\RELEASE\ARMV5\UREL\vimpstengine_ut.dll" -"!:\sys\bin\vimpstengine_ut.dll" + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.sis Binary file uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.sis has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.sisx Binary file uiservicetab/vimpstengine/tsrc/vimpstengine_ut/sis/vimpstengine_test.sisx has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/dllmain.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/dllmain.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/dllmain.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,7 +14,7 @@ * Description: dllmain.cpp * */ -#include +#include #include "t_vimpstengine.h" #include "t_vimpstenginevoipsubservice.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -15,7 +15,7 @@ * */ // EXTERNAL INCLUDES -#include +#include #include #include "s_cch.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.h --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.h Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_cch.h Tue Sep 14 20:56:13 2010 +0300 @@ -19,7 +19,7 @@ #define MyCchServiceH // EXTERNAL INCLUDES -#include +#include #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengine.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengine.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengine.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstengine.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstengine.h" #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecchhandler.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecchhandler.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecchhandler.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description: t_vimpstenginecchhandler.cpp * */ -#include -#include -#include +#include +#include +#include #include #include "t_vimpstenginecchhandler.h" #include "cvimpstenginecchhandler.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecontactmgmtextention.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecontactmgmtextention.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginecontactmgmtextention.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description: t_vimpstenginecontactmgmtextention.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginecontactmgmtextention.h" #include "cvimpstenginecontactmgmtextention.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineimsubservice.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineimsubservice.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineimsubservice.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstengineimsubservice.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstengineimsubservice.h" #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginepresencesubservice.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginepresencesubservice.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginepresencesubservice.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstenginepresencesubservice.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginepresencesubservice.h" #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequest.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequest.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequest.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstenginerequest.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginerequest.h" #include "cvimpstenginerequest.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequestmapper.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequestmapper.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginerequestmapper.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description: t_vimpstenginerequestmapper.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginerequestmapper.h" #include "cvimpstenginerequestmapper.h" #include "cvimpstenginerequest.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesearchmgrextention.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesearchmgrextention.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesearchmgrextention.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstenginesearchmgrextention.cpp * */ -#include -#include -#include +#include +#include +#include #include "T_vimpstenginesearchmgrextention.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineservicetablefetcher.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineservicetablefetcher.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstengineservicetablefetcher.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description: t_vimpstengineservicetablefetcher.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstengineservicetablefetcher.h" #include "cvimpstengineservicetablefetcher.h" diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesessioncntxtobserver.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesessioncntxtobserver.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginesessioncntxtobserver.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstenginesessioncntxtobserver.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginesessioncntxtobserver.h" #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginevoipsubservice.cpp --- a/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginevoipsubservice.cpp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/t_vimpstenginevoipsubservice.cpp Tue Sep 14 20:56:13 2010 +0300 @@ -14,9 +14,9 @@ * Description:t_vimpstenginevoipsubservice.cpp * */ -#include -#include -#include +#include +#include +#include #include "t_vimpstenginevoipsubservice.h" #include diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/cvimpststoragecontact_ut/group/cvimpststoragecontact_ut.mmp --- a/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/cvimpststoragecontact_ut/group/cvimpststoragecontact_ut.mmp Wed Sep 01 12:33:36 2010 +0100 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/cvimpststoragecontact_ut/group/cvimpststoragecontact_ut.mmp Tue Sep 14 20:56:13 2010 +0300 @@ -79,7 +79,7 @@ LIBRARY euser.lib LIBRARY stiftestinterface.lib LIBRARY stiftestengine.lib - +LIBRARY flogger.lib LANG SC /* diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/eabi/vimpststorage_testu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/eabi/vimpststorage_testu.def Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,157 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + _ZN10Phonebook29Pbk2AppUiEv @ 2 NONAME + _ZN19CVPbkContactManager13CopyContactsLERK21MVPbkContactLinkArrayP17MVPbkContactStoreR27MVPbkBatchOperationObserver @ 3 NONAME + _ZN19CVPbkContactManager14ContactStoresLEv @ 4 NONAME + _ZN19CVPbkContactManager15CommitContactsLERK6TArrayIP17MVPbkStoreContactER27MVPbkBatchOperationObserver @ 5 NONAME + _ZN19CVPbkContactManager15CompressStoresLER27MVPbkBatchOperationObserver @ 6 NONAME + _ZN19CVPbkContactManager15DeleteContactsLERK21MVPbkContactLinkArrayR27MVPbkBatchOperationObserver @ 7 NONAME + _ZN19CVPbkContactManager17LoadContactStoreLERK23TVPbkContactStoreUriPtr @ 8 NONAME + _ZN19CVPbkContactManager17MatchPhoneNumberLERK7TDesC16iR24MVPbkContactFindObserver @ 9 NONAME + _ZN19CVPbkContactManager24ContactAttributeManagerLEv @ 10 NONAME + _ZN19CVPbkContactManager4NewLE13TSecurityInfoRK25CVPbkContactStoreUriArrayP3RFs @ 11 NONAME + _ZN19CVPbkContactManager4NewLERK25CVPbkContactStoreUriArrayP3RFs @ 12 NONAME + _ZN19CVPbkContactManager5FindLERK12MDesC16ArrayRK18MVPbkFieldTypeListR34MVPbkContactFindFromStoresObserverRK9TCallBack @ 13 NONAME + _ZN19CVPbkContactManager5FindLERK7TDesC16RK18MVPbkFieldTypeListR24MVPbkContactFindObserver @ 14 NONAME + _ZN19CVPbkContactManager9FsSessionEv @ 15 NONAME + _ZN20VPbkContactStoreUris15DefaultCntDbUriEv @ 16 NONAME + _ZN20VPbkContactStoreUris15SimGlobalAdnUriEv @ 17 NONAME + _ZN20VPbkContactStoreUris15SimGlobalFdnUriEv @ 18 NONAME + _ZN20VPbkContactStoreUris15SimGlobalSdnUriEv @ 19 NONAME + _ZN20VPbkContactStoreUris21SimGlobalOwnNumberUriEv @ 20 NONAME + _ZN21CPbk2SortOrderManager12AddObserverLER22MPbk2SortOrderObserver @ 21 NONAME + _ZN21CPbk2SortOrderManager14RemoveObserverER22MPbk2SortOrderObserver @ 22 NONAME + _ZN21CPbk2SortOrderManager15SetContactViewLER20MVPbkContactViewBase @ 23 NONAME + _ZN21CPbk2SortOrderManager16DefaultSeparatorEv @ 24 NONAME + _ZN21CPbk2SortOrderManager20SetNameDisplayOrderLENS_21TPbk2NameDisplayOrderERK7TDesC16 @ 25 NONAME + _ZN21CPbk2SortOrderManager4NewLERK18MVPbkFieldTypeListP3RFs @ 26 NONAME + _ZN21CVPbkContactLinkArray15ResetAndDestroyEv @ 27 NONAME + _ZN21CVPbkContactLinkArray4NewLEv @ 28 NONAME + _ZN21CVPbkContactLinkArray5NewLCER11RReadStreamRK21MVPbkContactStoreList @ 29 NONAME + _ZN21CVPbkContactLinkArray5NewLCERK6TDesC8RK21MVPbkContactStoreList @ 30 NONAME + _ZN21CVPbkContactLinkArray5NewLCEv @ 31 NONAME + _ZN21CVPbkContactLinkArray5ResetEv @ 32 NONAME + _ZN21CVPbkContactLinkArray6DeleteEi @ 33 NONAME + _ZN21CVPbkContactLinkArray6RemoveEi @ 34 NONAME + _ZN21CVPbkContactLinkArray7AppendLEP16MVPbkContactLink @ 35 NONAME + _ZN21CVPbkContactLinkArray7InsertLEP16MVPbkContactLinki @ 36 NONAME + _ZN23CPbk2StoreConfiguration4NewLEv @ 37 NONAME + _ZN23TVPbkContactStoreUriPtr3SetERKS_ @ 38 NONAME + _ZN23TVPbkContactStoreUriPtrC1ERK7TDesC16 @ 39 NONAME + _ZN23TVPbkContactStoreUriPtrC1Ev @ 40 NONAME + _ZN23TVPbkContactStoreUriPtrC2ERK7TDesC16 @ 41 NONAME + _ZN23TVPbkContactStoreUriPtrC2Ev @ 42 NONAME + _ZN24MVPbkContactFieldUriData4CastER21MVPbkContactFieldData @ 43 NONAME + _ZN24MVPbkContactFieldUriData4CastERK21MVPbkContactFieldData @ 44 NONAME + _ZN25CVPbkContactStoreUriArray10AppendAllLERKS_ @ 45 NONAME + _ZN25CVPbkContactStoreUriArray4NewLEv @ 46 NONAME + _ZN25CVPbkContactStoreUriArray5NewLCERK6TDesC8 @ 47 NONAME + _ZN25CVPbkContactStoreUriArray5NewLCEv @ 48 NONAME + _ZN25CVPbkContactStoreUriArray6RemoveERK23TVPbkContactStoreUriPtr @ 49 NONAME + _ZN25CVPbkContactStoreUriArray7AppendLERK23TVPbkContactStoreUriPtr @ 50 NONAME + _ZN25MVPbkContactFieldTextData4CastER21MVPbkContactFieldData @ 51 NONAME + _ZN25MVPbkContactFieldTextData4CastERK21MVPbkContactFieldData @ 52 NONAME + _ZN26CVPbkContactViewDefinition10SetSharingE23TVPbkContactViewSharing @ 53 NONAME + _ZN26CVPbkContactViewDefinition11AddSubViewLEPS_ @ 54 NONAME + _ZN26CVPbkContactViewDefinition13SetSortPolicyE26TVPbkContactViewSortPolicy @ 55 NONAME + _ZN26CVPbkContactViewDefinition18SetContactSelectorEP20MVPbkContactSelector @ 56 NONAME + _ZN26CVPbkContactViewDefinition19SetFieldTypeFilterLEP22CVPbkFieldTypeSelector @ 57 NONAME + _ZN26CVPbkContactViewDefinition4NewLER15TResourceReader @ 58 NONAME + _ZN26CVPbkContactViewDefinition4NewLERKS_ @ 59 NONAME + _ZN26CVPbkContactViewDefinition4NewLEv @ 60 NONAME + _ZN26CVPbkContactViewDefinition5NewLCER15TResourceReader @ 61 NONAME + _ZN26CVPbkContactViewDefinition5NewLCERKS_ @ 62 NONAME + _ZN26CVPbkContactViewDefinition5NewLCEv @ 63 NONAME + _ZN26CVPbkContactViewDefinition5SetIdEi @ 64 NONAME + _ZN26CVPbkContactViewDefinition7SetFlagE20TVPbkContactViewFlagi @ 65 NONAME + _ZN26CVPbkContactViewDefinition7SetTypeE20TVPbkContactViewType @ 66 NONAME + _ZN26CVPbkContactViewDefinition7SetUriLERK7TDesC16 @ 67 NONAME + _ZN26CVPbkContactViewDefinition8SetNameLERK7TDesC16 @ 68 NONAME + _ZN26CVPbkContactViewDefinition9SubViewAtEi @ 69 NONAME + _ZN27MVPbkContactFieldBinaryData4CastER21MVPbkContactFieldData @ 70 NONAME + _ZN27MVPbkContactFieldBinaryData4CastERK21MVPbkContactFieldData @ 71 NONAME + _ZN28CVIMPSTStorageManagerFactory14ItemInterfaceLEm @ 72 NONAME + _ZN28CVIMPSTStorageManagerFactory15InitialiseViewLEmRK7TDesC16S2_ @ 73 NONAME + _ZN28CVIMPSTStorageManagerFactory18InitialiseLibraryLEv @ 74 NONAME + _ZN28CVIMPSTStorageManagerFactory21ContactListInterfaceLEm @ 75 NONAME + _ZN28CVIMPSTStorageManagerFactory7ReleaseEv @ 76 NONAME + _ZNK19CVPbkContactManager10FieldTypesEv @ 77 NONAME + _ZNK19CVPbkContactManager13CreateLinksLCER11RReadStream @ 78 NONAME + _ZNK19CVPbkContactManager13CreateLinksLCERK6TDesC8 @ 79 NONAME + _ZNK19CVPbkContactManager16RetrieveContactLERK16MVPbkContactLinkR35MVPbkSingleContactOperationObserver @ 80 NONAME + _ZNK19CVPbkContactManager19CreateContactViewLCER24MVPbkContactViewObserverRK26CVPbkContactViewDefinitionRK18MVPbkFieldTypeList @ 81 NONAME + _ZNK21CPbk2SortOrderManager16CurrentSeparatorEv @ 82 NONAME + _ZNK21CPbk2SortOrderManager16NameDisplayOrderEv @ 83 NONAME + _ZNK21CPbk2SortOrderManager9SortOrderEv @ 84 NONAME + _ZNK21CVPbkContactLinkArray16PackedBufferSizeEv @ 85 NONAME + _ZNK23TVPbkContactStoreUriPtr12ExternalizeLER12RWriteStream @ 86 NONAME + _ZNK23TVPbkContactStoreUriPtr16ExternalizedSizeEv @ 87 NONAME + _ZNK23TVPbkContactStoreUriPtr6LengthEv @ 88 NONAME + _ZNK23TVPbkContactStoreUriPtr6UriDesEv @ 89 NONAME + _ZNK23TVPbkContactStoreUriPtr7CompareERK7TDesC16NS_29TVPbkContactStoreUriComponentE @ 90 NONAME + _ZNK23TVPbkContactStoreUriPtr7CompareERKS_NS_29TVPbkContactStoreUriComponentE @ 91 NONAME + _ZNK23TVPbkContactStoreUriPtr9ComponentENS_29TVPbkContactStoreUriComponentE @ 92 NONAME + _ZNK25CVPbkContactStoreUriArray10IsIncludedERK23TVPbkContactStoreUriPtr @ 93 NONAME + _ZNK25CVPbkContactStoreUriArray5CountEv @ 94 NONAME + _ZNK25CVPbkContactStoreUriArray6PackLCEv @ 95 NONAME + _ZNK25CVPbkContactStoreUriArrayixEi @ 96 NONAME + _ZNK26CVPbkContactViewDefinition10SortPolicyEv @ 97 NONAME + _ZNK26CVPbkContactViewDefinition12SubViewCountEv @ 98 NONAME + _ZNK26CVPbkContactViewDefinition15ContactSelectorEv @ 99 NONAME + _ZNK26CVPbkContactViewDefinition15FieldTypeFilterEv @ 100 NONAME + _ZNK26CVPbkContactViewDefinition2IdEv @ 101 NONAME + _ZNK26CVPbkContactViewDefinition3UriEv @ 102 NONAME + _ZNK26CVPbkContactViewDefinition4NameEv @ 103 NONAME + _ZNK26CVPbkContactViewDefinition4TypeEv @ 104 NONAME + _ZNK26CVPbkContactViewDefinition7SharingEv @ 105 NONAME + _ZNK26CVPbkContactViewDefinition8FlagIsOnE20TVPbkContactViewFlag @ 106 NONAME + _ZNK26CVPbkContactViewDefinition9SubViewAtEi @ 107 NONAME + _ZTI14CPbk2AppUiStub @ 108 NONAME ; ## + _ZTI19CVPbkContactManager @ 109 NONAME ; ## + _ZTI20CActiveSchedulerWait @ 110 NONAME ; ## + _ZTI20CVPbkContactLinkStub @ 111 NONAME ; ## + _ZTI20CVPbkContactViewStub @ 112 NONAME ; ## + _ZTI21CPbk2SortOrderManager @ 113 NONAME ; ## + _ZTI21CVIMPSTStorageManager @ 114 NONAME ; ## + _ZTI21CVPbkContactLinkArray @ 115 NONAME ; ## + _ZTI21CVPbkContactStoreStub @ 116 NONAME ; ## + _ZTI21CVPbkStoreContactStub @ 117 NONAME ; ## + _ZTI23CPbk2CommandHandlerStub @ 118 NONAME ; ## + _ZTI23CPbk2StoreConfiguration @ 119 NONAME ; ## + _ZTI23TVPbkContactStoreUriPtr @ 120 NONAME ; ## + _ZTI25CVPbkContactStoreListStub @ 121 NONAME ; ## + _ZTI25CVPbkContactStoreUriArray @ 122 NONAME ; ## + _ZTI26CVIMPSTLocalContactHandler @ 123 NONAME ; ## + _ZTI26CVPbkContactViewDefinition @ 124 NONAME ; ## + _ZTI26CVPbkStoreContactFieldStub @ 125 NONAME ; ## + _ZTI28CPbk2ApplicationServicesStub @ 126 NONAME ; ## + _ZTI29CVPbkContactFieldUriData_Stub @ 127 NONAME ; ## + _ZTI30CVPbkContactFieldTextData_stub @ 128 NONAME ; ## + _ZTI31CVPbkContactFieldBinaryDataStub @ 129 NONAME ; ## + _ZTI35CVPbkBaseContactFieldCollectionStub @ 130 NONAME ; ## + _ZTI7CActive @ 131 NONAME ; ## + _ZTV14CPbk2AppUiStub @ 132 NONAME ; ## + _ZTV19CVPbkContactManager @ 133 NONAME ; ## + _ZTV20CActiveSchedulerWait @ 134 NONAME ; ## + _ZTV20CVPbkContactLinkStub @ 135 NONAME ; ## + _ZTV20CVPbkContactViewStub @ 136 NONAME ; ## + _ZTV21CPbk2SortOrderManager @ 137 NONAME ; ## + _ZTV21CVIMPSTStorageManager @ 138 NONAME ; ## + _ZTV21CVPbkContactLinkArray @ 139 NONAME ; ## + _ZTV21CVPbkContactStoreStub @ 140 NONAME ; ## + _ZTV21CVPbkStoreContactStub @ 141 NONAME ; ## + _ZTV23CPbk2CommandHandlerStub @ 142 NONAME ; ## + _ZTV23CPbk2StoreConfiguration @ 143 NONAME ; ## + _ZTV23TVPbkContactStoreUriPtr @ 144 NONAME ; ## + _ZTV25CVPbkContactStoreListStub @ 145 NONAME ; ## + _ZTV25CVPbkContactStoreUriArray @ 146 NONAME ; ## + _ZTV26CVIMPSTLocalContactHandler @ 147 NONAME ; ## + _ZTV26CVPbkContactViewDefinition @ 148 NONAME ; ## + _ZTV26CVPbkStoreContactFieldStub @ 149 NONAME ; ## + _ZTV28CPbk2ApplicationServicesStub @ 150 NONAME ; ## + _ZTV29CVPbkContactFieldUriData_Stub @ 151 NONAME ; ## + _ZTV30CVPbkContactFieldTextData_stub @ 152 NONAME ; ## + _ZTV31CVPbkContactFieldBinaryDataStub @ 153 NONAME ; ## + _ZTV35CVPbkBaseContactFieldCollectionStub @ 154 NONAME ; ## + _ZTV7CActive @ 155 NONAME ; ## + diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/bld.inf Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,75 @@ +/* +* 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: +: +* +*/ + + + + +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 +../conf/CVIMPSTStorageContact_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContact_UT.cfg +../conf/CVIMPSTStorageContactList_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContactList_UT.cfg +../conf/CVIMPSTStorageContactSorter_UT.cfg /epoc32/winscw/c/TestFramework/CVIMPSTStorageContactSorter_UT.cfg + +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 +// NOTE: If using ARS requirements .mmp file operation should be done under this. +// 'abld test build' + +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 +*/ + +// Will be uncommented after completing other test cases. +//vimpststorage_test.mmp + +#include "../cvimpststoragecontact_ut/group/bld.inf" +#include "../cvimpststoragecontactlist_ut/group/bld.inf" +#include "../cvimpststoragecontactsorter_ut/group/bld.inf" + + + + +// End of File \ No newline at end of file diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/vimpststorage_test.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/vimpststorage_test.mmp Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,122 @@ +/* +* 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: vimpststorage_test.dll +* +*/ + + +#include +#include + +TARGET vimpststorage_test.dll +TARGETTYPE dll +UID 0x1000008D 0x101FB3E3 +EPOCALLOWDLLDATA +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 vimpststorage_test.def + +SOURCEPATH ../../../../vimpststorage/src +SOURCE cvimpststoragemanager.cpp +SOURCE cvimpststoragecontact.cpp +SOURCE cvimpststoragecontactlist.cpp +SOURCE cvimpststoragecontactsorter.cpp +SOURCE cvimpststoragemanagerfactory.cpp +SOURCE cvimpststorageviewId.cpp +SOURCE vimpststorageutils.cpp +SOURCE cvimpststoragevpbkstorehandler.cpp +SOURCE cvimpststoragerefreshtimer.cpp +SOURCE cvimpststoragelocalstorehandler.cpp +SOURCE cvimpststoragepbdummycontrol.cpp +SOURCE cvimpstlocalcontacthandler.cpp + +SOURCEPATH ../src +SOURCE vimpststorage_test.cpp +SOURCE vimpststorage_testBlocks.cpp + +//stubs +SOURCE s_MVPbkContactFieldTextData.cpp +SOURCE s_MVPbkContactFieldUriData.cpp +SOURCE s_MVPbkContactFieldBinaryData.cpp +SOURCE s_CVPbkContactManager.cpp +SOURCE s_MVPbkContactLinkstub.cpp +SOURCE CVPbkContactStoreUriArrayStub.cpp +SOURCE CVPbkStoreContactStub.cpp +SOURCE s_CVPbkBaseContactFieldCollection.cpp +SOURCE s_CVPbkStoreContactField.cpp +SOURCE s_CVPbkContactStoreList.cpp +SOURCE s_CVPbkContactViewDefinition.cpp +SOURCE s_CVPbkContactView.cpp +SOURCE s_CPbk2SortOrderManager.cpp +SOURCE s_TVPbkContactStoreUriPtr.cpp +SOURCE s_CVPbkContactLinkArray.cpp +SOURCE s_VPbkContactStoreUris.cpp +SOURCE pbkuistubs.cpp +SOURCE s_cactive.cpp +SOURCE s_CPBK2StoreConfiguration.cpp + +//RESOURCE resource_file +//RESOURCE resource_file2 + +USERINCLUDE ../inc +USERINCLUDE ../../../../inc +USERINCLUDE ../../../../vimpststorage/inc + +APP_LAYER_SYSTEMINCLUDE + +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY stiftestengine.lib +LIBRARY bafl.lib +LIBRARY efsrv.lib +LIBRARY edbms.lib +LIBRARY estor.lib +LIBRARY sysutil.lib +LIBRARY ecom.lib +LIBRARY cntmodel.lib + + +LIBRARY flogger.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 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/vimpststorage_test.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/group/vimpststorage_test.pkg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,46 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "Eclipse Public License v1.0" +; which accompanies this distribution, and is available +; at the URL "http://www.eclipse.org/legal/epl-v10.html". +; +; Initial Contributors: +; Nokia Corporation - initial contribution. +; +; Contributors: +; +; Description: package file for vimpststorage_test +; +;Header +#{"vimpststorage_test"}, (0x101FB3E3), 1, 2, 3, TYPE=SP + +;Language - standard language definitions +&EN + +;Vendor ID +:"Nokia Corporation" + +;Localised vendor +%{"Vendor-EN"} + +;Supports Series 60 v 0.9 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + + +;INI FILE +; ttestframework , because rom will not allow to update , rename it +; after install to testframework.ini + +"..\init\testframework.ini" - "c:\Testframework\testframework.ini" + +;CFG FILES + "..\conf\CVIMPSTStorageContact_UT.cfg" -"c:\Testframework\CVIMPSTStorageContact_UT.cfg" + "..\conf\CVIMPSTStorageContactList_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactList_UT.cfg" + "..\conf\CVIMPSTStorageContactSorter_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactSorter_UT.cfg" + +;vimststorage_test dll files + "\epoc32\release\armv5\urel\CVIMPSTStorageContact_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContact_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactList_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactList_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactSorter_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactSorter_UTs.dll" \ No newline at end of file diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/inc/vimpststorage_test.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/inc/vimpststorage_test.h Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,267 @@ +/* +* Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +: +* +*/ + + + + +#ifndef VIMPSTSTORAGE_TEST_H +#define VIMPSTSTORAGE_TEST_H + +// INCLUDES +#include +#include +#include +#include + +#include "mvimpststoragecontactsobserver.h" +#include "MVIMPSTStorageContactManagementObserver.h" +#include "mvimpststoragecontact.h" +#include + +//const ?type ?constant_var = ?constant; + +// MACROS +//#define ?macro ?macro_def +// Logging path +_LIT( Kvimpststorage_testLogPath, "\\logs\\testframework\\vimpststorage_test\\" ); +// Log file +_LIT( Kvimpststorage_testLogFile, "vimpststorage_test.txt" ); +_LIT( Kvimpststorage_testLogFileWithTitle, "vimpststorage_test_[%S].txt" ); + +// FUNCTION PROTOTYPES +//?type ?function_name(?arg_list); + +// FORWARD DECLARATIONS +//class ?FORWARD_CLASSNAME; +class Cvimpststorage_test; +class MVIMPSTStorageContacts; +class MVIMPSTStorageContactList; +class MVIMPSTStorageItemModel; +// DATA TYPES +//enum ?declaration +//typedef ?declaration +//extern ?data_type; + +// CLASS DECLARATION +class CContactDatabase; +class CContactIdArray; +/** +* Cvimpststorage_test test class for STIF Test Framework TestScripter. +* ?other_description_lines +* +* @lib ?library +* @since ?Series60_version +*/ +NONSHARABLE_CLASS(Cvimpststorage_test) : public CScriptBase, + public MVIMPSTStorageContactsObserver, + public MVIMPSTStorageContactManagementObserver, + public MVPbkContactObserver, + public MVIMPSTContactOperationCompleteObserver + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static Cvimpststorage_test* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~Cvimpststorage_test(); + + 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. + */ + Cvimpststorage_test( 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(); + + TInt InitialiseLibraryTestL( CStifItemParser& aItem ); + + TInt InitialiseViewTestL( CStifItemParser& aItem ); + + TInt CVIMPSTStorageContactTestCase1L(); + + TInt CVIMPSTStorageContactTestCase2L(); + + TInt CVIMPSTStorageContactTestCase3L(); + + TInt CVIMPSTStorageContactTestCase4L(); + + TInt CVIMPSTStorageContactTestCase6L(); + + TInt CVIMPSTStorageContactTestCase7L(); + + TInt CVIMPSTStorageContactTestCase8L(); + + TInt CVIMPSTStorageContactTestCase9L(); + + TInt CVIMPSTStorageContactTestCase10L(); + + TInt CVIMPSTStorageContactTestCase11L(); + TInt CVIMPSTStorageContactTestCase12L(); + TInt CVIMPSTStorageContactTestCase13L(); + TInt CVIMPSTStorageContactTestCase14L(); + TInt CVIMPSTStorageContactTestCase15L(); + TInt CVIMPSTStorageContactListTestCase16L(); + TInt CVIMPSTStorageContactListTestCase17L(); + TInt CVIMPSTStorageContactListTestCase18L(); + TInt CVIMPSTStorageContactListTestCase19L(); + TInt CVIMPSTStorageContactListTestCase20L(); + + TInt CVIMPSTStorageContactListTestCase21L(); + + TInt CVIMPSTStorageXSPStoreHandlerTestCase01L(); + //[TestMethods] - Do not remove + + public: // New functions + + /** + * Called when a contact is deleted. + * @param aId The ID of the deleted contact + * @param aFromPEC, ETrue, if event is coming from PEC + */ + void HandleContactDeleteL( const TDesC& aContactId ); + + /** + * Called when a contact is added. + * @param aList. List for contact that was added. + * @param aContact The contact which was added + * @param aFromPEC, ETrue, if event is coming from PEC + */ + void HandleAdditionL( MVIMPSTStorageContactList& aList, MVIMPSTStorageContact& aContact ); + + /** + * Called when a contact or list is about to change, or has been changed. + * @param aList List that is changed. Can be NULL if contact is changed. + * @param aContact Contact that is changed. Can be NULL if list is changed + * @param aEventType The type of event: EStorageEventPreChange before + * the change (contact still has the old information), or + * EStorageEventPostChange after the change took place + * (contact has new information) + */ + void HandleChangeL( MVIMPSTStorageContactList* aList, MVIMPSTStorageContact* aContact, + TVIMPSTEnums::TCAObserverEventType aEventType, + TBool aUserIdChanged ); + + public: + /** + * Called when all the contacts are fetched + */ + void HandleContactAddedL(RPointerArray& aServiceDetails); + + /** + * Called when all the contacts are fetched + */ + void HandleContactDeletedL(RPointerArray& aServiceDetails); + + void HandleContactOperationCompleteL( MVIMPSTStorageContact& aContact, TInt aError = KErrNone ); + + /** + * From MVPbkContactObserver + */ + void ContactOperationCompleted(TContactOpResult aResult); + + /** + * From MVPbkContactObserver + */ + void ContactOperationFailed + (TContactOp aOpCode, TInt aErrorCode, TBool aErrorNotified); + + + protected: // Data + // ?one_line_short_description_of_data + //?data_declaration; + + private: // Data + + // ?one_line_short_description_of_data + //?data_declaration; + + // Reserved pointer for future extension + //TAny* iReserved; + + public: // Friend classes + //?friend_class_declaration; + protected: // Friend classes + //?friend_class_declaration; + private: // Friend classes + //?friend_class_declaration; + + CActiveScheduler* iActive; + + TBool iObserverReceivedNotification; + }; + +#endif // VIMPSTSTORAGE_TEST_H + +// End of File diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/Nokia_RnDCert_02.der Binary file uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/Nokia_RnDCert_02.der has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/Nokia_RnDCert_02.key --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/Nokia_RnDCert_02.key Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQC/TDP7KKIaf5+uW4OD2iVZuUMC2a+SeQTjf6srlKcOm+CpPNXn +uLNm/8fdEnyOIuRXPRKmqhs1n0JkxEGHynELWMTuKXbQx9SRAGUXzyneGn+IJNnO +vOKHWgKCouX2hfI8rtkdqJpqmO460gGsMgw+lsbeyWyW9lnfLxq+ZC7sqQIDAQAB +AoGBALmUWZE8GBaQ3P4u9WUCSd3DJkkrmXIFSULSZeH/chlwCwDjbbhArHothVzo +REE3hEFFlERvHbplZ+mNouzy7boduvgUzbksGrbGMLJ2qO1GzWWVwV+GzOWKd3ss +/98Gwoy5R8pjnkqUE2wP1iJFw0FjvUTKcYv/z6t3LLJ0CsoBAkEA+c7ixvsviQ3J +s0INytCKU2bf8fqFQJi1VI82ukxNsujGTQ9upVSjuvqPvWyDvvTdrUBHqO+3qPut +sEh01Q8aiQJBAMQKDJPVRu4ud3mwUfEavzL5EjqwG1k9VCNGYsT4FwtrHcxu1oP/ +pk6M3rIZukqomoEEnHWPMwhrK3fhBqi0OSECQQDr40VXege4FnH5OI2Hj4afHMyp +VdQQXGMWFyopnzXblFz0lXb43cTCIiorR9XcMqNFHybLypkWE5o+lRzlt55pAkBQ +P/zeF5Sts//cpL0mgdh7OVKpC6ZmZaCnwAx2rUhhuDu+kDDoYCLoTOps5fNI1LRK +1GRoC3LMo3Jr5IYhUYWBAkBpCpN6k4JU/mszq98EojHerQNxk8sPqvQKUzTutohT +1gLX9yepGayB/TtT2EEJDkWOlnTy/dvN6W3vzbJYz97x +-----END RSA PRIVATE KEY----- diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.pkg Tue Sep 14 20:56:13 2010 +0300 @@ -0,0 +1,45 @@ +; +; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "Eclipse Public License v1.0" +; which accompanies this distribution, and is available +; at the URL "http://www.eclipse.org/legal/epl-v10.html". +; +; Initial Contributors: +; Nokia Corporation - initial contribution. +; +; Contributors: +; +; Description: package file for vimpststorage_test +; +;Header +#{"vimpststorage_test"}, (0x101FB3E3), 1, 2, 3 +;Language - standard language definitions +&EN + +;Vendor ID +:"Nokia Corporation" + +;Localised vendor +%{"Vendor-EN"} + +;Supports Series 60 v 0.9 +[0x101F7961], 0, 0, 0, {"Series60ProductID"} + + +;INI FILE +; ttestframework , because rom will not allow to update , rename it +; after install to testframework.ini + +"..\init\testframework.ini" - "c:\Testframework\ttestframework.ini" + +;CFG FILES + "..\conf\CVIMPSTStorageContact_UT.cfg" -"c:\Testframework\CVIMPSTStorageContact_UT.cfg" + "..\conf\CVIMPSTStorageContactList_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactList_UT.cfg" + "..\conf\CVIMPSTStorageContactSorter_UT.cfg" -"c:\Testframework\CVIMPSTStorageContactSorter_UT.cfg" + +;vimststorage_test dll files + "\epoc32\release\armv5\urel\CVIMPSTStorageContact_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContact_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactList_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactList_UT.dll" + "\epoc32\release\armv5\urel\CVIMPSTStorageContactSorter_UT.dll" - "!:\Sys\Bin\CVIMPSTStorageContactSorter_UTs.dll" \ No newline at end of file diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.sis Binary file uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.sis has changed diff -r 9a48e301e94b -r 2b4be3554d30 uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.sisx Binary file uiservicetab/vimpststorage/tsrc/vimpststorage_ut/sis/vimpststorage_test.sisx has changed