]> code.delx.au - comingnext/blob - ComingNext_SkinFetcher/inc/ComingNext_SkinFetcherContainer.h
c419208bffb7a7d4f7fe50c9f4ad6f0c8fedcca2
[comingnext] / ComingNext_SkinFetcher / inc / ComingNext_SkinFetcherContainer.h
1 /*
2 ========================================================================
3 Name : ComingNext_SkinFetcherContainer.h
4 Author : Michael Prager
5 Copyright : Licensed under GPLv3
6 Description :
7 ========================================================================
8 */
9 #ifndef COMINGNEXT_SKINFETCHERCONTAINER_H
10 #define COMINGNEXT_SKINFETCHERCONTAINER_H
11
12 // [[[ begin generated region: do not modify [Generated Includes]
13 #include <coecntrl.h>
14 // ]]] end generated region [Generated Includes]
15
16
17 // [[[ begin [Event Handler Includes]
18 // ]]] end [Event Handler Includes]
19
20 // [[[ begin generated region: do not modify [Generated Forward Declarations]
21 class MEikCommandObserver;
22 class CEikLabel;
23 // ]]] end generated region [Generated Forward Declarations]
24
25 /**
26 * Container class for ComingNext_SkinFetcherContainer
27 *
28 * @class CComingNext_SkinFetcherContainer ComingNext_SkinFetcherContainer.h
29 */
30 class CComingNext_SkinFetcherContainer: public CCoeControl
31 {
32 public:
33 // constructors and destructor
34 CComingNext_SkinFetcherContainer();
35 static CComingNext_SkinFetcherContainer* NewL(const TRect& aRect,
36 const CCoeControl* aParent, MEikCommandObserver* aCommandObserver);
37 static CComingNext_SkinFetcherContainer* NewLC(const TRect& aRect,
38 const CCoeControl* aParent, MEikCommandObserver* aCommandObserver);
39 void ConstructL(const TRect& aRect, const CCoeControl* aParent,
40 MEikCommandObserver* aCommandObserver);
41 virtual ~CComingNext_SkinFetcherContainer();
42
43 public:
44 // from base class CCoeControl
45 TInt CountComponentControls() const;
46 CCoeControl* ComponentControl(TInt aIndex) const;
47 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
48 void HandleResourceChange(TInt aType);
49
50 protected:
51 // from base class CCoeControl
52 void SizeChanged();
53
54 private:
55 // from base class CCoeControl
56 void Draw(const TRect& aRect) const;
57
58 private:
59 void InitializeControlsL();
60 void LayoutControls();
61 CCoeControl* iFocusControl;
62 MEikCommandObserver* iCommandObserver;
63 // [[[ begin generated region: do not modify [Generated Methods]
64 public:
65 // ]]] end generated region [Generated Methods]
66
67 // [[[ begin generated region: do not modify [Generated Type Declarations]
68 public:
69 // ]]] end generated region [Generated Type Declarations]
70
71 // [[[ begin generated region: do not modify [Generated Instance Variables]
72 private:
73 CEikLabel* iLabel1;
74 // ]]] end generated region [Generated Instance Variables]
75
76
77 // [[[ begin [Overridden Methods]
78 protected:
79 // ]]] end [Overridden Methods]
80
81
82 // [[[ begin [User Handlers]
83 protected:
84 // ]]] end [User Handlers]
85
86 public:
87 enum TControls
88 {
89 // [[[ begin generated region: do not modify [Generated Contents]
90 ELabel1,
91
92 // ]]] end generated region [Generated Contents]
93
94 // add any user-defined entries here...
95
96 ELastControl
97 };
98 };
99
100 #endif // COMINGNEXT_SKINFETCHERCONTAINER_H