blob: 2ee14758a6c889b6d80194e9be64546332e2547c [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001/*
2========================================================================
3 Name : pjsuaContainer.h
4 Author : nanang
5 Copyright : Copyright (C) 2013 Teluu Inc. (http://www.teluu.com)
6 Description :
7========================================================================
8*/
9#ifndef PJSUACONTAINER_H
10#define PJSUACONTAINER_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]
21class MEikCommandObserver;
22class CEikImage;
23class CEikLabel;
24// ]]] end generated region [Generated Forward Declarations]
25
26/**
27 * Container class for pjsuaContainer
28 *
29 * @class CPjsuaContainer pjsuaContainer.h
30 */
31class CPjsuaContainer : public CCoeControl
32 {
33public:
34 // constructors and destructor
35 CPjsuaContainer();
36 static CPjsuaContainer* NewL(
37 const TRect& aRect,
38 const CCoeControl* aParent,
39 MEikCommandObserver* aCommandObserver );
40 static CPjsuaContainer* NewLC(
41 const TRect& aRect,
42 const CCoeControl* aParent,
43 MEikCommandObserver* aCommandObserver );
44 void ConstructL(
45 const TRect& aRect,
46 const CCoeControl* aParent,
47 MEikCommandObserver* aCommandObserver );
48 virtual ~CPjsuaContainer();
49
50public:
51 // from base class CCoeControl
52 TInt CountComponentControls() const;
53 CCoeControl* ComponentControl( TInt aIndex ) const;
54 TKeyResponse OfferKeyEventL(
55 const TKeyEvent& aKeyEvent,
56 TEventCode aType );
57 void HandleResourceChange( TInt aType );
58
59protected:
60 // from base class CCoeControl
61 void SizeChanged();
62
63private:
64 // from base class CCoeControl
65 void Draw( const TRect& aRect ) const;
66
67private:
68 void InitializeControlsL();
69 void LayoutControls();
70 CCoeControl* iFocusControl;
71 MEikCommandObserver* iCommandObserver;
72 // [[[ begin generated region: do not modify [Generated Methods]
73public:
74 // ]]] end generated region [Generated Methods]
75
76 void PutMessageL( const char* msg );
77 // [[[ begin generated region: do not modify [Generated Type Declarations]
78public:
79 // ]]] end generated region [Generated Type Declarations]
80
81 // [[[ begin generated region: do not modify [Generated Instance Variables]
82private:
83 CEikImage* iImage1;
84 CEikLabel* iLabel1;
85 // ]]] end generated region [Generated Instance Variables]
86
87
88 // [[[ begin [Overridden Methods]
89protected:
90 // ]]] end [Overridden Methods]
91
92
93 // [[[ begin [User Handlers]
94protected:
95 // ]]] end [User Handlers]
96
97public:
98 enum TControls
99 {
100 // [[[ begin generated region: do not modify [Generated Contents]
101 EImage1,
102 ELabel1,
103
104 // ]]] end generated region [Generated Contents]
105
106 // add any user-defined entries here...
107
108 ELastControl
109 };
110 };
111
112#endif // PJSUACONTAINER_H