epoc32/include/coedef.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/coedef.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/coedef.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,138 @@
     1.4 -coedef.h
     1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#ifndef __COEDEF_H__
    1.21 +#define __COEDEF_H__
    1.22 +
    1.23 +#include <e32std.h> 
    1.24 +#include <guldef.h> // only requried for limited source compatability with releases prior to 250
    1.25 +
    1.26 +const TInt KCoeCustomColorsArrayValue=0x100057C2;
    1.27 +const TInt KCoeColorGray4=0x19bd6002;
    1.28 +const TInt KCoeColorColor16=0x19bd6003;
    1.29 +const TInt ECoeResourceSignatureValue=4;
    1.30 +
    1.31 +/** Event handling flags. 
    1.32 +
    1.33 +These should be returned by CCoeControl::OfferKeyEventL() to indicate whether 
    1.34 +or not a key event was processed by the control. 
    1.35 +
    1.36 +@publishedAll
    1.37 +@released */
    1.38 +enum TKeyResponse
    1.39 +	{
    1.40 +	/** The key event was not handled. */
    1.41 +	EKeyWasNotConsumed,
    1.42 +	/** The key event was handled. */
    1.43 +	EKeyWasConsumed
    1.44 +	};
    1.45 +
    1.46 +/** Control redraw flags. 
    1.47 +
    1.48 +Passed to CCoeControl::SetFocus() to indicate the requirements for control 
    1.49 +redrawing. 
    1.50 +
    1.51 +@publishedAll
    1.52 +@released */
    1.53 +enum TDrawNow
    1.54 +	{
    1.55 +	/** Redraw of the control is not required immediately. */
    1.56 +	ENoDrawNow,
    1.57 +	/** Redraw control immediately. */
    1.58 +	EDrawNow
    1.59 +	};
    1.60 +
    1.61 +/** Window priority values. 
    1.62 +
    1.63 +These are passed in the aOrdinalPriority argument to RWindowTreeNode::SetOrdinalPosition(). 
    1.64 +
    1.65 +@publishedAll
    1.66 +@released */
    1.67 +enum TCoeWinPriority
    1.68 +	{
    1.69 +	/** -1000 */
    1.70 +	ECoeWinPriorityNeverAtFront		=-1000,
    1.71 +	/** -750 */
    1.72 +	ECoeWinPriorityLow				=-750,
    1.73 +	/** 0 */
    1.74 +	ECoeWinPriorityNormal			=0,
    1.75 +	/** 500 */
    1.76 +	ECoeWinPriorityMedium			=500,
    1.77 +	/** 750 */
    1.78 +	ECoeWinPriorityHigh				=750,
    1.79 +	/** 900 */
    1.80 +	ECoeWinPriorityFep				=900,
    1.81 +	/** 1000 */
    1.82 +	ECoeWinPriorityAlwaysAtFront	=1000
    1.83 +	};
    1.84 +
    1.85 +/** The message UID sent when a colour scheme change event occurs.
    1.86 +
    1.87 +@internalTechnology */
    1.88 +const TInt KUidValueCoeColorSchemeChangeEvent	=0x100056C4;
    1.89 +const TInt KUidValueCoeZoomChangeEvent          =0x100057C3;
    1.90 +const TInt KUidValueCoeFontChangeEvent          =0x100057C4;
    1.91 +
    1.92 +/** @internalTechnology */
    1.93 +const TUint KUidFepFrameworkRepository=0x10272618;
    1.94 +
    1.95 +/** @internalTechnology */
    1.96 +enum // key-masks and keys for the "KUidFepFrameworkRepository" repository
    1.97 +	{
    1.98 +	ERepositoryKeyMask_DefaultSetting	=0x00001000,
    1.99 +	ERepositoryKeyMask_DynamicSetting	=0x00002000,
   1.100 +
   1.101 +	ERepositoryKeyMask_FepId			=0x00000001,
   1.102 +	ERepositoryKeyMask_OnState			=0x00000002,
   1.103 +	ERepositoryKeyMask_OnKeyData		=0x00000004,
   1.104 +	ERepositoryKeyMask_OffKeyData		=0x00000008,
   1.105 +
   1.106 +	ERepositoryKey_DefaultFepId			=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_FepId,
   1.107 +	ERepositoryKey_DefaultOnState		=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnState,
   1.108 +	ERepositoryKey_DefaultOnKeyData		=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnKeyData,
   1.109 +	ERepositoryKey_DefaultOffKeyData	=ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OffKeyData,
   1.110 +
   1.111 +	ERepositoryKey_DynamicFepId			=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_FepId,
   1.112 +	ERepositoryKey_DynamicOnState		=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnState,
   1.113 +	ERepositoryKey_DynamicOnKeyData		=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnKeyData,
   1.114 +	ERepositoryKey_DynamicOffKeyData	=ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OffKeyData
   1.115 +	};
   1.116 +
   1.117 +/** @internalTechnology */
   1.118 +#if defined(_DEBUG)
   1.119 +#define __DEBUG_CHECK_HEAP_INTEGRITY User::Heap().Check()
   1.120 +#else
   1.121 +#define __DEBUG_CHECK_HEAP_INTEGRITY
   1.122 +#endif
   1.123 +
   1.124 +/** Control key modifier.
   1.125 +
   1.126 +Key codes get changed when the Ctrl key modifier is pressed at the same time as the key . 
   1.127 +The CTRL macro is used to shift the key character appropriately.
   1.128 +
   1.129 +Note: this is not an inline function since that can't be used as the case of a switch 
   1.130 +statement.
   1.131 + 
   1.132 +@publishedAll
   1.133 +@released */
   1.134 +#define CTRL(x) ((x)-'a'+1)
   1.135 +
   1.136 +/** Constant that represents all standard keyboard modifier keys.
   1.137 +
   1.138 +@publishedAll
   1.139 +@released */
   1.140 +#define EAllStdModifiers (EModifierFunc|EModifierCtrl|EModifierShift)
   1.141 +
   1.142 +#endif	// __COEDEF_H__