|
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 root session. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XIMPSRVROOTCLIENT_H__ |
|
19 #define XIMPSRVROOTCLIENT_H__ |
|
20 |
|
21 #include <ximpbase.h> |
|
22 #include <e32std.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * XIMP Framework server root session. |
|
27 * |
|
28 * @lib ximpsrvclient.dll |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 class RXIMPSrvRootClient : public RSessionBase |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Default constructor. |
|
37 */ |
|
38 IMPORT_C RXIMPSrvRootClient(); |
|
39 |
|
40 |
|
41 /** |
|
42 * Session connection method. |
|
43 * |
|
44 * @return Error code from creating server connection. |
|
45 */ |
|
46 IMPORT_C TInt Connect(); |
|
47 |
|
48 |
|
49 /** |
|
50 * Closes server connection. |
|
51 */ |
|
52 IMPORT_C void Close(); |
|
53 |
|
54 |
|
55 /** |
|
56 * Retrieves a list of known protocols and their details. |
|
57 * |
|
58 * @return Externalized version of |
|
59 * RXIMPObjOwningPtrArray< CXIMPProtocolInfoImp >, containing the |
|
60 * protocols. Ownership transferred to caller. |
|
61 */ |
|
62 IMPORT_C HBufC8* GetKnownProtocolsL(); |
|
63 |
|
64 |
|
65 /** |
|
66 * Gets supported framework features. |
|
67 * |
|
68 * @return Supported framework features, externalized |
|
69 * CXIMPFeatureInfoImp. Ownership transferred to caller. |
|
70 */ |
|
71 IMPORT_C HBufC8* GetSupportedFrameworkFeaturesL(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * Helper to get data from server side. |
|
77 * @return Externalized object to be passed onward |
|
78 */ |
|
79 HBufC8* GetDataL( TInt aMsg ); |
|
80 |
|
81 |
|
82 }; |
|
83 |
|
84 |
|
85 #endif // XIMPSRVROOTCLIENT_H__ |
|
86 |
|
87 |
|
88 |