cryptomgmtlibs/securitycommonutils/test/inc_private/scstestclient.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * Client-side API which tests the session count server.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @internalComponent
       
    22  @test
       
    23  @file
       
    24 */
       
    25 
       
    26 
       
    27 #ifndef SSCTESTCLIENT_H
       
    28 #define SSCTESTCLIENT_H
       
    29 
       
    30 #include <scs/scsclient.h>
       
    31 
       
    32 _LIT(KDisableScsTestServerTimeout, "c:\\scstest_notimer");
       
    33 
       
    34 class RScsTestSession : public RScsClientBase
       
    35 /**
       
    36 	Client-side handle to an SCS test session.
       
    37 	Provides an API from which synchronous and asynchronous
       
    38 	requests can be executed.
       
    39  */
       
    40 	{
       
    41 public:
       
    42 	IMPORT_C RScsTestSession();
       
    43 	IMPORT_C TInt Connect();
       
    44 	IMPORT_C TInt Connect(const TVersion& aVersion);
       
    45 	
       
    46 	IMPORT_C TInt SendCustomFunction(TInt aFunction);
       
    47 	
       
    48 	IMPORT_C TInt NukeServer();
       
    49 	IMPORT_C TInt Double(TInt& aValue);
       
    50 	
       
    51 	IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aStatus);
       
    52 	IMPORT_C void CancelTreble();
       
    53 	};
       
    54 
       
    55 class RScsTestSubsession : public RScsClientSubsessionBase
       
    56 /**
       
    57 	Provides an API from which synchronous and asynchronous
       
    58 	requests can be executed.
       
    59  */
       
    60 	{
       
    61 public:
       
    62 	IMPORT_C RScsTestSubsession();
       
    63 	IMPORT_C TInt Create(RScsTestSession& aSession, TInt aValue);
       
    64 	
       
    65 	IMPORT_C TInt SendFunction(TInt aFunction);
       
    66 	
       
    67 	IMPORT_C TInt Quadruple(TInt& aResult);
       
    68 	
       
    69 	IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aRequestStatus);
       
    70 	IMPORT_C void CancelTreble();
       
    71 	};
       
    72 
       
    73 #endif	// #ifndef SSCTESTCLIENT_H
       
    74