Public Member Functions | |
~CEComCalculatorAppView () | |
TInt | GetA (TReal &aResult) const |
TInt | GetB (TReal &aResult) const |
void | ShowResultL (const TDesC8 &aOperationName, TReal aValue) |
Static Public Member Functions | |
static CEComCalculatorAppView * | NewL (const TRect &aRect) |
Class: CEComCalculatorAppView
Description: An instance of this class is the Application View object for the EComCalculator example application. It shows two editboxes, where user can give in numbers. The view can also show the result, when some operation for the numbers has been performed.
Definition at line 48 of file EComCalculatorAppView.h.
CEComCalculatorAppView::~CEComCalculatorAppView | ( | ) |
Function: ~CEComCalculatorAppView Description: Destroy the object
Definition at line 123 of file EComCalculatorAppview.cpp.
CEComCalculatorAppView * CEComCalculatorAppView::NewL | ( | const TRect & | aRect | ) | [static] |
Function: NewL
Description: Create a CEComCalculatorAppView object, which will draw itself to aRect.
Param: aRect the rectangle this view will be drawn to
Returns: A pointer to the created instance of CEComCalculatorAppView
Definition at line 62 of file EComCalculatorAppview.cpp.
TInt CEComCalculatorAppView::GetA | ( | TReal & | aResult | ) | const |
Function: GetA
Description: Converts the text in iEdwinA to a TReal.
Param: aResult Result of conversion
Returns: KErrNone or one of the system-wide error codes.
Definition at line 243 of file EComCalculatorAppview.cpp.
TInt CEComCalculatorAppView::GetB | ( | TReal & | aResult | ) | const |
Function: GetB
Description: Converts the text in iEdwinB to a TReal.
Param: aResult Result of conversion
Returns: KErrNone or one of the system-wide error codes.
Definition at line 255 of file EComCalculatorAppview.cpp.
void CEComCalculatorAppView::ShowResultL | ( | const TDesC8 & | aOperationName, | |
TReal | aValue | |||
) |
Function: ShowResult Description: Shows the result of calculation operation. This will only update the iLabelResult according to given parameters. The format is aOperationName + ": " + aValue
Param: aOperationName String describing the operation which has been performed for the numbers A and B.
Param: aValue is the result of operation for A and B
Returns: KErrNone or one of the system-wide error codes.
Definition at line 267 of file EComCalculatorAppview.cpp.