equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2007-2008 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: chat observer interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MIMCVENGINECHATOBSERVER_H__ |
|
20 #define __MIMCVENGINECHATOBSERVER_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32def.h> |
|
24 |
|
25 // FORWARD CLASS DECLERATIONS |
|
26 class MIMCVEngineMessage; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Observer interface to handle messages container changes. |
|
32 * |
|
33 * @lib imcvengine.dll |
|
34 * @since 5.0 |
|
35 */ |
|
36 class MIMCVEngineNewMsgObserver |
|
37 { |
|
38 |
|
39 public: // Definitions |
|
40 |
|
41 /** |
|
42 * Events for observer to handle. |
|
43 */ |
|
44 enum TChatEventType |
|
45 { |
|
46 EUnreadCountChanged, // Happens with new message and when messages are read. |
|
47 EMemoryLow, |
|
48 EEventNotSpecified |
|
49 }; |
|
50 |
|
51 public: // Interface |
|
52 |
|
53 /** |
|
54 * Handle events. |
|
55 * @param aEvent Event to handle. |
|
56 * @param aMessage, Event occurred because of message |
|
57 */ |
|
58 virtual void HandleChatEventL( TChatEventType aEvent, MIMCVEngineMessage* aMessage = NULL ) = 0; |
|
59 |
|
60 protected: // For protection. |
|
61 |
|
62 /** |
|
63 * Destructor |
|
64 */ |
|
65 virtual ~MIMCVEngineNewMsgObserver(){} |
|
66 }; |
|
67 |
|
68 #endif // __MIMCVENGINECHATOBSERVER_H__ |
|
69 |
|
70 // End of File |
|