1.1 --- a/epoc32/include/sensrvilluminationsensor.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/sensrvilluminationsensor.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,89 @@
1.4 -sensrvilluminationsensor.h
1.5 +/*
1.6 +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* 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
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: Channel data types definitions
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +#ifndef SENSRVILLUMINATIONSENSOR_H
1.25 +#define SENSRVILLUMINATIONSENSOR_H
1.26 +
1.27 +// INCLUDES
1.28 +#include <e32base.h>
1.29 +#include <sensrvtypes.h>
1.30 +
1.31 +
1.32 +// ILLUMINATION RELATED CHANNELS
1.33 +
1.34 +/**
1.35 +* - Name: Ambient light event channel type
1.36 +* - Type: Event
1.37 +* - Datatype: TSensrvAmbientLightData
1.38 +* - Description: Ambient light events
1.39 +*/
1.40 +const TSensrvChannelTypeId KSensrvChannelTypeIdAmbientLightData = 0x2000BF16;
1.41 +
1.42 +
1.43 +// ILLUMINATION RELATED DATATYPES
1.44 +
1.45 +class TSensrvAmbientLightData
1.46 + {
1.47 +public:
1.48 +
1.49 + /**
1.50 + * Brighness constants for ambien light sensor data channel.
1.51 + */
1.52 + static const TUint8 KAmbientLightVeryDark = 0;
1.53 + static const TUint8 KAmbientLightDark = 20;
1.54 + static const TUint8 KAmbientLightTwilight = 40;
1.55 + static const TUint8 KAmbientLightLight = 60;
1.56 + static const TUint8 KAmbientLightBright = 80;
1.57 + static const TUint8 KAmbientLightSunny = 100;
1.58 +
1.59 + /**
1.60 + * Channel data type Id number
1.61 + */
1.62 + static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BF16;
1.63 +
1.64 + /**
1.65 + * Channel data type index numbers
1.66 + */
1.67 + enum TSensrvAmbientLightDataIndexes
1.68 + {
1.69 + ETimeStamp = 0,
1.70 + EAmbientLight
1.71 + };
1.72 +
1.73 +public:
1.74 +
1.75 + /**
1.76 + * - Item name: Sampling time
1.77 + * - Item Index: 0
1.78 + * - Description: Timestamp for a sample
1.79 + */
1.80 + TTime iTimeStamp;
1.81 +
1.82 + /**
1.83 + * - Item name: Ambient light
1.84 + * - Item Index: 1
1.85 + * - Description: Percentage value (0..100) of Ambient light sensor's brightness.
1.86 + */
1.87 + TUint8 iAmbientLight;
1.88 + };
1.89 +
1.90 +
1.91 +#endif //SENSRVILLUMINATIONSENSOR_H
1.92 +
1.93 +// End of File