Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | /* |
| 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] |
| 21 | class MEikCommandObserver; |
| 22 | class CEikImage; |
| 23 | class CEikLabel; |
| 24 | // ]]] end generated region [Generated Forward Declarations] |
| 25 | |
| 26 | /** |
| 27 | * Container class for pjsuaContainer |
| 28 | * |
| 29 | * @class CPjsuaContainer pjsuaContainer.h |
| 30 | */ |
| 31 | class CPjsuaContainer : public CCoeControl |
| 32 | { |
| 33 | public: |
| 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 | |
| 50 | public: |
| 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 | |
| 59 | protected: |
| 60 | // from base class CCoeControl |
| 61 | void SizeChanged(); |
| 62 | |
| 63 | private: |
| 64 | // from base class CCoeControl |
| 65 | void Draw( const TRect& aRect ) const; |
| 66 | |
| 67 | private: |
| 68 | void InitializeControlsL(); |
| 69 | void LayoutControls(); |
| 70 | CCoeControl* iFocusControl; |
| 71 | MEikCommandObserver* iCommandObserver; |
| 72 | // [[[ begin generated region: do not modify [Generated Methods] |
| 73 | public: |
| 74 | // ]]] end generated region [Generated Methods] |
| 75 | |
| 76 | void PutMessageL( const char* msg ); |
| 77 | // [[[ begin generated region: do not modify [Generated Type Declarations] |
| 78 | public: |
| 79 | // ]]] end generated region [Generated Type Declarations] |
| 80 | |
| 81 | // [[[ begin generated region: do not modify [Generated Instance Variables] |
| 82 | private: |
| 83 | CEikImage* iImage1; |
| 84 | CEikLabel* iLabel1; |
| 85 | // ]]] end generated region [Generated Instance Variables] |
| 86 | |
| 87 | |
| 88 | // [[[ begin [Overridden Methods] |
| 89 | protected: |
| 90 | // ]]] end [Overridden Methods] |
| 91 | |
| 92 | |
| 93 | // [[[ begin [User Handlers] |
| 94 | protected: |
| 95 | // ]]] end [User Handlers] |
| 96 | |
| 97 | public: |
| 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 |