00001 /* 00002 * ============================================================================== 00003 * Name : sensrvilluminationsensor.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 SENSRVILLUMINATIONSENSOR_H 00022 #define SENSRVILLUMINATIONSENSOR_H 00023 00024 // INCLUDES 00025 #include <e32base.h> 00026 #include <sensrvtypes.h> 00027 00028 00029 // ILLUMINATION RELATED CHANNELS 00030 00037 const TSensrvChannelTypeId KSensrvChannelTypeIdAmbientLightData = 0x2000BF16; 00038 00039 00040 // ILLUMINATION RELATED DATATYPES 00041 00042 class TSensrvAmbientLightData 00043 { 00044 public: 00045 00049 static const TUint8 KAmbientLightVeryDark = 0; 00050 static const TUint8 KAmbientLightDark = 20; 00051 static const TUint8 KAmbientLightTwilight = 40; 00052 static const TUint8 KAmbientLightLight = 60; 00053 static const TUint8 KAmbientLightBright = 80; 00054 static const TUint8 KAmbientLightSunny = 100; 00055 00059 static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BF16; 00060 00064 enum TSensrvAmbientLightDataIndexes 00065 { 00066 ETimeStamp = 0, 00067 EAmbientLight 00068 }; 00069 00070 public: 00071 00077 TTime iTimeStamp; 00078 00084 TUint8 iAmbientLight; 00085 }; 00086 00087 00088 #endif //SENSRVILLUMINATIONSENSOR_H 00089 00090 // End of File