1.1 --- a/epoc32/include/sensrvproximitysensor.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/sensrvproximitysensor.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,91 @@
1.4 -sensrvproximitysensor.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 SENSRVPROXIMITYSENSOR_H
1.25 +#define SENSRVPROXIMITYSENSOR_H
1.26 +
1.27 +// INCLUDES
1.28 +#include <e32base.h>
1.29 +#include <sensrvtypes.h>
1.30 +
1.31 +// PROXIMITY RELATED CHANNELS
1.32 +
1.33 +/**
1.34 +* - Name: Proximity data channel
1.35 +* - Type: Event
1.36 +* - Datatype: TSensrvProximityMonitorData
1.37 +* - Description: Proximity status
1.38 +*/
1.39 +const TSensrvChannelTypeId KSensrvChannelTypeIdProximityMonitor = 0x2000E585;
1.40 +
1.41 +// PROXIMITY RELATED DATATYPES
1.42 +
1.43 +/**
1.44 +* Proximity monitoring data type
1.45 +*/
1.46 +class TSensrvProximityData
1.47 + {
1.48 +public:
1.49 + /**
1.50 + * Channel data type Id number
1.51 + */
1.52 + static const TSensrvChannelDataTypeId KDataTypeId = 0x2000E585;
1.53 +
1.54 + /**
1.55 + * Channel data type index numbers
1.56 + */
1.57 + enum TSensrvProximityDataIndexes
1.58 + {
1.59 + ETimeStamp = 0,
1.60 + EState
1.61 + };
1.62 +
1.63 + /**
1.64 + * Possible values for proximito state
1.65 + */
1.66 + enum TProximityState
1.67 + {
1.68 + EProximityUndefined = 0,
1.69 + EProximityIndiscernible,
1.70 + EProximityDiscernible
1.71 + };
1.72 +
1.73 +public:
1.74 +
1.75 + /**
1.76 + * - Item name: Sampling time.
1.77 + * - Item Index: 0
1.78 + * - Conditions: None
1.79 + * - Description: Timestamp for a sample.
1.80 + */
1.81 + TTime iTimeStamp;
1.82 +
1.83 + /**
1.84 + * - Item name: Proximity state
1.85 + * - Item Index: 0
1.86 + * - Conditions: None
1.87 + * - Description: -
1.88 + */
1.89 + TProximityState iProximityState;
1.90 +
1.91 +};
1.92 +
1.93 +#endif //SENSRVPROXIMITYSENSOR_H
1.94 +
1.95 +// End of File