1 /* |
|
2 * Copyright (c) 2002-2005 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: Contact Parser Client |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #if !defined(__CNTPARSERCLIENT_H__) |
|
21 #define __CNTPARSERCLIENT_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32std.h> |
|
25 |
|
26 enum TCntParserConnection |
|
27 { |
|
28 ECntParserNotConnected, |
|
29 ECntParserConnected |
|
30 }; |
|
31 |
|
32 //********************************** |
|
33 //RCntParserServer |
|
34 //********************************** |
|
35 |
|
36 class RCntParserServer : public RSessionBase |
|
37 { |
|
38 public: |
|
39 IMPORT_C RCntParserServer(); |
|
40 IMPORT_C TInt Connect(); |
|
41 IMPORT_C TInt Disconnect(); |
|
42 IMPORT_C TVersion Version() const; |
|
43 IMPORT_C TInt CreateIrMCL2PhoneBook(TInt aMaxNumberOfContacts, TBool aForced); |
|
44 IMPORT_C TInt ContactsParsed(); |
|
45 IMPORT_C TInt ContactsSaved(); |
|
46 IMPORT_C TInt TotalNumberOfContacts(); |
|
47 IMPORT_C TInt Cancel(); //cancels phonebook request |
|
48 IMPORT_C TInt CancelAll(); //cancels all request |
|
49 |
|
50 private: |
|
51 TCntParserConnection iConnected; |
|
52 }; |
|
53 |
|
54 |
|
55 #endif |
|
56 |
|