phonebookengines_old/contactsmodel/tsrc/cntmodel2/T_CProgressNotification.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 
       
    17 #ifndef __T_PROGRESS_NOTIFY_TEST_H__
       
    18 #define __T_PROGRESS_NOTIFY_TEST_H__
       
    19 
       
    20 #include "NbCntTestLib.h"
       
    21 #include <cntitem.h>
       
    22 #include <cntdbobs.h>
       
    23 
       
    24 
       
    25 const TInt KMaxArraySize = 1000;
       
    26 
       
    27 class CProgressNotificationTest : public CBase, public MContactUiCompactObserver
       
    28 {
       
    29 public:		
       
    30 	void RunRecoverNotifyTestL();
       
    31 	void RunCompressNotifyTestL();
       
    32 	void RunRecoverNotifyCancelTestL();  // Negative test
       
    33 	void RunCompressNotifyCancelTestL(); // Negative test
       
    34 	
       
    35 	static CProgressNotificationTest* NewLC();
       
    36 	~CProgressNotificationTest();
       
    37 	
       
    38 	// From MContactUiCompactObserver
       
    39 	void Step(TInt aStep);
       
    40 	void HandleError(TInt aError);
       
    41 	
       
    42 	void AddContactsL(TInt aNoOfCnts = 1000);
       
    43 	void DeleteContactsL(TInt aNoOfCnts = 500);
       
    44 	
       
    45 private:
       
    46 	CProgressNotificationTest();
       
    47 	const CContactTemplate&  GetSysTemplateL();
       
    48 	void ConstructL();
       
    49 	
       
    50 private:
       
    51 	TContactItemId    iIDarray [1000];
       
    52 	CContactDatabase* iCntDb;
       
    53 	CCntItemBuilder*  iCntItemBldr;
       
    54 	CContactTemplate* iGoldenTemplate;
       
    55 	RTest* iTest;
       
    56 	CContactActiveCompress* iActiveCompress;
       
    57 	CContactActiveRecover*  iActiveRecover;
       
    58 	TInt iSteps;
       
    59 };
       
    60 
       
    61 
       
    62 #endif // __T_PROGRESS_NOTIFY_TEST_H__