contextframework/cfwplugins/displaysourceplugin/inc/displaysourcecontextdef.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Display source context definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef DISPLAYSOURCECONTEXTDEF_H
       
    21 #define DISPLAYSOURCECONTEXTDEF_H
       
    22 
       
    23 #include <cfdefinitions.h>
       
    24 
       
    25 // Context source: 'Device'
       
    26 _LIT( KDisplaySource, "Device" );
       
    27 
       
    28 //-----------------------------------------------------------------------------
       
    29 // Display.Status.Light
       
    30 //
       
    31 // Listens P&S key related to display statuses.
       
    32 //-----------------------------------------------------------------------------
       
    33 //
       
    34 // Type definition
       
    35 _LIT( KDisplayStatusType, "Display.Status.Light" );
       
    36 
       
    37 // Value definitions
       
    38 const TInt KDisplayStatusTypeValueCount = 4;
       
    39 _LIT_CONTEXT_VALUES( KDisplayStatusTypeValues ) =
       
    40     {
       
    41     _S( "Unknown" ),
       
    42     _S( "On" ),
       
    43     _S( "Off" ),
       
    44     _S( "Blinking" )
       
    45     };
       
    46 
       
    47 // Security definition
       
    48 _LIT_SECURITY_POLICY_C2( KDisplayStatusTypeSec,
       
    49     ECapabilityReadDeviceData,
       
    50     ECapabilityWriteDeviceData );
       
    51 
       
    52 //-----------------------------------------------------------------------------
       
    53 // Display.UI.Layout
       
    54 //
       
    55 // Describes the current UI layout.
       
    56 //-----------------------------------------------------------------------------
       
    57 //
       
    58 // Type definition
       
    59 _LIT( KDisplayUILayoutType, "Display.UI.Layout" );
       
    60 
       
    61 // Value definitions
       
    62 _LIT_CONTEXT_VALUES( KDisplayUILayoutValues ) =
       
    63     {
       
    64     _S( "Unknown" ),
       
    65     _S( "Portrait" ),
       
    66     _S( "Landscape" )
       
    67     };
       
    68 
       
    69 enum TDisplayUILayoutValues
       
    70     {
       
    71     EUILayoutValueUnknown,
       
    72     EUILayoutValuePortrait,
       
    73     EUILayoutValueLandscape
       
    74     };
       
    75 
       
    76 // Security definition
       
    77 _LIT_SECURITY_POLICY_C1( KDisplayUILayoutSec,
       
    78     ECapabilityReadDeviceData );
       
    79 
       
    80 //-----------------------------------------------------------------------------
       
    81 // Display.UI.Rotation
       
    82 //
       
    83 // Describes the current UI rotation.
       
    84 //-----------------------------------------------------------------------------
       
    85 //
       
    86 // Type definition
       
    87 _LIT( KDisplayUIRotationType, "Display.UI.Rotation" );
       
    88 
       
    89 // Value definitions
       
    90 // @see CFbsBitGc::TGraphicsOrientation for value enumeration
       
    91 _LIT_CONTEXT_VALUES( KDisplayUIRotationValues ) =
       
    92     {
       
    93     _S( "Normal" ),
       
    94     _S( "Rotated90" ),
       
    95     _S( "Rotated180" ),
       
    96     _S( "Rotated270" ),
       
    97     };
       
    98 
       
    99 // Security definition
       
   100 _LIT_SECURITY_POLICY_C1( KDisplayUIRotationSec,
       
   101     ECapabilityReadDeviceData );
       
   102 
       
   103 #endif // DISPLAYSOURCECONTEXTDEF_H