equal
deleted
inserted
replaced
51 * @param aViewCommandHandle: Handle to the PhoneUIView. |
51 * @param aViewCommandHandle: Handle to the PhoneUIView. |
52 * @param aCustomization: Handle to customization. |
52 * @param aCustomization: Handle to customization. |
53 * @param aCbaManager: Handle to cphonecbamanager. |
53 * @param aCbaManager: Handle to cphonecbamanager. |
54 * @return CPhoneNumberEntryManager* object |
54 * @return CPhoneNumberEntryManager* object |
55 */ |
55 */ |
56 static CPhoneNumberEntryManager* CPhoneNumberEntryManager::NewL( |
56 static CPhoneNumberEntryManager* NewL( |
57 CPhoneState* aState, |
57 CPhoneState* aState, |
58 MPhoneViewCommandHandle& aViewCommandHandle, |
58 MPhoneViewCommandHandle& aViewCommandHandle, |
59 MPhoneStateMachine& aStateMachine, |
59 MPhoneStateMachine& aStateMachine, |
60 MPhoneCustomization* aCustomization, |
60 MPhoneCustomization* aCustomization, |
61 CPhoneCbaManager& aCbaManager ); |
61 CPhoneCbaManager& aCbaManager ); |
69 /** |
69 /** |
70 * Stores the number entry content to the cache |
70 * Stores the number entry content to the cache |
71 */ |
71 */ |
72 void StoreNumberEntryContentL(); |
72 void StoreNumberEntryContentL(); |
73 |
73 |
74 /** |
|
75 * Restores the number entry content from the cache |
|
76 */ |
|
77 void RestoreNumberEntryContentL(); |
|
78 |
74 |
79 /** |
75 /** |
80 * Check if number entry content is stored |
76 * Check if number entry content is stored |
81 * @param None |
77 * @param None |
82 * @return boolean value indicating that number entry content is stored |
78 * @return boolean value indicating that number entry content is stored |
87 * Clears the number entry content cache |
83 * Clears the number entry content cache |
88 */ |
84 */ |
89 void ClearNumberEntryContentCache(); |
85 void ClearNumberEntryContentCache(); |
90 |
86 |
91 /** |
87 /** |
92 * Creates number entry |
|
93 */ |
|
94 void CreateNumberEntryL(); |
|
95 |
|
96 /** |
|
97 * Set Number Entry visibility. |
88 * Set Number Entry visibility. |
98 * @param aVisible ETrue if numberentry is wanted to be shown |
89 * @param aVisible ETrue if numberentry is wanted to be shown |
99 * (Note ETrue will set NE CBA's) |
90 * (Note ETrue will set NE CBA's) |
100 * EFalse if numberentry isnt wanted to be shown |
91 * EFalse if numberentry isnt wanted to be shown |
101 * (Note EFalse doesnt affect to CBA's) |
92 * (Note EFalse doesnt affect to CBA's) |
102 */ |
93 */ |
103 void SetNumberEntryVisibilityL( TPhoneCmdParamBoolean aVisible ); |
94 void SetNumberEntryVisibilityL( TPhoneCmdParamBoolean aVisible ); |
104 |
|
105 /** |
|
106 * Passes create number entry command forward if NE can be created. |
|
107 */ |
|
108 void HandleCreateNumberEntryL(); |
|
109 |
95 |
110 /** |
96 /** |
111 * Check if number entry is used |
97 * Check if number entry is used |
112 * @return boolean value indicating that number entry is used |
98 * @return boolean value indicating that number entry is used |
113 */ |
99 */ |
123 * Returns phone number from the phone number entry. |
109 * Returns phone number from the phone number entry. |
124 * @return Phone number |
110 * @return Phone number |
125 */ |
111 */ |
126 HBufC* PhoneNumberFromEntryLC() const; |
112 HBufC* PhoneNumberFromEntryLC() const; |
127 |
113 |
128 /** |
|
129 * Informs phoneengine that phone number has been edited i.e. phonenumber parser is run |
|
130 */ |
|
131 void HandleNumberEntryEdited(); |
|
132 |
|
133 /** |
|
134 * Handles key events in situations when there exists a number entry. |
|
135 * In this case number entry may be visible or hidden. |
|
136 * @param aKeyEvent - key event |
|
137 * @param aEventCode - event code |
|
138 */ |
|
139 void KeyEventForExistingNumberEntryL( |
|
140 const TKeyEvent& aKeyEvent, |
|
141 TEventCode aEventCode ); |
|
142 |
114 |
143 /** |
115 /** |
144 * Returns ETrue if alphanumeric characters are supported. |
116 * Returns ETrue if alphanumeric characters are supported. |
145 * @param aKeyEvent Key event. |
117 * @param aKeyEvent Key event. |
146 * @return ETrue if alphanumeric chars are supported. |
118 * @return ETrue if alphanumeric chars are supported. |
155 |
127 |
156 /** |
128 /** |
157 * Internal number entry handling methods. |
129 * Internal number entry handling methods. |
158 */ |
130 */ |
159 void NumberEntryClearL() const; |
131 void NumberEntryClearL() const; |
160 |
|
161 /** |
|
162 * Returns ETrue if NumberEntry is in numeric mode. |
|
163 */ |
|
164 TBool NumberEntryInNumericModeL(); |
|
165 |
|
166 /** |
|
167 * Toggles alpha numeric mode. |
|
168 */ |
|
169 TBool NumberEntryToggleAlphaNumericModeL(); |
|
170 |
132 |
171 private: |
133 private: |
172 |
134 |
173 /** |
135 /** |
174 * Checks is given key contains numeric charaters or if customization is used |
136 * Checks is given key contains numeric charaters or if customization is used |