sensorservices/orientationssy/inc/OrientationConfiguration.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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:  Channel class of Orientation SSY
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ORIENTATIONCONFIGURATION_H
       
    20 #define ORIENTATIONCONFIGURATION_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <sensrvchanneldatatypes.h>
       
    26 #include <sensrvorientationsensor.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TAngleAndTimerConfig;
       
    30 
       
    31 // CONSTANTS
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  TOrientationConfiguration class
       
    37 *
       
    38 *  Orientation configurations for different orientation states.
       
    39 */
       
    40 class TOrientationConfiguration
       
    41     {
       
    42 
       
    43 public:
       
    44     
       
    45     /**
       
    46     * Struct defining angle and timer for a state transition
       
    47     */
       
    48     class TAngleAndTimerConfig
       
    49         {
       
    50     public:
       
    51         TInt iAngle;
       
    52         TInt iTimerValueInMilSeconds;
       
    53         };
       
    54     
       
    55     /**
       
    56     * Default C++ constructor
       
    57     */
       
    58     TOrientationConfiguration();
       
    59     
       
    60     /**
       
    61     * Method for getting the timer for an orientation
       
    62     */
       
    63     TInt GetTimerToOrientation( 
       
    64         TSensrvOrientationData::TSensrvDeviceOrientation aOrientation );
       
    65     
       
    66     /**
       
    67     * The identifier for current state
       
    68     */
       
    69     TSensrvOrientationData::TSensrvDeviceOrientation iOrientationState;
       
    70     
       
    71     /**
       
    72     * The used angle and timer to state display up
       
    73     */
       
    74     TAngleAndTimerConfig iOrientationDisplayUp;
       
    75     
       
    76     /**
       
    77     * The used angle and timer to state display down
       
    78     */
       
    79     TAngleAndTimerConfig iOrientationDisplayDown;
       
    80     
       
    81     /**
       
    82     * The used angle and timer to state display left up
       
    83     */
       
    84     TAngleAndTimerConfig iOrientationDisplayLeftUp;
       
    85     
       
    86     /**
       
    87     * The used angle and timer to state display right up
       
    88     */
       
    89     TAngleAndTimerConfig iOrientationDisplayRightUp;
       
    90     
       
    91     /**
       
    92     * The used angle and timer to state display upwards
       
    93     */
       
    94     TAngleAndTimerConfig iOrientationDisplayUpwards;
       
    95     
       
    96     /**
       
    97     * The used angle and timer to state display downwards
       
    98     */
       
    99     TAngleAndTimerConfig iOrientationDisplayDownwards;
       
   100     
       
   101     };
       
   102         
       
   103 #endif // ORIENTATIONCONFIGURATION_H
       
   104 
       
   105 // End of File