epoc32/include/mw/AknDef.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/AknDef.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,165 @@
     1.4 +/*
     1.5 +* Copyright (c) 2002-2006 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 "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:  Definitions for AVKON's window server and
    1.18 +*                resource change messages.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#ifndef AKNDEF_H
    1.24 +#define AKNDEF_H
    1.25 +
    1.26 +#include <AknDef.hrh>
    1.27 +#include <e32std.h>
    1.28 +
    1.29 +// forward declarations
    1.30 +class TVwsViewId;
    1.31 +
    1.32 +/**
    1.33 + * Resource change message that is passed to applications
    1.34 + * when all the windows become faded or unfaded.
    1.35 + */
    1.36 +const TInt KEikMessageWindowsFadeChange = 0x10006890;
    1.37 +
    1.38 +/**
    1.39 + * Resource change message indicating a change of state to edit mode.
    1.40 + * This message is used by @c CEikCaptionedControl to handle situations
    1.41 + * where the control becomes editable.
    1.42 + */
    1.43 +const TInt KEikMessageCaptionedControlEditableStateChange = 0x10008E99;
    1.44 +
    1.45 +/**
    1.46 + * Resource change message indicating a change of state to view mode.
    1.47 + * This message is used by @c CEikCaptionedControl to handle situations
    1.48 + * where the control becomes non-editable.
    1.49 + */
    1.50 +const TInt KEikMessageCaptionedControlNotEditableStateChange = 0x10008E9A;
    1.51 +
    1.52 +/**
    1.53 + * Resource change message indicating a change of state to edit mode with graphic.
    1.54 + * This message is used by popup fields to handle situations where the
    1.55 + * control becomes editable with graphic.
    1.56 + */
    1.57 +const TInt KEikMessageCaptionedControlEditableStateChangeWideWithGraphic = 0x101F5FBA;
    1.58 +
    1.59 +/**
    1.60 + * Resource change message indicating a change of state to edit mode without graphic.
    1.61 + * This message is used by popup fields to handle situations where the
    1.62 + * control becomes editable without graphic.
    1.63 + */
    1.64 +const TInt KEikMessageCaptionedControlEditableStateChangeWideWithoutGraphic = 0x101F5FBB;
    1.65 +
    1.66 +/**
    1.67 + * Resource change message indicating a change of state to view mode with graphic.
    1.68 + * This message is used by popup fields to handle situations where the
    1.69 + * control becomes non-editable with graphic.
    1.70 + */
    1.71 +const TInt KEikMessageCaptionedControlNotEditableStateChangeWideWithGraphic = 0x101F5FBC;
    1.72 +
    1.73 +/**
    1.74 + * Resource change message indicating a change of state to view mode without graphic.
    1.75 + * This message is used by popup fields to handle situations where the
    1.76 + * control becomes non-editable without graphic.
    1.77 + */
    1.78 +const TInt KEikMessageCaptionedControlNotEditableStateChangeWideWithoutGraphic = 0x101F5FBD;
    1.79 +
    1.80 +/**
    1.81 + * Window server event for clearing partial foreground state.
    1.82 + *
    1.83 + * @internal
    1.84 + */
    1.85 +const TInt KEikClearPartialForegroundState = 0x101f54f4;
    1.86 +
    1.87 +/**
    1.88 + * Window server event for partial foreground state.
    1.89 + *
    1.90 + * @internal
    1.91 + */
    1.92 +const TInt KEikPartialForeground = 0x101f6aab;
    1.93 +
    1.94 +/** Resource change message used to inform applications of layout change. */
    1.95 +const TInt KEikDynamicLayoutVariantSwitch = 0x101F8121;
    1.96 +
    1.97 +/** @deprecated */
    1.98 +const TInt KEikDynamicLayoutVariantSwitch_APAC = 0x101F8124;
    1.99 +
   1.100 +/** Resource change message that is sent by FEP when the input language changes. */
   1.101 +const TInt KEikInputLanguageChange = 0x101F8519;
   1.102 +
   1.103 +/** The application UID and the view UID of the Application Shell */
   1.104 +#define KAknApplicationShellViewId TVwsViewId(TUid::Uid(0x101F4CD2), TUid::Uid(0x00000001))
   1.105 +
   1.106 +/**
   1.107 + * Window server event used when layout changes. This event is not passed to applications,
   1.108 + * they should use the @c KEikDynamicLayoutVariantSwitch event instead.
   1.109 + *
   1.110 + * @internal
   1.111 + */
   1.112 +const TInt KAknHardwareLayoutSwitch = 0x10202672;
   1.113 +
   1.114 +/** @deprecated */
   1.115 +const TInt KAknDelayedLayoutSwitch = 0x102797FD;
   1.116 +
   1.117 +/** Window server event used to inform applications about change in local zoom setting. */
   1.118 +const TInt KAknLocalZoomLayoutSwitch = 0x10281FC1;
   1.119 +
   1.120 +/**
   1.121 + * Window server event used to inform applications that a new ILD 
   1.122 + * (Independent Layout Delivery) layout DLL has been installed. 
   1.123 + * This event is not passed to applications, they should use 
   1.124 + * the @c KEikDynamicLayoutVariantSwitch event instead.
   1.125 + *
   1.126 + * @internal
   1.127 + */
   1.128 +const TInt KAknILDInstallationLayoutSwitch = 0x1028654F;
   1.129 +
   1.130 +/** @deprecated */
   1.131 +const TInt KAknAppOomMonitor_FreeRam = 0x10282304;
   1.132 +
   1.133 +/** @deprecated */
   1.134 +const TInt KAknAppOomMonitor_MemoryGood = 0x10282305;
   1.135 +
   1.136 +/**
   1.137 + * Resource change message used to inform a window group that it has
   1.138 + * gained full or partial foreground.
   1.139 + */
   1.140 +const TInt KAknFullOrPartialForegroundGained = 0x10281F36;
   1.141 +
   1.142 +/**
   1.143 + * Resource change message used to inform a window group that it has
   1.144 + * lost full or partial foreground.
   1.145 + */
   1.146 +const TInt KAknFullOrPartialForegroundLost = 0x10281F37;
   1.147 +
   1.148 +/**
   1.149 + * Instruct an app to either exit or hide itself, according to its configuration
   1.150 + */
   1.151 +const TInt KAknShutOrHideApp = 0x10285A1D;
   1.152 +
   1.153 + 
   1.154 +namespace AknDef
   1.155 +    {
   1.156 +    /**
   1.157 +     * Returns the application UID and the view UID of the currently active idle state
   1.158 +     * application in form of a @c TVwsViewId object. Alternatives 
   1.159 +     * include Phone application and Idle application.
   1.160 +     *
   1.161 +     * @since S60 2.8
   1.162 +     * @param[out] aViewId The view uid of currently active idle state application.
   1.163 +     * @return @c KErrNone, if succesful
   1.164 +     */
   1.165 +    IMPORT_C TInt GetPhoneIdleViewId(TVwsViewId& aViewId);
   1.166 +    }
   1.167 +
   1.168 +#endif // AKNDEF_H