|
1 /* |
|
2 * Copyright (c) 2008 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: Definition of class CFscContactActionMenuListBox. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSCCONTACTACTIONMENULISTBOX_H |
|
20 #define C_FSCCONTACTACTIONMENULISTBOX_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <eiklbo.h> |
|
24 #include <aknlists.h> |
|
25 |
|
26 //<cmail> |
|
27 #include "fsccontactactionmenudefines.h" |
|
28 //</cmail> |
|
29 |
|
30 // DEFINES |
|
31 #define CFSCCONTACTACTIONMENULISTBOXBASE CEikColumnListBox |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 |
|
35 /** |
|
36 * Contact Action Menu List Box implementation. |
|
37 * |
|
38 * @since S60 3.1 |
|
39 */ |
|
40 class CFscContactActionMenuListBox |
|
41 : public CFSCCONTACTACTIONMENULISTBOXBASE |
|
42 { |
|
43 |
|
44 public: // Public constructor and destructor |
|
45 |
|
46 /** |
|
47 * Constructor. |
|
48 */ |
|
49 CFscContactActionMenuListBox(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CFscContactActionMenuListBox(); |
|
55 |
|
56 /** |
|
57 * Second phase constructor. |
|
58 * |
|
59 * @param aParent Parent control |
|
60 * @param aFlags Listbox flags |
|
61 */ |
|
62 void ConstructL( const CCoeControl* aParent, TInt aFlags = 0 ); |
|
63 |
|
64 public: // From Base class |
|
65 |
|
66 /** |
|
67 * Draw |
|
68 * |
|
69 * @param aRect rect |
|
70 */ |
|
71 virtual void Draw( const TRect& aRect ) const; |
|
72 |
|
73 /** |
|
74 * MopSupplyObject |
|
75 * |
|
76 */ |
|
77 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
78 |
|
79 public: // Own Methods |
|
80 |
|
81 /** |
|
82 * Set background rect of the listbox. |
|
83 * @param aRect Rectangle parameter. |
|
84 */ |
|
85 virtual void SetBackgroundRect( const TRect& aRect ); |
|
86 |
|
87 private: // data |
|
88 |
|
89 /** |
|
90 * Rectangle of list background |
|
91 */ |
|
92 TRect iBackgroundRect; |
|
93 |
|
94 /** |
|
95 * Background control |
|
96 * Owned |
|
97 */ |
|
98 CAknsFrameBackgroundControlContext* iBgContext; |
|
99 }; |
|
100 |
|
101 #endif // C_FSCCONTACTACTIONMENULISTBOX_H |
|
102 |