|
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: Message container interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCAMESSAGECONTAINER_H |
|
21 #define MCAMESSAGECONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <E32STD.H> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MCAConversationMessage; |
|
28 class TCursorSelection; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * UI side message container interface |
|
34 * |
|
35 * @lib chat.app |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class MCAMessageContainer |
|
39 { |
|
40 public: // New functions |
|
41 |
|
42 /** |
|
43 * Add new message to container |
|
44 * @param aMessage Message |
|
45 */ |
|
46 virtual void AddMessageL( MCAConversationMessage& aMessage ) = 0; |
|
47 |
|
48 /** |
|
49 * Inform about changed message |
|
50 * @param aIndex Index of changed message |
|
51 */ |
|
52 virtual void MessageChangedL( TInt aIndex ) = 0; |
|
53 |
|
54 /** |
|
55 * Remove message from container |
|
56 * @param aIndex Index of message to be removed |
|
57 */ |
|
58 virtual void RemoveMessage( TInt aIndex ) = 0; |
|
59 |
|
60 /** |
|
61 * Check if messages are deleted. |
|
62 * @return ETrue: chat is deleted, |
|
63 * EFalse: chat is not deleted |
|
64 */ |
|
65 virtual TBool IsDeleted() const = 0; |
|
66 |
|
67 /** |
|
68 * Mark messages as deleted. |
|
69 */ |
|
70 virtual void MarkDeleted() = 0; |
|
71 |
|
72 /** |
|
73 * Insert message to container start. |
|
74 * @since S60 v3.2 |
|
75 * @param aMessage Message to be inserted. |
|
76 */ |
|
77 virtual void InsertMessageL( MCAConversationMessage& aMessage ) = 0; |
|
78 |
|
79 protected: |
|
80 |
|
81 /** |
|
82 * Destructor. |
|
83 */ |
|
84 virtual ~MCAMessageContainer() {}; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // MCAMESSAGECONTAINER_H |
|
89 |
|
90 // End of File |