|
1 /* |
|
2 * Copyright (c) 2007 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: FreestyleEmailUi control bar list selection callback API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef M_FREESTYLEEMAILUICONTROLBARCALLBACK_H |
|
21 #define M_FREESTYLEEMAILUICONTROLBARCALLBACK_H |
|
22 |
|
23 //<cmail> |
|
24 #include "CFSMailCommon.h" |
|
25 //</cmail> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CFSMailFolder; |
|
29 class CFSMailBox; |
|
30 |
|
31 enum TFSEmailUiCtrlBarResponse |
|
32 { |
|
33 EFSEmailUiCtrlBarResponseSelect, |
|
34 EFSEmailUiCtrlBarResponseCancel, |
|
35 EFSEmailUiCtrlBarResponseSwitchList |
|
36 }; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * Abstract interface of folder list selection callback |
|
41 */ |
|
42 class MFSEmailUiFolderListCallback |
|
43 { |
|
44 public: |
|
45 /** |
|
46 * Callback used when folder is selected in folder list |
|
47 * |
|
48 * @param aSelectedFolder Reference to selected folder |
|
49 * @param aResponse Response type |
|
50 */ |
|
51 virtual void FolderSelectedL( TFSMailMsgId aSelectedFolderId, |
|
52 TFSEmailUiCtrlBarResponse aResponse ) = 0; |
|
53 |
|
54 /** |
|
55 * Callback used when mailbox is selected in folder list |
|
56 * |
|
57 * @param aSelectedMailbox Reference to selected mailbox |
|
58 */ |
|
59 virtual void MailboxSelectedL( TFSMailMsgId /*aSelectedMailboxId*/ ) |
|
60 { /*empty default implementation*/ } |
|
61 |
|
62 /** |
|
63 * Getter for the folder button rect. Need to be implemented when |
|
64 * using folder list in popup mode. Empty default implementation is provided. |
|
65 */ |
|
66 virtual TRect FolderButtonRect() |
|
67 { return TRect(); } |
|
68 }; |
|
69 |
|
70 |
|
71 /** |
|
72 * Abstract interface of sort list selection callback |
|
73 */ |
|
74 class MFSEmailUiSortListCallback |
|
75 { |
|
76 public: |
|
77 /** |
|
78 * Callback used when sort order is selected in sort list |
|
79 * |
|
80 * @param aSortOrder New sort order type |
|
81 * @param aResponse Response type |
|
82 */ |
|
83 virtual void SortOrderChangedL( TFSMailSortField aSortField, |
|
84 TFSEmailUiCtrlBarResponse aResponse ) = 0; |
|
85 |
|
86 /** |
|
87 * Getter for the sort button rect. Need to be implemented when |
|
88 * using sort list in popup mode. Empty default implementation is provided. |
|
89 */ |
|
90 virtual TRect SortButtonRect() |
|
91 { return TRect(); } |
|
92 }; |
|
93 |
|
94 #endif // M_FREESTYLEEMAILUICONTROLBARCALLBACK_H |