williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __EIKDEF_H__ williamr@2: #define __EIKDEF_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: /** This is used in combination with a specified position to place a popout on williamr@2: the display. williamr@2: williamr@2: The TPopupTargetPosType enum identifies which corner of the popout williamr@2: will be placed in the given target position. The default is the top left corner. williamr@2: williamr@2: @publishedAll williamr@2: @released */ williamr@2: enum TPopupTargetPosType williamr@2: { williamr@2: /** Places the popout with the top left corner in the specified position. */ williamr@2: EPopupTargetTopLeft, williamr@2: /** Places the popout with the top right corner in the specified position. */ williamr@2: EPopupTargetTopRight, williamr@2: /** Places the popout with the bottom left corner in the specified position. */ williamr@2: EPopupTargetBottomLeft, williamr@2: /** Places the popout with the bottom right corner in the specified position. */ williamr@2: EPopupTargetBottomRight williamr@2: }; williamr@2: williamr@2: williamr@2: /** Defines the printer port settings. This is used by GUI print dialogs.*/ williamr@2: enum TEikPortFlag williamr@2: { williamr@2: /** Printing is via a serial port.*/ williamr@2: ESerialPort = 0x01, williamr@2: /** Printing is via a parallel port.*/ williamr@2: EParallelPort = 0x02, williamr@2: /** Printing is via infra red.*/ williamr@2: EIrdaPort = 0x04, williamr@2: /** Printing is to a file. */ williamr@2: EFilePort = 0x08, williamr@2: /** Printing is via a PC.*/ williamr@2: EViaPCPort = 0x10 williamr@2: }; williamr@2: williamr@2: /** Macro to allow easy access to the CEikonEnv instance. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define iEikonEnv (STATIC_CAST(CEikonEnv*,iCoeEnv)) williamr@2: williamr@2: /** Defines the border style for an editable control. williamr@2: williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: #define KEikEditableControlBorder TGulBorder::EShallowSunken williamr@2: williamr@2: /** Name of the default bitmap store. williamr@2: williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: _LIT(KEikDefaultAppBitmapStore,"*"); williamr@2: williamr@2: /** Uid of the KEikMessageColorSchemeChange message. williamr@2: williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KUidValueEikColorSchemeChangeEvent =0x10006956; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TInt KEikCustomColorsArrayValue =0x100057C2; williamr@2: williamr@2: /** Indicates that all windows should appear faded. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageFadeAllWindows =0x100056C2; williamr@2: williamr@2: /** Indicates that all windows should appear unfaded. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageUnfadeWindows =0x100056C3; williamr@2: williamr@2: /** Indicates that the colour scheme has changed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageColorSchemeChange =KUidValueCoeColorSchemeChangeEvent; williamr@2: williamr@2: /** Indicates that the color scheme has changed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KEikColorResourceChange KEikMessageColorSchemeChange // for source compatibility williamr@2: williamr@2: /** Indicates that the zoom level has changed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageZoomChange =KUidValueCoeZoomChangeEvent; williamr@2: williamr@2: /** Indicates that a font has changed. Controls should ensure they are using williamr@2: the right font after receiving this message. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageFontChange = KUidValueCoeFontChangeEvent; williamr@2: williamr@2: /** Indicates that the state of the virtual cursor has changed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageVirtualCursorStateChange =0x10005D0A; williamr@2: williamr@2: /** Indicates that caps lock key has been pressed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageCapsLock =0x100048F9; williamr@2: williamr@2: /** Indicates that the application should be ready to save any data that needs saving. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessagePrepareForSave =0x100069FD; williamr@2: williamr@2: /** Indicates that the level of embedding of the application has changed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikMessageEmbedLevelChange =0x1000A4AA; williamr@2: williamr@2: /** Passed immediately after completion of the call to CCoeEnv::SetAppUi() williamr@2: when aNewAppUi has become current AppUi. This happens during the destruction of the embedded williamr@2: AppUi. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikHasBecomeCurrentAppUiWhileEmbeddedAppUiDeletes = 0x10207F75; williamr@2: williamr@2: /** Passed immediately before CEikAppUiFactory::CreateEmbeddedL() williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikNotifyPreCreateEmbeddedL = 0x10207F67; williamr@2: williamr@2: /** Passed immediately after CEikAppUiFactory::CreateEmbeddedL() williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikNotifyPostCreateEmbeddedL = 0x10207F65; williamr@2: williamr@2: /** Passed immediately after CCoeAppUi::ConstructL() williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KEikPostCoeAppUiConstructL = 0x10207F66; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: _LIT8(KDebugStart, "-DebugMemFail:"); williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KEikDefaultCursorWidth=2; williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KTimeBetweenClicks=1000000; // in Microseconds williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KDoubleClickDistance=10; williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KKeyboardRepeatRate=50000; williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KKeyboardRepeatInitialDelay=800000; williamr@2: williamr@2: /** Resource id of the query dialog. williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KEikResIdQueryDialog =0; williamr@2: williamr@2: /** Resource id of the info dialog. williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KEikResIdInfoDialog =1; williamr@2: williamr@2: /** williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: const TInt KEikErrorResolverMaxTextLength = 256; williamr@2: williamr@2: /** williamr@2: @internalTechnology williamr@2: */ williamr@2: #define COMPARE_BOOLS(a,b) (((a) && (b)) || (!(a) && !(b))) williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #if defined(_DEBUG) williamr@2: #define __UHEAP_CHECK_INTEGRITY User::Heap().Check() williamr@2: #else williamr@2: #define __UHEAP_CHECK_INTEGRITY williamr@2: #endif williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_FIRST 32 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_LAST 39 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_SIMPLE 32 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_DIALOG_LOAD 33 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_APP_LAUNCH 34 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_CLOCK 35 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_CALENDER 35 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_LIBS_LOAD 36 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define PROFILE_POINT_EIKON_ADD_RES 37 williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: #define KEikEikonBitmapStore KNullDesC williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUid KSystemIniFileUid = {0x1000010C}; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TInt KLastSystemWideErrCode = KErrCommsBreak; williamr@2: williamr@2: williamr@2: #endif // __EIKDEF_H__