equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2006-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 */ |
|
24 |
|
25 #ifndef CNTEVENTMSGHANDLER_H |
|
26 #define CNTEVENTMSGHANDLER_H |
|
27 |
|
28 class CCntMsgHandler; |
|
29 |
|
30 /** |
|
31 CCntEventMsgHandler class handles Event related operations. It uses |
|
32 a message handling method to handle the incoming op code. |
|
33 |
|
34 It delegates the incoming op code to appropriate message handling method by using |
|
35 a lookup table of member function pointers created by CCntServer. |
|
36 |
|
37 @internalComponent |
|
38 */ |
|
39 class CCntEventMsgHandler : public CCntMsgHandler |
|
40 { |
|
41 public: |
|
42 static CCntEventMsgHandler* NewLC(CCntSession& aSession); |
|
43 virtual ~CCntEventMsgHandler(); |
|
44 TInt HandleMessageL(const RMessage2& aMessage); |
|
45 |
|
46 private: |
|
47 CCntEventMsgHandler(CCntSession& aSession); |
|
48 void ConstructL(); |
|
49 |
|
50 public: |
|
51 void RequestEvent(const RMessage2& aMessage); |
|
52 void CancelEventRequest(const RMessage2& aMessage); |
|
53 void QueueEvent(const TContactDbObserverEvent aEvent); |
|
54 |
|
55 private: |
|
56 CEventQueue* iEventQueue; |
|
57 }; |
|
58 |
|
59 #endif |