phonebookengines/contactsmodel/tsrc/performance/T_PerfBulkDelete.h
changeset 0 e686773b3f54
child 24 0ba2181d7c28
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2003-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 __TPERFBULKDELETE__
       
    17 #define __TPERFBULKDELETE__
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <e32test.h>
       
    21 #include <cntdb.h>
       
    22 #include <s32strm.h>
       
    23 
       
    24 
       
    25 class CDeleteMany : public CBase
       
    26 	{
       
    27 public:
       
    28 	~CDeleteMany();
       
    29 	static CDeleteMany* NewLC(RTest& aTest);
       
    30 	void DelDataL(TInt aEntryCount, TInt aNumEntriesInDb, TInt aNumMsToGet20ItemsFromView);
       
    31 		
       
    32 private:
       
    33 	CDeleteMany();
       
    34 	void ConstructL(RTest& aTest);
       
    35 	static void CleanupPtrArray(TAny* aCArrayPtr);
       
    36 	void CreateRandomIdArrayL(CContactIdArray& aUids, TInt aNumIds, TInt aNumEntriesInDb);
       
    37 		
       
    38 private:
       
    39 
       
    40 	RTest* iTest; //not owned
       
    41 	CContactDatabase* iDb;
       
    42 	};
       
    43 
       
    44 
       
    45 #endif //__TPERFBULKDELETE__