00001 /* 00002 * ============================================================================== 00003 * Name : sensrvproximitysensor.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 SENSRVPROXIMITYSENSOR_H 00022 #define SENSRVPROXIMITYSENSOR_H 00023 00024 // INCLUDES 00025 #include <e32base.h> 00026 #include <sensrvtypes.h> 00027 00028 // PROXIMITY RELATED CHANNELS 00029 00036 const TSensrvChannelTypeId KSensrvChannelTypeIdProximityMonitor = 0x2000E585; 00037 00038 // PROXIMITY RELATED DATATYPES 00039 00043 class TSensrvProximityData 00044 { 00045 public: 00049 static const TSensrvChannelDataTypeId KDataTypeId = 0x2000E585; 00050 00054 enum TSensrvProximityDataIndexes 00055 { 00056 ETimeStamp = 0, 00057 EState 00058 }; 00059 00063 enum TProximityState 00064 { 00065 EProximityUndefined = 0, 00066 EProximityIndiscernible, 00067 EProximityDiscernible 00068 }; 00069 00070 public: 00071 00078 TTime iTimeStamp; 00079 00086 TProximityState iProximityState; 00087 00088 }; 00089 00090 #endif //SENSRVPROXIMITYSENSOR_H 00091 00092 // End of File