examples/ForumNokia/EComCalculator/client/inc/EComCalculatorAppui.h

00001 /*
00002  * ============================================================================
00003  *  Name     : CEComCalculatorAppUi from EComCalculatorAppui.h
00004  *  Part of  : EComCalculator
00005  *  Created  : 29/05/2006 by Forum Nokia
00006  *  Version  : 2.0
00007  *  Copyright: Nokia Corporation
00008  * ============================================================================
00009  */
00010 
00011 #ifndef __ECOMCALCULATORAPPUI_H__
00012 #define __ECOMCALCULATORAPPUI_H__
00013 
00014 #include <aknappui.h>
00015 
00016 class CEComCalculatorAppView;
00017 
00028 class CEComCalculatorAppUi : public CAknAppUi
00029     {
00030 public:
00031 
00039     void ConstructL();
00040 
00048     CEComCalculatorAppUi();
00049 
00050 
00056     ~CEComCalculatorAppUi();
00057 
00058 
00059 
00060 public: // from CAknAppUi
00061 
00069     void HandleCommandL(TInt aCommand);
00070 
00078     void HandleResourceChangeL(TInt aType);
00079 
00080 private: // Helper functions
00081 
00092     void CalculateL(TInt aCommand);
00093 
00118     TInt DoEComCalculationL(const TDesC8& aOperationName, TReal aA, TReal aB,
00119         TReal& aResult);
00120 
00131     void HandleEComInitializationErrorL(TInt aError,
00132         const TDesC8& aOperationName) const;
00133 
00141     void ShowNoteL(const TDesC& aMessage) const;
00142 
00143 private: // Members
00144 
00146     CEComCalculatorAppView* iAppView;
00147 
00148     };
00149 
00150 
00151 #endif // __ECOMCALCULATORAPPUI_H__

Generated by  doxygen 1.6.2