epoc32/include/mw/eikdpobs.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 1999 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
#ifndef __EIKDPOBS_H__
williamr@2
    20
#define __EIKDPOBS_H__
williamr@2
    21
williamr@2
    22
#include <eikfctry.h>
williamr@2
    23
williamr@2
    24
williamr@2
    25
/**
williamr@2
    26
 * The MEikDialogPageObserver class specifies an interface through which the behaviour of the pages of
williamr@2
    27
 * a dialog may be observed.
williamr@2
    28
 *
williamr@2
    29
 * @since ER5U
williamr@2
    30
 */
williamr@2
    31
class MEikDialogPageObserver
williamr@2
    32
	{
williamr@2
    33
/**
williamr@2
    34
 * It is necessary to know from which base class a control has been derived from
williamr@2
    35
 * in order to use the correct layout method.
williamr@2
    36
 * These are all the known form control base types.
williamr@2
    37
 */
williamr@2
    38
	public:
williamr@2
    39
		enum TFormControlTypes
williamr@2
    40
		{
williamr@2
    41
		EUnknownType,
williamr@2
    42
		EEdwinDerived,
williamr@2
    43
		EMfneDerived,
williamr@2
    44
		EPopfieldDerived,
williamr@2
    45
		ESecretEditorDerived,
williamr@2
    46
		ESliderDerived,
williamr@2
    47
		EColourSelectionGridDerived
williamr@2
    48
		};
williamr@2
    49
 
williamr@2
    50
    public:
williamr@2
    51
        enum TDialogPageObserverEvents
williamr@2
    52
            {
williamr@2
    53
            EDialogPageTapped
williamr@2
    54
            };
williamr@2
    55
 
williamr@2
    56
public:
williamr@2
    57
	/**
williamr@2
    58
	 * Prepares for focus transition from the current line e.g. to validate the
williamr@2
    59
	 * contents of the current control.
williamr@2
    60
	 */
williamr@2
    61
	virtual void PrepareForFocusTransitionL()=0;
williamr@2
    62
williamr@2
    63
	/**
williamr@2
    64
	 * Takes any action required when the active dialog page is changed to aPageId.
williamr@2
    65
	 */
williamr@2
    66
	virtual void PageChangedL(TInt aPageId)=0;
williamr@2
    67
williamr@2
    68
	/**
williamr@2
    69
	 * Takes any action required when the current line is changed to aControlId.
williamr@2
    70
	 */
williamr@2
    71
	virtual void LineChangedL(TInt aControlId)=0;
williamr@2
    72
williamr@2
    73
	/**
williamr@2
    74
	 * Creates a custom control of type aControlType and returns the control information for the custom control
williamr@2
    75
	 * which is created. Called when creating a line on the dialog page if the Eikon control factory does not
williamr@2
    76
	 * recognise the type aControlType.
williamr@2
    77
	 */
williamr@2
    78
	virtual SEikControlInfo CreateCustomControlL(TInt aControlType)=0;
williamr@2
    79
williamr@2
    80
	/**
williamr@2
    81
	 * ConvertCustomControlTypeToKnownControlType
williamr@2
    82
	 * Used for custom control, to provide a mapping for forms between custom controls
williamr@2
    83
	 * and the base types that the layout knows how to deal with.
williamr@2
    84
	 * For example an edwin derived custom control could return EEikCtEdwin
williamr@2
    85
	*/
williamr@2
    86
	virtual TFormControlTypes ConvertCustomControlTypeToBaseControlType(TInt aControlType)const =0 ;
williamr@2
    87
williamr@2
    88
	/**
williamr@2
    89
	 * Gets the custom auto value for the custom control aControl of type aControlType with return value
williamr@2
    90
	 * aReturnValue. This method is included in the interface to support deprecated legacy code only.
williamr@2
    91
	 */
williamr@2
    92
	virtual void GetCustomAutoValue(TAny* aReturnValue,TInt aControlType,const CCoeControl* aControl)=0;
williamr@2
    93
williamr@2
    94
	/**
williamr@2
    95
	 * Takes any action required when the dialog page event happens.
williamr@2
    96
	 */
williamr@2
    97
	virtual void HandleDialogPageEventL(TInt aEventID) = 0;
williamr@2
    98
	};
williamr@2
    99
williamr@2
   100
#endif