0
|
1 |
/*
|
|
2 |
* Copyright (c) 2004 - 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
1
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __AKNEXPOPLISTCONTAINER_H__
|
|
20 |
#define __AKNEXPOPLISTCONTAINER_H__
|
|
21 |
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <aknview.h>
|
|
25 |
|
|
26 |
// CONSTANTS
|
|
27 |
const TInt KNumberOfControls = 0;
|
1
|
28 |
const TInt KRgbColorGray = 0xEaaaaa;
|
0
|
29 |
|
|
30 |
|
|
31 |
// CLASS DECLARATION
|
|
32 |
|
|
33 |
/**
|
|
34 |
* CAknExPopListContainer container control class.
|
|
35 |
*/
|
|
36 |
class CAknExPopListContainer : public CCoeControl, MCoeControlObserver
|
|
37 |
{
|
|
38 |
public: // Constructors and destructor
|
|
39 |
|
|
40 |
/**
|
|
41 |
* ConstructL
|
|
42 |
* 2nd phase constructor.
|
|
43 |
* @param aRect Frame rectangle for container.
|
|
44 |
*/
|
|
45 |
void ConstructL(const TRect& aRect);
|
|
46 |
|
|
47 |
|
|
48 |
/**
|
|
49 |
* ~CAknExPopListContainer.
|
|
50 |
* Virtual Destructor.
|
|
51 |
*/
|
|
52 |
virtual ~CAknExPopListContainer();
|
|
53 |
|
|
54 |
|
|
55 |
private: // Functions from base classes
|
|
56 |
|
|
57 |
/**
|
|
58 |
* From CoeControl,SizeChanged.
|
|
59 |
*/
|
|
60 |
void SizeChanged();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* From CoeControl,CountComponentControls.
|
|
64 |
* @return number of controls inside this container.
|
|
65 |
*/
|
|
66 |
TInt CountComponentControls() const;
|
|
67 |
|
|
68 |
/**
|
|
69 |
* From CCoeControl,ComponentControl.
|
|
70 |
* @param Index number of the control.
|
|
71 |
* @return Pointer of controls inside this container.
|
|
72 |
*/
|
|
73 |
CCoeControl* ComponentControl( TInt aIndex ) const;
|
|
74 |
|
|
75 |
/**
|
|
76 |
* Draw
|
|
77 |
* @param Specified area for drawing
|
|
78 |
*/
|
|
79 |
void Draw(const TRect& aRect) const;
|
|
80 |
|
|
81 |
/**
|
|
82 |
* From CCoeControl, HandleControlEventL
|
|
83 |
* Handles an event of type aEventType
|
|
84 |
* @param aControl Pointer to component control
|
|
85 |
* @param aEventType Event code
|
|
86 |
*/
|
|
87 |
void HandleControlEventL( CCoeControl* aControl,
|
|
88 |
TCoeEvent aEventType );
|
|
89 |
|
|
90 |
};
|
|
91 |
|
|
92 |
#endif // __AKNEXPOPLISTCONTAINER_H__
|
|
93 |
|
|
94 |
// End of File
|