epoc32/include/mw/aknedstsobs.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/aknedstsobs.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/aknedstsobs.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,74 @@
     1.4 -aknedstsobs.h
     1.5 +/*
     1.6 +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Interface for handling control's state change.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +
    1.24 +#if !defined(__AKNEDSTSOBS_H__)
    1.25 +#define __AKNEDSTSOBS_H__
    1.26 +
    1.27 +// FORWARD DECLERATIONS
    1.28 +class CAknEdwinState;
    1.29 +
    1.30 +
    1.31 +// CLASS DECLERATION
    1.32 +/**
    1.33 +* Interface for handling control's state change.
    1.34 +* 
    1.35 +* @since Series 60 0.9
    1.36 +*/
    1.37 +class MAknEdStateObserver
    1.38 +	{
    1.39 +public:
    1.40 +	/** 
    1.41 +    * Observer event types.
    1.42 +    */
    1.43 +	enum EAknEdwinStateEvent
    1.44 +        {
    1.45 +        /** The state has been updated */ 
    1.46 +        EAknEdwinStateEventStateUpdate, 
    1.47 +        /** The input mode has been updated */     
    1.48 +        EAknEdwinStateInputModeUpdate,
    1.49 +        /** The case mode has been updated */   
    1.50 +        EAknEdwinStateCaseModeUpdate,
    1.51 +        /** The local language has been updated */    
    1.52 +        EAknEdwinStateLocalLanguageUpdate, 
    1.53 +        /** The flags have been updated */  
    1.54 +        EAknEdwinStateFlagsUpdate,
    1.55 +        /** The edwin state needs to be sync'ed */
    1.56 +        EAknSyncEdwinState,
    1.57 +        /** Cursor position has changed in editor */
    1.58 +        EAknCursorPositionChanged,
    1.59 +        /** VKB/HW activation request */
    1.60 +        EAknActivatePenInputRequest,
    1.61 +        /** Prompt Text has changed */
    1.62 +        EAknEdwinStatePromptUpdate
    1.63 +        };
    1.64 +public:
    1.65 +	/**
    1.66 +    * Handles an state event from a observed control.
    1.67 +    * Pure virtual function that is called when a control, for which this
    1.68 +    * control is the observer, calls @c ReportAknedstateEventL().
    1.69 +    * It should be implemented by the observer control and should handle all
    1.70 +    * state events sent by controls it observed. 
    1.71 +    * @param aAknEdwinState The control that sent the event.
    1.72 +    * @param aEventType The event type defined in @c EAknEdwinStateEvent.
    1.73 +    */
    1.74 +	virtual void HandleAknEdwinStateEventL(CAknEdwinState* aAknEdwinState,
    1.75 +		EAknEdwinStateEvent aEventType) = 0;
    1.76 +	};
    1.77 +
    1.78 +#endif