|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Define inline functions of CCalcEditLine. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ================= MEMBER FUNCTIONS ======================= |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // TCalcEditLine::NumberString |
|
23 // Return string of operand |
|
24 // (other items were commented in a header). |
|
25 // --------------------------------------------------------- |
|
26 // |
|
27 inline const TPtrC TCalcEditLine::NumberString() const |
|
28 { |
|
29 return iNumber; |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------- |
|
33 // TCalcEditLine::Operator |
|
34 // Return type of operator |
|
35 // (other items were commented in a header). |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 inline TCalcEditLine::TCalcOperatorType TCalcEditLine::Operator() const |
|
39 { |
|
40 return iOperator; |
|
41 } |
|
42 |
|
43 |
|
44 // --------------------------------------------------------- |
|
45 // TCalcEditLine::SetOperator |
|
46 // This function exists to handle Add, Subtract, Multiply, Divide command. |
|
47 // (other items were commented in a header). |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 inline void TCalcEditLine::SetOperator |
|
51 (const TCalcOperatorType& aType) |
|
52 { |
|
53 iOperator = aType; |
|
54 } |
|
55 |
|
56 |
|
57 // End of File |