2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if !defined(__EIKEDWOB_H__)
20 #define __EIKEDWOB_H__
25 * Interface class describing the functionality expected of an observer
28 * Edwin observers are informed by the edwin whenever its content is
29 * changed, or whenever the user changes the cursor position.
31 * This class should be derived from by all observers of edwins.
33 class MEikEdwinObserver
37 * Events from a value editor.
41 /** Sent whenever the content of the edwin changes. */
43 /** Sent on receipt of a navigation command. */
46 * Sent whenever the text of the edwin changes. To observe
47 * actual changes in the contents of the editor this should
48 * be preferred to EEventFormatChanged.
51 /** Sent on receipt of a scroll event. */
53 /** Sent if you explicitly call edwin's SetTextL() */
58 * This pure virtual function is invoked by CEikEdwin to report an event
59 * to its observer. The observer may respond appropriately.
61 * @param aEdwin The originating edwin.
62 * @param aEventType The event being reported.
64 virtual void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType)=0;
68 * Interface to handle changes to an edwin's size.
70 class MEikEdwinSizeObserver
74 * Specifies the type of event reported to the edwin observer.
79 * Specifies a change in edwin size. When the edwin observer
80 * receives an event of this type, it handles it by making
81 * its view bigger or smaller according to the new edwin size.
87 * Handles a change in the edwin's size. If you implement this function,
88 * ensure it returns ETrue if you wish to redraw the edwin.
90 * @param aEdwin The edwin for which the size event is being handled.
91 * @param aEventType The event type.
92 * @param aDesirableEdwinSize The desired size for the edwin identified
94 * @return The return value depends on your implementation. Return
95 * ETrue if you wish to redraw the edwin. EFalse otherwise.
97 virtual TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize)=0;