summaryrefslogtreecommitdiffstats
path: root/plugins/contacts/symbian/contactsmodel/cntsrv/inc/ccnteventmsghandler.h
blob: 835f48a5bc8910f4fa2551a76cf58faae12182e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
* Contact: http://www.qt-project.org/legal
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/




/**
 @file
 @internalComponent
*/

#ifndef CNTEVENTMSGHANDLER_H
#define CNTEVENTMSGHANDLER_H

class CCntMsgHandler;

/**
CCntEventMsgHandler class handles Event related operations. It uses
a message handling method to handle the incoming op code.

It delegates the incoming op code to appropriate message handling method by using
a lookup table of member function pointers created by CCntServer.

@internalComponent
*/
class CCntEventMsgHandler : public CCntMsgHandler
	{
public:
	static CCntEventMsgHandler* NewLC(CCntSession& aSession);
	virtual ~CCntEventMsgHandler();
	TInt HandleMessageL(const RMessage2& aMessage);
	
private:
	CCntEventMsgHandler(CCntSession& aSession);
	void ConstructL();
	
public:	
	void RequestEvent(const RMessage2& aMessage);
	void CancelEventRequest(const RMessage2& aMessage);
	void QueueEvent(const TContactDbObserverEventV2 aEvent);
	
private:
	CEventQueue* iEventQueue;
	};
	
#endif