fbs/fontandbitmapserver/tfbs/tipctest.h
changeset 0 5d03bc08d59c
child 19 bbf46f59e123
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1996-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 __TIPCTest_H__
       
    17 #define __TIPCTest_H__
       
    18 
       
    19 #include <fbs.h>
       
    20 #include "TGraphicsHarness.h"
       
    21 
       
    22 class RIPCTestFbservClient : public RSessionBase
       
    23 	{
       
    24 public:
       
    25 	RIPCTestFbservClient();
       
    26 	~RIPCTestFbservClient();
       
    27 	TInt Connect();
       
    28 	
       
    29 	void SendInvalidSize(TInt aFunctionNumber);
       
    30 	void SendInvalidDisplayMode(TInt aFunctionNumber);
       
    31 	void SendInvalidNameLength(TInt aFunctionNumber);
       
    32 private:
       
    33 	};
       
    34 
       
    35 class CTIPCTest : public CTGraphicsBase
       
    36 	{
       
    37 public:
       
    38 	CTIPCTest(CTestStep* aStep);
       
    39 	~CTIPCTest();
       
    40 protected:
       
    41 //from 	CTGraphicsStep
       
    42 	virtual void RunTestCaseL(TInt aCurTestCase);
       
    43 	void LoadFontsL(const TDesC& aFontsDir);
       
    44 	
       
    45 	void ConstructL();
       
    46 
       
    47 private:
       
    48 	void LoadFontFromFilelistL(TInt aFindFileComplete, CDir* aFoundFileList, TFindFile& aFileFinder);
       
    49 
       
    50 private:
       
    51 	RFbsSession* iFbs;
       
    52 	CFontStore* iFs;
       
    53 	RHeap* iHeap;
       
    54 	TBool iShutdownFbs;
       
    55 	RIPCTestFbservClient iClient;
       
    56 	};	
       
    57 
       
    58 class CTIPCTestStep : public CTGraphicsStep
       
    59 	{
       
    60 public:
       
    61 	CTIPCTestStep();
       
    62 protected:	
       
    63 	//from CTGraphicsStep
       
    64 	virtual CTGraphicsBase* CreateTestL();
       
    65 	};
       
    66 
       
    67 
       
    68 
       
    69 
       
    70 _LIT(KTIPCTestStep,"TIPCTest");
       
    71 
       
    72 #endif