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