applayerpluginsandutils/bookmarksupport/test/tbmtests.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2006-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 #include <bookmarkdatabase.h>
       
    17 
       
    18 class CTestWrapper;
       
    19 
       
    20 class CBmTests : public CBase
       
    21 	{
       
    22 	public:
       
    23 	
       
    24 	static CBmTests* NewL ( CTestWrapper& aTestWrapper );
       
    25 	~CBmTests ();
       
    26 	
       
    27 	void OpenDbL ();
       
    28 	void CloseDb ();
       
    29 	void CreateTreeL ();
       
    30 	void ModifyTreeL ();
       
    31 	void UpdateTreeL ();
       
    32 	
       
    33 	void SetBkmrkDbPropertiesL ();
       
    34 	void UpdateBkmrkDbPropertiesL ();
       
    35 	
       
    36 	void CreateCustomPropertiesL ();
       
    37 	void SetCustomPropertiesValueL ();
       
    38 	
       
    39 	void ReadCustomPropertiesValueL ();
       
    40 	
       
    41 	void CommitDbL ();
       
    42 	
       
    43 	void DeleteAllL ();
       
    44 	
       
    45 	private:	
       
    46 	CBmTests ( CTestWrapper& aTestWrapper );
       
    47 	RBkFolder CreateFolderLC ( const TDesC& aFolderName, RBkFolder* aParent = NULL );
       
    48 	RBkFolder OpenFolderLC ( const TDesC& aFolderName );
       
    49 		
       
    50 	private:	
       
    51 	RBkDatabase iBkDatabase;
       
    52 	CTestWrapper& iTestWrapper;	
       
    53 	};