mmtestenv/mmtestfw/include/SimulProcClient.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2004-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 __TESTCLIENT__
       
    17 #define __TESTCLIENT__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <testframework.h>
       
    21 
       
    22 #define KMaxServerNameLength 256
       
    23 
       
    24 
       
    25 class RTestServ : public RSessionBase
       
    26 /**
       
    27 @publishedPartner
       
    28 @test
       
    29 */
       
    30 	{
       
    31 public:
       
    32 	IMPORT_C TInt Connect(const TDesC& aServerName);
       
    33 	IMPORT_C const TDesC& ServerName() const;
       
    34 protected:
       
    35 private:
       
    36 	RLibrary iLibrary;
       
    37 	TBuf<KMaxServerNameLength> iServerName;
       
    38 	TVersion Version() const;
       
    39 	};
       
    40 
       
    41 
       
    42 class RTestSession : public RSubSessionBase
       
    43 /**
       
    44 @publishedPartner
       
    45 @test
       
    46 */
       
    47 	{
       
    48 public:
       
    49 	IMPORT_C TInt Open(RTestServ& aServ, const TDesC& aStepName, TBool aSharedData = EFalse);
       
    50 	IMPORT_C void StartProcessing(TRequestStatus& aStatus);
       
    51 	IMPORT_C TVerdict EndProcessingAndReturnResult(TDes8& aMessage);
       
    52 	IMPORT_C void Close();
       
    53 protected:
       
    54 	};
       
    55 
       
    56 
       
    57 #endif