|
1 /* |
|
2 * Copyright (c) 2004 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: LandmarksUi Content File - Base class for selectors listbox model |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef CLMKSELECTORLBMODELBASE_H |
|
25 #define CLMKSELECTORLBMODELBASE_H |
|
26 |
|
27 // INCLUDES |
|
28 #include <e32base.h> // CBase |
|
29 #include <bamdesca.h> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CLmkListProviderBase; |
|
33 class CLmkSelectorCache; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CLmkSelectorLBModelBase class |
|
39 */ |
|
40 class CLmkSelectorLBModelBase : public CBase, public MDesCArray |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CLmkSelectorLBModelBase(); |
|
47 |
|
48 public: // From MDesCArray |
|
49 TInt MdcaCount() const; |
|
50 TPtrC16 MdcaPoint( TInt aIndex ) const; |
|
51 |
|
52 protected: // New functions |
|
53 // leaving method |
|
54 virtual void MdcaPointL( TInt aIndex ) const = 0; |
|
55 |
|
56 protected: // Constructors and destructor |
|
57 /** |
|
58 * C++ default constructor. |
|
59 * @return newly instantiated object |
|
60 */ |
|
61 CLmkSelectorLBModelBase(); |
|
62 |
|
63 /** |
|
64 * Symbian 2nd phase constructor |
|
65 * @param aListProvider |
|
66 */ |
|
67 void BaseConstructL( CLmkListProviderBase& aListProvider ); |
|
68 |
|
69 protected: // Data |
|
70 ///Own: |
|
71 CLmkSelectorCache* iCache; |
|
72 |
|
73 ///Own: |
|
74 HBufC* iBuffer; |
|
75 }; |
|
76 |
|
77 #endif // CLMKSELECTORLBMODELBASE_H |
|
78 |
|
79 // End of File |