| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef PJSUACONTAINER_H |
| 10 |
#define PJSUACONTAINER_H |
| 11 |
|
| 12 |
|
| 13 |
#include <coecntrl.h> |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
class MEikCommandObserver; |
| 22 |
class CEikImage; |
| 23 |
class CEikLabel; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
class CPjsuaContainer : public CCoeControl |
| 32 |
{ |
| 33 |
public: |
| 34 |
|
| 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 |
|
| 50 |
public: |
| 51 |
|
| 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 |
|
| 59 |
protected: |
| 60 |
|
| 61 |
void SizeChanged(); |
| 62 |
|
| 63 |
private: |
| 64 |
|
| 65 |
void Draw( const TRect& aRect ) const; |
| 66 |
|
| 67 |
private: |
| 68 |
void InitializeControlsL(); |
| 69 |
void LayoutControls(); |
| 70 |
CCoeControl* iFocusControl; |
| 71 |
MEikCommandObserver* iCommandObserver; |
| 72 |
|
| 73 |
public: |
| 74 |
|
| 75 |
|
| 76 |
void PutMessageL( const char* msg ); |
| 77 |
|
| 78 |
public: |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
private: |
| 83 |
CEikImage* iImage1; |
| 84 |
CEikLabel* iLabel1; |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
protected: |
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
protected: |
| 95 |
|
| 96 |
|
| 97 |
public: |
| 98 |
enum TControls |
| 99 |
{ |
| 100 |
|
| 101 |
EImage1, |
| 102 |
ELabel1, |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
ELastControl |
| 109 |
}; |
| 110 |
}; |
| 111 |
|
| 112 |
#endif |