|
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: Declares view for chat list |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCACHATLISTVIEW_H |
|
21 #define CCACHATLISTVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CCAView.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CCAChatListViewContainer; |
|
28 class MCAChatListInterface; |
|
29 class MCAGroupManagerInterface; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * This class is for chat list view |
|
35 * |
|
36 * @lib chat.app |
|
37 * @since 1.2s |
|
38 */ |
|
39 class CCAChatListView : public CCAView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CCAChatListView(); |
|
47 |
|
48 /** |
|
49 * Symbian OS default constructor. |
|
50 * @param aAvkonViewResourceId Id for resource |
|
51 * used to construct this view |
|
52 * @param aViewId View id |
|
53 */ |
|
54 void ConstructL( TInt aAvkonViewResourceId, TUid aViewId ); |
|
55 |
|
56 |
|
57 public: // Functions from base classes |
|
58 |
|
59 /** |
|
60 * From CAknView Handles command events. Gets called by framework |
|
61 * @param aCommand Command that was received |
|
62 */ |
|
63 void HandleCommandL( TInt aCommand ); |
|
64 |
|
65 /** |
|
66 * From MEikMenuObserver Dynamically initialises a menu pane. |
|
67 * The Uikon framework calls this function, if it is implemented in a |
|
68 * menu’s observer, immediately before the menu pane is activated. |
|
69 * Typically this function should inquire the value of application |
|
70 * data, and initialise menu items accordingly. This includes dimming |
|
71 * menu items, changing their text, setting the state of checked items |
|
72 * and radio buttons and dynamically adding items to a menu. |
|
73 * @param aResourceId Resource ID identifying the menu pane |
|
74 * to initialise |
|
75 * @param aMenuPane The in-memory representation of the menu pane |
|
76 */ |
|
77 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * From CAknView, Gets called from framework when activating this view |
|
83 * @param aPrevViewId Previous view id |
|
84 * @param aCustomMessageId Custom message's id |
|
85 * @param aCustomMessage Custom message |
|
86 */ |
|
87 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
88 const TDesC8& aCustomMessage ); |
|
89 |
|
90 /** |
|
91 * From CAknView, Gets called from framework when deactivating this view |
|
92 */ |
|
93 void DoDeactivate(); |
|
94 |
|
95 private: // Data |
|
96 // Owns. Handle to window-owning control container class |
|
97 CCAChatListViewContainer* iContainer; |
|
98 |
|
99 //Group interface |
|
100 MCAGroupManagerInterface* iGroupInterface; |
|
101 |
|
102 // owns. WVID of currently selected group |
|
103 HBufC* iSelectedGroup; |
|
104 |
|
105 // owns. WVID of group chosen for deletion |
|
106 HBufC* iDeleteGroupId; |
|
107 |
|
108 // flip flop for skipping the group id storaging in |
|
109 // certain places |
|
110 TBool iSkipGIDStorage; |
|
111 }; |
|
112 |
|
113 #endif //CCACHATLISTVIEW_H |
|
114 |
|
115 // End of File |