64
|
1 |
/*
|
|
2 |
* Copyright (c) 2005 - 2009 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: Freestyle Email header file
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef FSEMAILSETTINGSLISTVIEW_H
|
|
19 |
#define FSEMAILSETTINGSLISTVIEW_H
|
|
20 |
|
|
21 |
// SYSTEM INCLUDES
|
|
22 |
#include <eiklbv.h>
|
|
23 |
|
|
24 |
// INTERNAL INCLUDES
|
|
25 |
#include "FreestyleEmailUiViewBase.h"
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
class CFsEmailSettingsList;
|
|
29 |
class CFSMailClient;
|
|
30 |
class CFreestyleEmailUiAppUi;
|
|
31 |
class CAsyncCallBack;
|
|
32 |
class CAknStylusPopUpMenu;
|
|
33 |
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
class CFsEmailSettingsListView : public CFsEmailUiViewBase
|
|
37 |
{
|
|
38 |
public: // Constructors and destructor.
|
|
39 |
|
|
40 |
static CFsEmailSettingsListView* NewL(
|
|
41 |
CFSMailClient& aMailClient,
|
|
42 |
CFreestyleEmailUiAppUi* aAppUi,
|
|
43 |
CAlfControlGroup& aControlGroup );
|
|
44 |
|
|
45 |
static CFsEmailSettingsListView* NewLC(
|
|
46 |
CFSMailClient& aMailClient,
|
|
47 |
CFreestyleEmailUiAppUi* aAppUi,
|
|
48 |
CAlfControlGroup& aControlGroup );
|
|
49 |
|
|
50 |
virtual ~CFsEmailSettingsListView();
|
|
51 |
|
|
52 |
|
|
53 |
private: // Construction.
|
|
54 |
|
|
55 |
CFsEmailSettingsListView( CAlfControlGroup& aControlGroup,
|
|
56 |
CFreestyleEmailUiAppUi& aAppUi,
|
|
57 |
CFSMailClient& aMailClient );
|
|
58 |
|
|
59 |
void ConstructL();
|
|
60 |
|
|
61 |
|
|
62 |
public: // From base class CAknView.
|
|
63 |
|
|
64 |
/**
|
|
65 |
* @return The UID for this view
|
|
66 |
*/
|
|
67 |
TUid Id() const;
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Handles commands for this view (override).
|
|
71 |
* @param aCommand The ID of the command to handle.
|
|
72 |
*/
|
|
73 |
void HandleCommandL( TInt aCommand );
|
|
74 |
|
|
75 |
|
|
76 |
public: // New methods.
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Set the main list index in parent.
|
|
80 |
* @param aIndex The index to set.
|
|
81 |
*/
|
|
82 |
void SetSelectedMainListIndex( TInt aIndex );
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Returns the main list index from parent.
|
|
86 |
* @return The list index.
|
|
87 |
*/
|
|
88 |
TInt GetSelectedMainListIndex() const;
|
|
89 |
|
|
90 |
void StartMailboxAsyncQueryL();
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Displays the pop-up menu.
|
|
94 |
* @param aPosition The position of the pop-up menu.
|
|
95 |
*/
|
|
96 |
void DisplayStylusPopUpMenu( const TPoint& aPosition );
|
|
97 |
|
|
98 |
/**
|
|
99 |
* Hides the pop-up menu.
|
|
100 |
*/
|
|
101 |
void HideStylusPopUpMenu();
|
|
102 |
|
|
103 |
protected: // From base class CAknView.
|
|
104 |
|
|
105 |
/**
|
|
106 |
* Handle status pane size change for this view (override).
|
|
107 |
*/
|
|
108 |
void HandleStatusPaneSizeChange();
|
|
109 |
|
|
110 |
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPan );
|
|
111 |
|
|
112 |
|
|
113 |
protected: // From CFsEmailUiViewBase.
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Handles user actions during activation of the view,
|
|
117 |
* such as initializing the content.
|
|
118 |
*/
|
|
119 |
void ChildDoDeactivate();
|
|
120 |
|
|
121 |
/**
|
|
122 |
* @see CFsEmailUiViewBase::ChildDoActivateL
|
|
123 |
*/
|
|
124 |
void ChildDoActivateL( const TVwsViewId& aPrevViewId,
|
|
125 |
TUid aCustomMessageId,
|
|
126 |
const TDesC8& aCustomMessage );
|
|
127 |
|
|
128 |
|
|
129 |
private: // New methods.
|
|
130 |
|
|
131 |
void SetupStatusPaneL();
|
|
132 |
|
|
133 |
/**
|
|
134 |
* Sets application default title when leaving this view.
|
|
135 |
*/
|
|
136 |
void CleanupStatusPaneL();
|
|
137 |
|
|
138 |
static TInt DisplayCreateQuery( TAny* aViewPtr );
|
|
139 |
|
|
140 |
void DisplayCreateMailboxNoteIfNeededL();
|
|
141 |
|
|
142 |
|
|
143 |
private: // Data.
|
|
144 |
|
|
145 |
CFsEmailSettingsList* iFsEmailSettingsList;
|
|
146 |
CFSMailClient& iMailClient;
|
|
147 |
TBool iMailboxSettings;
|
|
148 |
TInt iContainerListIndex;
|
|
149 |
|
|
150 |
// Async callback for create mailbox query
|
|
151 |
CAsyncCallBack* iAsyncCallback;
|
|
152 |
|
|
153 |
// A long tap detector and a pop-up menu that is invoked by long tap
|
|
154 |
// events. Used for e.g. deleting mail boxes.
|
|
155 |
CAknStylusPopUpMenu* iStylusPopUpMenu;
|
|
156 |
// dymmy control for hiding stylus pop up menu
|
|
157 |
CCoeControl* iCoeControl;
|
|
158 |
};
|
|
159 |
|
|
160 |
#endif // FSEMAILSETTINGSLISTVIEW_H
|
|
161 |
|