|
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: Interface for model classes to be used by |
|
15 * CAknMemorySelectionEventHandler. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_AKNMEMORYSELECTIONMODEL_H |
|
22 #define M_AKNMEMORYSELECTIONMODEL_H |
|
23 |
|
24 #include <bamdesca.h> // MDesCArray |
|
25 |
|
26 /** |
|
27 * interface class for memory selection models |
|
28 * |
|
29 * @lib CommonDialogs.lib |
|
30 * @since S60 5.0 |
|
31 */ |
|
32 class MAknMemorySelectionModel: public MDesCArray |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 // Enumerations |
|
38 |
|
39 /** |
|
40 * Layout for listbox. For decorating items. |
|
41 */ |
|
42 enum TListBoxLayout |
|
43 { |
|
44 ELayoutPopupMenu = 0, |
|
45 ELayoutSettingPage = 10, |
|
46 ELayoutDoublePopup = 20 |
|
47 }; |
|
48 |
|
49 // Constructors and destructor |
|
50 |
|
51 /** |
|
52 * A virtual destructor to ensure that correct destructor gets called. |
|
53 * Must have an empty implementation. |
|
54 */ |
|
55 virtual ~MAknMemorySelectionModel() { }; |
|
56 |
|
57 // New functions |
|
58 |
|
59 /** |
|
60 * Update Data arrays |
|
61 */ |
|
62 virtual void UpdateDataArraysL() { } |
|
63 |
|
64 /** |
|
65 * Update model's items |
|
66 */ |
|
67 virtual void UpdateItemsL() = 0; |
|
68 |
|
69 /** |
|
70 * Get path of a drive referenced by given listbox item index. |
|
71 * @param aLbxItemIndex Index of the listbox item. |
|
72 * @param aDrivePath A reference to a descriptor where the drive path is |
|
73 * stored. |
|
74 */ |
|
75 virtual void GetDrive( TInt aLbxItemIndex, TDes& aDrivePath ) = 0; |
|
76 |
|
77 }; |
|
78 |
|
79 |
|
80 #endif // M_AKNMEMORYSELECTIONMODEL_H |