|
1 /* |
|
2 * Copyright (c) 2002 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: CCntParserServerSession header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CNTPARSERSERVERSESSION_H__ |
|
20 #define __CNTPARSERSERVERSESSION_H__ |
|
21 |
|
22 #include "clientserver.h" |
|
23 #include "cntparserclient.h" |
|
24 #include "cntparserserver.h" |
|
25 #include "cntparsercollector.h" |
|
26 |
|
27 class CCntParserServer; |
|
28 |
|
29 //********************************** |
|
30 //CCntParserServerSession |
|
31 //********************************** |
|
32 class CCntParserServerSession : public CSession2 |
|
33 { |
|
34 public: |
|
35 static CCntParserServerSession* NewL(CCntParserServer* aServer); |
|
36 virtual ~CCntParserServerSession(); |
|
37 void ConstructL(CCntParserServer* aServer); |
|
38 |
|
39 private: |
|
40 CCntParserServerSession(); |
|
41 |
|
42 public: |
|
43 virtual void ServiceL(const RMessage2& aMessage); |
|
44 TInt DispatchMessageL(const RMessage2& aMessage); |
|
45 void CompletePhoneBookRequest(TInt aErr); |
|
46 |
|
47 protected: |
|
48 // panic the client |
|
49 void PanicClient(TInt aPanic) const; |
|
50 |
|
51 private: |
|
52 CCntParserServer* iContactsParserSrv; |
|
53 TBool iPhoneBookRequest; |
|
54 RMessage2 iPhoneBookRequestMessage; |
|
55 }; |
|
56 |
|
57 #endif |