phonebookengines_old/contactsmodel/tsrc/cntmodel2/T_Packager.h
branchRCL_3
changeset 19 5b6f26637ad3
equal deleted inserted replaced
18:d4f567ce2e7c 19:5b6f26637ad3
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __T_PACKAGER_H__
       
    17 #define __T_PACKAGER_H__
       
    18 
       
    19 #include <badesca.h>
       
    20 #include "T_CntTest.h"
       
    21 
       
    22 namespace nsCntTest
       
    23 	{	
       
    24 	_LIT(KPl, "Pl");
       
    25 	_LIT(KCnt,"Cnt");
       
    26 	}
       
    27 
       
    28 class CContactItem;
       
    29 class CCntPackager;
       
    30 
       
    31 // CPackagerTests - the class implementing the 
       
    32 // Contact Packaging Tests. 
       
    33 class CPackagerTests : public CCntTest
       
    34 	{
       
    35 public:
       
    36 	static CPackagerTests* NewLC (CCntTestImplementor& aCntTestImpl);
       
    37 	~CPackagerTests();
       
    38 
       
    39 	void ConstructL();
       
    40 
       
    41 	//Test procedures
       
    42 	void AllTestsL();
       
    43 	void ContactItemTestL();
       
    44 	void EmptyContactItemTestL();
       
    45 	void ContentTypeTestL();
       
    46 	void CntTextDefTestL();
       
    47 	void CntItemViewDefTestL();
       
    48 	void CntViewDefTestL();	
       
    49 	void DescArrayTestL();
       
    50 	void MessageBufferTestL();
       
    51 	void CContactIdArrayTestL();
       
    52 	void CCntFilterTestL();
       
    53 	TInt CompareContactItemTestL(CContactItem* item1, CContactItem* item2);
       
    54 	TInt CompareContactItemFieldTestL(CContactItemField* itemField1, CContactItemField* itemField2);
       
    55 	TInt CompareContentTypeTestL(const CContentType& contentType1, const CContentType& contentType2);
       
    56 	TInt CompareCntTextDefL(CContactTextDef* textDef1, CContactTextDef* textDef2);
       
    57 	TInt CompareCntItemViewDefTestL(CContactItemViewDef* viewDef1, CContactItemViewDef* viewDef2);
       
    58 	TInt CompareCntViewDefTestL(CContactViewDef* def1, CContactViewDef* def2);	
       
    59 	TInt CompareDescArrayTestL(CDesCArray* testArray1, CDesCArray* testArray2);
       
    60 	TInt CompareCContactIdArrayTestL(CContactIdArray* idArray1, CContactIdArray* idArray2);
       
    61 	TInt CompareCCntFilterTestL(CCntFilter* filter1, CCntFilter* filter2);
       
    62 	
       
    63 
       
    64 	virtual void HandleDatabaseEventL(TContactDbObserverEvent /*aEvent*/)
       
    65 		{};
       
    66 	virtual void DeleteNotifyL(TContactItemId /*aContactId*/)
       
    67 		{};
       
    68 
       
    69 private:
       
    70 	inline CPackagerTests (CCntTestImplementor& aCntTestImpl);
       
    71 	CContactItemViewDef* iMatchAll;
       
    72 	RFs iFs;
       
    73 	};
       
    74 
       
    75 CPackagerTests::CPackagerTests (CCntTestImplementor& aCntTestImpl):CCntTest(aCntTestImpl) {};
       
    76 
       
    77 	
       
    78 
       
    79 #endif //__T_PACKAGER_H__