sensorsupport/testsensor/inc/ssyreferenceproximity.h
branchRCL_3
changeset 19 924385140d98
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensorsupport/testsensor/inc/ssyreferenceproximity.h	Tue Aug 31 15:24:25 2010 +0300
@@ -0,0 +1,101 @@
+// ssyreferenceproximity.h
+
+/*
+* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+
+
+
+/**
+ @file
+ @internalAll Sensor framework Reference SSY header file
+ @test
+*/
+
+
+#ifndef SSYREFERENCEPROXIMITY_H
+#define SSYREFERENCEPROXIMITY_H
+
+//  INCLUDES
+#include <e32base.h>
+#include <sensors/sensrvtypes.h> 
+
+
+// PROXIMITY RELATED CHANNELS
+
+/**
+* - Name: Proximity data channel
+* - Type: Event
+* - Datatype: TSensrvProximityMonitorData
+* - Description: Proximity status 
+*/
+const TSensrvChannelTypeId KSensrvChannelTypeIdProximityMonitor = 0x2000E585;
+
+// PROXIMITY RELATED DATATYPES
+
+/**
+* Proximity monitoring data type
+*/
+class TSensrvProximityData
+	{
+public:
+	/**
+	* Channel data type Id number
+	*/ 
+	static const TSensrvChannelDataTypeId KDataTypeId = 0x2000E585;
+
+    /**
+    * Channel data type index numbers
+    */ 
+    enum TSensrvProximityDataIndexes
+        {
+        ETimeStamp = 0,
+        EState
+        };
+
+    /**
+    * Possible values for proximito state
+    */ 
+    enum TProximityState
+        {
+        EProximityUndefined = 0,
+        EProximityIndiscernible,
+        EProximityDiscernible
+        };
+
+public:
+
+    /**
+    * - Item name:   Sampling time.
+    * - Item Index:  0
+    * - Conditions:  None
+    * - Description: Timestamp for a sample.
+    */   
+    TTime iTimeStamp; 
+
+	/**
+    * - Item name: Proximity state
+    * - Item Index: 0
+    * - Conditions: None
+    * - Description: -
+    */ 
+    TProximityState iProximityState;
+
+};
+
+#endif //SSYREFERENCEPROXIMITY_H
+