contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/ApplicationStateSourceContextDef.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  Application state source context definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef APPLICATIONSTATESOURCECONTEXTDEF_H
       
    21 #define APPLICATIONSTATESOURCECONTEXTDEF_H
       
    22 
       
    23 #include <cfdefinitions.h>
       
    24 
       
    25 /**
       
    26 * Source
       
    27 */
       
    28 _LIT( KApplicationStateSource, "Application.State" );
       
    29 
       
    30 /**
       
    31 * Type
       
    32 */
       
    33 _LIT( KApplicationStateForegroundApplicationType,     "Foreground.Application" );
       
    34 _LIT( KApplicationStateForegroundApplicationViewType, "Foreground.View" );
       
    35 _LIT( KApplicationStateBackgroundApplicationType,     "Background.Application" );
       
    36 
       
    37 /**
       
    38 * Default value
       
    39 */
       
    40 _LIT( KApplicationStateDefaultValue, "Other" );
       
    41 
       
    42 /**
       
    43  * Description:
       
    44  *  Describes the foreground application orientation context.
       
    45  * 
       
    46  * Source:
       
    47  *  Application.State
       
    48  * 
       
    49  * Type:
       
    50  *  Foreground.Application.Orientation
       
    51  * 
       
    52  * Values:
       
    53  *  Portait
       
    54  *  Landscape
       
    55  *  Automatic
       
    56  * 
       
    57  * Capabilities:
       
    58  *  ECapabilitySwEvent
       
    59  */
       
    60 
       
    61 // Type
       
    62 _LIT( KFgApplicationOrientation, "Foreground.Application.Orientation" );
       
    63 
       
    64 // Values
       
    65 _LIT_CONTEXT_VALUES( KFgApplicationOrientationVal ) =
       
    66     {
       
    67     _S( "Portrait" ),
       
    68     _S( "Landscape" ),
       
    69     _S( "Automatic" )
       
    70     };
       
    71 
       
    72 enum TFgApplicationOrientationVal
       
    73     {
       
    74     EFgApplicationOrientationPortrait,
       
    75     EFgApplicationOrientationLandscape,
       
    76     EFgApplicationOrientationAutomatic
       
    77     };
       
    78 
       
    79 // Security
       
    80 _LIT_SECURITY_POLICY_C1( KFgApplicationOrientationSec, ECapabilitySwEvent );
       
    81 
       
    82 #endif // APPLICATIONSTATESOURCECONTEXTDEF_H