equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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 "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: XIMP Framework server test session. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PRFWSRVTESTCLIENT_H__ |
|
19 #define PRFWSRVTESTCLIENT_H__ |
|
20 |
|
21 #include <ximpbase.h> |
|
22 #include <e32std.h> |
|
23 #include "prfwtestserverdefs.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * XIMP Framework server test session. |
|
28 * |
|
29 * @lib ximpsrvclient.dll |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 class RXIMPSrvTestClient : public RSessionBase |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Default constructor. |
|
38 */ |
|
39 RXIMPSrvTestClient(); |
|
40 |
|
41 /** |
|
42 * Session connection method. |
|
43 * |
|
44 * @return Error code from creating server connection. |
|
45 */ |
|
46 TInt Connect(); |
|
47 void ConnectL( TUid aProtocolImpUid ); |
|
48 |
|
49 /** |
|
50 * Closes server connection. |
|
51 */ |
|
52 void Close(); |
|
53 |
|
54 /** |
|
55 * Set alloc failure |
|
56 */ |
|
57 void SetAllocFailure( TInt aRate ); |
|
58 NTestSrv::SErrorData RXIMPSrvTestClient::FetchErrorData(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * Helper to get data from server side. |
|
64 * @return Externalized object to be passed onward |
|
65 */ |
|
66 NTestSrv::SErrorData GetData( TInt aMsg ); |
|
67 }; |
|
68 |
|
69 |
|
70 #endif // PRFWSRVTESTCLIENT_H__ |
|
71 |
|
72 // END OF FILE |