|
1 /* |
|
2 * Copyright (c) 2003 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: Interface to provide recorded chat information. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MCARECORDEDCHATPROVIDER_H |
|
20 #define MCARECORDEDCHATPROVIDER_H |
|
21 |
|
22 //Forward declarations |
|
23 class MCAMessagesReadInterface; |
|
24 class CEikMenuPane; |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Interface to provide recorded chat information. |
|
30 * |
|
31 * @lib chat.app |
|
32 * @since 2.5 |
|
33 */ |
|
34 class MCARecordedChatProvider |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Get interface to handle recorded chat messages. |
|
39 */ |
|
40 //virtual MCAMessagesReadInterface& RecordedChatMessageInterfaceL() const = 0; |
|
41 |
|
42 /** |
|
43 * Get name of recorded chat. |
|
44 */ |
|
45 virtual const TDesC& RecordedChatName() const = 0; |
|
46 |
|
47 /** |
|
48 * Get time when chat recording ended. |
|
49 */ |
|
50 virtual TTime RecordedEndDate() const = 0; |
|
51 |
|
52 /** |
|
53 * Delete current chat. |
|
54 * @return ETrue if deletion is ok, EFalse if not. |
|
55 */ |
|
56 virtual TBool DeleteChatL() = 0; |
|
57 |
|
58 /** |
|
59 * Send current chat via MTM |
|
60 * @param aTargetUid Id for MTM to send with. |
|
61 */ |
|
62 virtual void SendChatViaMTML( TUid aTargetUid = KNullUid ) = 0; |
|
63 |
|
64 /** |
|
65 * Dynamic initialization of send MTM submenu. |
|
66 * @since 2.6 |
|
67 * @param aMenuPane Target menu for initialization of send MTM submenu. |
|
68 */ |
|
69 virtual void DynInitSendMenuL( CEikMenuPane& aMenuPane ) = 0; |
|
70 |
|
71 /** |
|
72 * Deletes message container of current recorded chat |
|
73 * from engine. Used to free memory when exiting current |
|
74 * recorded chat view i.e. called from DoDeactivate method |
|
75 * of view class. |
|
76 * @since 3.1 |
|
77 */ |
|
78 virtual void DeleteRecordedChatContainerL() = 0; |
|
79 |
|
80 protected: |
|
81 |
|
82 /** |
|
83 * Destructor |
|
84 */ |
|
85 virtual ~MCARecordedChatProvider() {}; |
|
86 }; |
|
87 |
|
88 #endif //MCARECORDEDCHATPROVIDER_H |