|
1 /* |
|
2 * Copyright (c) 2010 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: RContactResolverSession |
|
15 * This class provides the client-side interface to the server session |
|
16 */ |
|
17 #ifndef CONTACTRESOLVERSESSION_H |
|
18 #define CONTACTRESOLVERSESSION_H |
|
19 |
|
20 #include <e32std.h> |
|
21 |
|
22 class CPosRequestor; |
|
23 |
|
24 class RContactResolverSession : public RSessionBase |
|
25 { |
|
26 public: |
|
27 // Constructors and destructors |
|
28 |
|
29 /** |
|
30 * Default constructor. |
|
31 * Constructs the object. |
|
32 */ |
|
33 IMPORT_C RContactResolverSession(); |
|
34 |
|
35 public: |
|
36 // New functions |
|
37 |
|
38 /** |
|
39 * Connect. |
|
40 * Connects to the server and create a session. |
|
41 * @return Error code. |
|
42 */ |
|
43 IMPORT_C TInt Connect(); |
|
44 |
|
45 /** |
|
46 * Resolve the requestors. |
|
47 * @param[IN,OUT] aRequestors Array of Requestors |
|
48 */ |
|
49 IMPORT_C void ResolveRequestorsL( |
|
50 RPointerArray<CPosRequestor>& aRequestors); |
|
51 |
|
52 /** |
|
53 * closes the session. |
|
54 */ |
|
55 IMPORT_C void Close(); |
|
56 |
|
57 /** |
|
58 * Starts the server process if not already started. |
|
59 */ |
|
60 static TInt StartServer(); |
|
61 |
|
62 /** |
|
63 * creates the server process. |
|
64 */ |
|
65 static TInt CreateServerProcess(); |
|
66 |
|
67 private: |
|
68 /** |
|
69 * Version. |
|
70 * Gets the version number. |
|
71 * @return The version. |
|
72 */ |
|
73 TVersion Version() const; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif //CONTACTRESOLVERSESSION_H |