sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Client-side API which tests the session count server. sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @internalComponent sl@0: @test sl@0: @file sl@0: */ sl@0: sl@0: sl@0: #ifndef SSCTESTCLIENT_H sl@0: #define SSCTESTCLIENT_H sl@0: sl@0: #include sl@0: sl@0: _LIT(KDisableScsTestServerTimeout, "c:\\scstest_notimer"); sl@0: sl@0: class RScsTestSession : public RScsClientBase sl@0: /** sl@0: Client-side handle to an SCS test session. sl@0: Provides an API from which synchronous and asynchronous sl@0: requests can be executed. sl@0: */ sl@0: { sl@0: public: sl@0: IMPORT_C RScsTestSession(); sl@0: IMPORT_C TInt Connect(); sl@0: IMPORT_C TInt Connect(const TVersion& aVersion); sl@0: sl@0: IMPORT_C TInt SendCustomFunction(TInt aFunction); sl@0: sl@0: IMPORT_C TInt NukeServer(); sl@0: IMPORT_C TInt Double(TInt& aValue); sl@0: sl@0: IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aStatus); sl@0: IMPORT_C void CancelTreble(); sl@0: }; sl@0: sl@0: class RScsTestSubsession : public RScsClientSubsessionBase sl@0: /** sl@0: Provides an API from which synchronous and asynchronous sl@0: requests can be executed. sl@0: */ sl@0: { sl@0: public: sl@0: IMPORT_C RScsTestSubsession(); sl@0: IMPORT_C TInt Create(RScsTestSession& aSession, TInt aValue); sl@0: sl@0: IMPORT_C TInt SendFunction(TInt aFunction); sl@0: sl@0: IMPORT_C TInt Quadruple(TInt& aResult); sl@0: sl@0: IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aRequestStatus); sl@0: IMPORT_C void CancelTreble(); sl@0: }; sl@0: sl@0: #endif // #ifndef SSCTESTCLIENT_H sl@0: