sensrvorientationsensor.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : sensrvorientationsensor.h
00004 *  Part of     : Sensor Definitions API
00005 *  Description : Channel data types definitions
00006 *  Version     : %version:  2 %
00007 *
00008 *  Copyright © 2008 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.1
00018 */
00019 
00020 
00021 #ifndef SENSRVORIENTATIONSENSOR_H
00022 #define SENSRVORIENTATIONSENSOR_H
00023 
00024 //  INCLUDES
00025 #include <e32base.h>
00026 #include <sensrvtypes.h> 
00027 
00028 // ORIENTATION RELATED CHANNELS
00029 
00036 const TSensrvChannelTypeId KSensrvChannelTypeIdOrientationData = 0x10205088; 
00037 
00044 const TSensrvChannelTypeId KSensrvChannelTypeIdRotationData = 0x10205089; 
00045 
00046 // ORIENTATION RELATED DATATYPES
00047 
00048 class TSensrvOrientationData
00049     {
00050 public:
00054     static const TSensrvChannelDataTypeId KDataTypeId = 0x10205088;
00055 
00059     enum TSensrvOrientationEventIndexes
00060         {
00061         ETimeStamp = 0,
00062         EDeviceOrientation
00063         }; 
00064 
00068     enum TSensrvDeviceOrientation
00069         {
00070             EOrientationUndefined = 0,
00071             EOrientationDisplayUp,
00072             EOrientationDisplayDown,
00073             EOrientationDisplayLeftUp,
00074             EOrientationDisplayRightUp,
00075             EOrientationDisplayUpwards,
00076             EOrientationDisplayDownwards        
00077         };
00078         
00079 public:
00080         
00086     TTime iTimeStamp;
00087 
00093     TSensrvDeviceOrientation iDeviceOrientation;    
00094     };
00095 
00096 
00097 class TSensrvRotationData
00098     {
00099 public:
00103     static const TSensrvChannelDataTypeId KDataTypeId = 0x10205089;
00104     
00114     static const TInt KSensrvRotationUndefined = -1; 
00115 
00119     enum TSensrvRotationDataIndexes
00120         {
00121         ETimeStamp = 0,          
00122         EDeviceRotationAboutXAxis,
00123         EDeviceRotationAboutYAxis,
00124         EDeviceRotationAboutZAxis,
00125         };
00126 
00127 public:
00133     TTime iTimeStamp;
00134   
00141     TInt iDeviceRotationAboutXAxis;  
00142 
00149     TInt iDeviceRotationAboutYAxis;  
00150       
00151 
00158     TInt iDeviceRotationAboutZAxis;  
00159     };
00160 
00161 #endif //SENSRVORIENTATIONSENSOR_H
00162 
00163 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top