diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/sensrvilluminationsensor.h --- a/epoc32/include/sensrvilluminationsensor.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/sensrvilluminationsensor.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,89 @@ -sensrvilluminationsensor.h +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Channel data types definitions +* +*/ + + + +#ifndef SENSRVILLUMINATIONSENSOR_H +#define SENSRVILLUMINATIONSENSOR_H + +// INCLUDES +#include +#include + + +// ILLUMINATION RELATED CHANNELS + +/** +* - Name: Ambient light event channel type +* - Type: Event +* - Datatype: TSensrvAmbientLightData +* - Description: Ambient light events +*/ +const TSensrvChannelTypeId KSensrvChannelTypeIdAmbientLightData = 0x2000BF16; + + +// ILLUMINATION RELATED DATATYPES + +class TSensrvAmbientLightData + { +public: + + /** + * Brighness constants for ambien light sensor data channel. + */ + static const TUint8 KAmbientLightVeryDark = 0; + static const TUint8 KAmbientLightDark = 20; + static const TUint8 KAmbientLightTwilight = 40; + static const TUint8 KAmbientLightLight = 60; + static const TUint8 KAmbientLightBright = 80; + static const TUint8 KAmbientLightSunny = 100; + + /** + * Channel data type Id number + */ + static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BF16; + + /** + * Channel data type index numbers + */ + enum TSensrvAmbientLightDataIndexes + { + ETimeStamp = 0, + EAmbientLight + }; + +public: + + /** + * - Item name: Sampling time + * - Item Index: 0 + * - Description: Timestamp for a sample + */ + TTime iTimeStamp; + + /** + * - Item name: Ambient light + * - Item Index: 1 + * - Description: Percentage value (0..100) of Ambient light sensor's brightness. + */ + TUint8 iAmbientLight; + }; + + +#endif //SENSRVILLUMINATIONSENSOR_H + +// End of File