00001 /* 00002 * ============================================================================ 00003 * Name : CEComCalculatorAppView from EComCalculatorAppView.h 00004 * Part of : EComCalculator 00005 * Created : 17/11/2003 by Forum Nokia 00006 * Version : 1.0 00007 * Copyright: Nokia Corporation 00008 * ============================================================================ 00009 */ 00010 00011 #ifndef __ECOMCALCULATORAPPVIEW_H__ 00012 #define __ECOMCALCULATORAPPVIEW_H__ 00013 00014 00015 #include <coecntrl.h> 00016 00017 class CEikLabel; 00018 class CEikEdwin; 00019 00029 class CEComCalculatorAppView : public CCoeControl 00030 { 00031 00032 public: 00033 00044 static CEComCalculatorAppView* NewL(const TRect& aRect); 00045 00050 ~CEComCalculatorAppView(); 00051 00052 public: // For the use of CEComCalculatorAppUi 00053 00063 TInt GetA(TReal &aResult) const; 00064 00074 TInt GetB(TReal &aResult) const; 00075 00090 void ShowResultL(const TDesC8& aOperationName, TReal aValue); 00091 00092 private: // Construction 00093 00102 void ConstructL(const TRect& aRect); 00103 00109 CEComCalculatorAppView(); 00110 00111 00112 private: // from CCoeControl 00113 00119 void SizeChanged(); 00120 00126 TInt CountComponentControls() const; 00127 00135 CCoeControl* ComponentControl(TInt aIndex) const; 00136 00145 void Draw(const TRect& aRect) const; 00146 00157 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, 00158 TEventCode aType); 00159 00160 private: 00161 00162 CEikLabel* iLabelA; 00163 CEikLabel* iLabelB; 00164 CEikEdwin* iEdwinA; 00165 CEikEdwin* iEdwinB; 00166 CEikLabel* iLabelResult; 00167 }; 00168 00169 00170 #endif // __ECOMCALCULATORAPPVIEW_H__
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.