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 "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".
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() */
55 EEventChinesePopupOpen,
56 EEventChinesePopupClose,
57 EEventPartialScreenEnable,
58 EEventPartialScreenDisable
62 * This pure virtual function is invoked by CEikEdwin to report an event
63 * to its observer. The observer may respond appropriately.
65 * @param aEdwin The originating edwin.
66 * @param aEventType The event being reported.
68 virtual void HandleEdwinEventL(CEikEdwin* aEdwin,TEdwinEvent aEventType)=0;
72 * Interface to handle changes to an edwin's size.
74 class MEikEdwinSizeObserver
78 * Specifies the type of event reported to the edwin observer.
83 * Specifies a change in edwin size. When the edwin observer
84 * receives an event of this type, it handles it by making
85 * its view bigger or smaller according to the new edwin size.
91 * Handles a change in the edwin's size. If you implement this function,
92 * ensure it returns ETrue if you wish to redraw the edwin.
94 * @param aEdwin The edwin for which the size event is being handled.
95 * @param aEventType The event type.
96 * @param aDesirableEdwinSize The desired size for the edwin identified
98 * @return The return value depends on your implementation. Return
99 * ETrue if you wish to redraw the edwin. EFalse otherwise.
101 virtual TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize)=0;