contextframework/cfwplugins/displaysourceplugin/inc/displaysourcecontextdef.h
author William Roberts <williamr@symbian.org>
Fri, 23 Apr 2010 14:37:17 +0100
branchRCL_3
changeset 22 c82a39b81a38
parent 0 2e3d3ce01487
permissions -rw-r--r--
Rework addition of Symbian splash screen to reduce the source impact (uses SVG from Bug 2414) Notes: by using the OPTION SOURCEDIR parameter in the mifconv extension instructions, I can arrange to use the same source file name in sfimage, without having to export over the original Nokia file. This means that the name inside splashscreen.mbg is the same, which removes the need for the conditional compilation in SplashScreen.cpp, and gets rid of sf_splashscreen.mmp.

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Display source context definition.
*
*/



#ifndef DISPLAYSOURCECONTEXTDEF_H
#define DISPLAYSOURCECONTEXTDEF_H

#include <cfdefinitions.h>

// Context source: 'Device'
_LIT( KDisplaySource, "Device" );

//-----------------------------------------------------------------------------
// Display.Status.Light
//
// Listens P&S key related to display statuses.
//-----------------------------------------------------------------------------
//
// Type definition
_LIT( KDisplayStatusType, "Display.Status.Light" );

// Value definitions
const TInt KDisplayStatusTypeValueCount = 4;
_LIT_CONTEXT_VALUES( KDisplayStatusTypeValues ) =
    {
    _S( "Unknown" ),
    _S( "On" ),
    _S( "Off" ),
    _S( "Blinking" )
    };

// Security definition
_LIT_SECURITY_POLICY_C2( KDisplayStatusTypeSec,
    ECapabilityReadDeviceData,
    ECapabilityWriteDeviceData );

//-----------------------------------------------------------------------------
// Display.UI.Layout
//
// Describes the current UI layout.
//-----------------------------------------------------------------------------
//
// Type definition
_LIT( KDisplayUILayoutType, "Display.UI.Layout" );

// Value definitions
_LIT_CONTEXT_VALUES( KDisplayUILayoutValues ) =
    {
    _S( "Unknown" ),
    _S( "Portrait" ),
    _S( "Landscape" )
    };

enum TDisplayUILayoutValues
    {
    EUILayoutValueUnknown,
    EUILayoutValuePortrait,
    EUILayoutValueLandscape
    };

// Security definition
_LIT_SECURITY_POLICY_C1( KDisplayUILayoutSec,
    ECapabilityReadDeviceData );

//-----------------------------------------------------------------------------
// Display.UI.Rotation
//
// Describes the current UI rotation.
//-----------------------------------------------------------------------------
//
// Type definition
_LIT( KDisplayUIRotationType, "Display.UI.Rotation" );

// Value definitions
// @see CFbsBitGc::TGraphicsOrientation for value enumeration
_LIT_CONTEXT_VALUES( KDisplayUIRotationValues ) =
    {
    _S( "Normal" ),
    _S( "Rotated90" ),
    _S( "Rotated180" ),
    _S( "Rotated270" ),
    };

// Security definition
_LIT_SECURITY_POLICY_C1( KDisplayUIRotationSec,
    ECapabilityReadDeviceData );

#endif // DISPLAYSOURCECONTEXTDEF_H