|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : IsvTelInfoAppContainer.h 00004 * Part of : IsvTelInfoApp 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2005-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef ISVTELINFOAPPCONTAINER_H 00017 #define ISVTELINFOAPPCONTAINER_H 00018 00019 // INCLUDES 00020 #include <coecntrl.h> 00021 #include "IsvTelInfoAppDlg.h" 00022 00023 // FORWARD DECLARATIONS 00024 class CIsvTelInfoAppView; 00025 class CEikLabel; 00026 00027 // CLASS DEFINITION 00028 /** 00029 * CIsvTelInfoAppContainer container control class. 00030 */ 00031 class CIsvTelInfoAppContainer : public CCoeControl 00032 { 00033 private: // Enumerations 00034 00035 enum TIsvTelInfoAppComponentControls 00036 { 00037 EIsvTelInfoAppComponentLabel 00038 }; 00039 00040 public: // Constructors and destructor 00041 00042 /** 00043 * Overload constructor. 00044 * @param aView Pointer to view class object. 00045 */ 00046 CIsvTelInfoAppContainer( CIsvTelInfoAppView* aView ); 00047 00048 /** 00049 * EPOC constructor. 00050 * @param aRect Frame rectangle for container. 00051 */ 00052 void ConstructL( const TRect& aRect ); 00053 00054 /** 00055 * Destructor. 00056 */ 00057 virtual ~CIsvTelInfoAppContainer(); 00058 00059 public: // New functions 00060 00061 /** 00062 * Sets text from a resource to a label 00063 * @param aResourceId 00064 */ 00065 void SetTextToLabelL( TInt aResourceId ); 00066 00067 /** 00068 * Creates and executes the form 00069 * @param aResourceId , Id of resource for the form 00070 * @param aPageId, Id of the Page to start with 00071 */ 00072 void DisplayFormL( TInt aResourceId, TInt aPageId ); 00073 00074 void BringToForeGroundL( ); 00075 00076 private: // New functions 00077 00078 /** 00079 * Creates the label object. 00080 */ 00081 void CreateLabelL(); 00082 00083 private: // From CCoeControl 00084 00085 /** 00086 * From CCoeControl, OfferKeyEventL. 00087 * Handles the key events. 00088 * @return if key-event is consumed, EKeyWasConsumed. 00089 * Else EKeyWasNotConsumed 00090 * @param aKeyEvent Key event 00091 * @param aType Type of key event (EEventKey, EEventKeyUp 00092 * or EEventKeyDown) 00093 */ 00094 TKeyResponse OfferKeyEventL( 00095 const TKeyEvent& aKeyEvent, 00096 TEventCode aType ); 00097 00098 /** 00099 * From CCoeControl, SizeChanged. 00100 * 00101 */ 00102 void SizeChanged(); 00103 00104 /** 00105 * From CCoeControl, CountComponentControls. 00106 * Returns number of component. 00107 * @return Number of controls 00108 */ 00109 TInt CountComponentControls() const; 00110 00111 /** 00112 * From CCoeControl, ComponentControl. 00113 * Returns pointer to particular component. 00114 * @return Pointer to Control's component control, identified by index 00115 * @param aIndex Index of the control 00116 */ 00117 CCoeControl* ComponentControl( TInt aIndex ) const; 00118 00119 /** 00120 * From CCoeControl, Draw. 00121 * 00122 * @param aRect Region of the control to be (re)drawn. 00123 */ 00124 void Draw( const TRect& aRect ) const; 00125 00126 private: // Data 00127 00128 CIsvTelInfoAppView* iView; 00129 CEikLabel* iLabel; 00130 00131 }; 00132 00133 #endif//ISVTELINFOAPPCONTAINER_H 00134 00135 //End of File
|
© Nokia 2006 |