imsrv_plat/ximp_core_feature_plugin_api/tsrc/tsrcutils/testcaseutils/prfwsrvtestclient.h
changeset 0 e6b17d312c8b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imsrv_plat/ximp_core_feature_plugin_api/tsrc/tsrcutils/testcaseutils/prfwsrvtestclient.h	Thu Dec 17 08:54:49 2009 +0200
@@ -0,0 +1,72 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  XIMP Framework server test session.
+*
+*/
+
+#ifndef PRFWSRVTESTCLIENT_H__
+#define PRFWSRVTESTCLIENT_H__
+
+#include <ximpbase.h>
+#include <e32std.h>
+#include "prfwtestserverdefs.h"
+
+
+/**
+ * XIMP Framework server test session.
+ *
+ * @lib ximpsrvclient.dll
+ * @since S60 v3.2
+ */
+class RXIMPSrvTestClient : public RSessionBase
+    {
+public:
+
+    /**
+     * Default constructor.
+     */
+    RXIMPSrvTestClient();
+
+    /**
+     * Session connection method.
+     *
+     * @return Error code from creating server connection.
+     */
+    TInt Connect();
+    void ConnectL( TUid aProtocolImpUid );
+
+    /**
+     * Closes server connection.
+     */
+    void Close();
+    
+    /**
+     * Set alloc failure
+     */
+    void SetAllocFailure( TInt aRate );
+    NTestSrv::SErrorData RXIMPSrvTestClient::FetchErrorData();
+
+private:
+
+    /**
+     * Helper to get data from server side.
+     * @return Externalized object to be passed onward
+     */
+    NTestSrv::SErrorData GetData( TInt aMsg );
+    };
+
+
+#endif      //  PRFWSRVTESTCLIENT_H__
+
+// END OF FILE