sensorsupport/testsensor/inc/ssyreferenceproximity.h
branchRCL_3
changeset 20 c2c61fdca848
parent 19 924385140d98
child 21 9af619316cbf
equal deleted inserted replaced
19:924385140d98 20:c2c61fdca848
     1 // ssyreferenceproximity.h
       
     2 
       
     3 /*
       
     4 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     5 * All rights reserved.
       
     6 * This component and the accompanying materials are made available
       
     7 * under the terms of "Eclipse Public License v1.0"
       
     8 * which accompanies this distribution, and is available
       
     9 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 *
       
    11 * Initial Contributors:
       
    12 * Nokia Corporation - initial contribution.
       
    13 *
       
    14 * Contributors:
       
    15 *
       
    16 * Description:
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 /**
       
    24  @file
       
    25  @internalAll Sensor framework Reference SSY header file
       
    26  @test
       
    27 */
       
    28 
       
    29 
       
    30 #ifndef SSYREFERENCEPROXIMITY_H
       
    31 #define SSYREFERENCEPROXIMITY_H
       
    32 
       
    33 //  INCLUDES
       
    34 #include <e32base.h>
       
    35 #include <sensors/sensrvtypes.h> 
       
    36 
       
    37 
       
    38 // PROXIMITY RELATED CHANNELS
       
    39 
       
    40 /**
       
    41 * - Name: Proximity data channel
       
    42 * - Type: Event
       
    43 * - Datatype: TSensrvProximityMonitorData
       
    44 * - Description: Proximity status 
       
    45 */
       
    46 const TSensrvChannelTypeId KSensrvChannelTypeIdProximityMonitor = 0x2000E585;
       
    47 
       
    48 // PROXIMITY RELATED DATATYPES
       
    49 
       
    50 /**
       
    51 * Proximity monitoring data type
       
    52 */
       
    53 class TSensrvProximityData
       
    54 	{
       
    55 public:
       
    56 	/**
       
    57 	* Channel data type Id number
       
    58 	*/ 
       
    59 	static const TSensrvChannelDataTypeId KDataTypeId = 0x2000E585;
       
    60 
       
    61     /**
       
    62     * Channel data type index numbers
       
    63     */ 
       
    64     enum TSensrvProximityDataIndexes
       
    65         {
       
    66         ETimeStamp = 0,
       
    67         EState
       
    68         };
       
    69 
       
    70     /**
       
    71     * Possible values for proximito state
       
    72     */ 
       
    73     enum TProximityState
       
    74         {
       
    75         EProximityUndefined = 0,
       
    76         EProximityIndiscernible,
       
    77         EProximityDiscernible
       
    78         };
       
    79 
       
    80 public:
       
    81 
       
    82     /**
       
    83     * - Item name:   Sampling time.
       
    84     * - Item Index:  0
       
    85     * - Conditions:  None
       
    86     * - Description: Timestamp for a sample.
       
    87     */   
       
    88     TTime iTimeStamp; 
       
    89 
       
    90 	/**
       
    91     * - Item name: Proximity state
       
    92     * - Item Index: 0
       
    93     * - Conditions: None
       
    94     * - Description: -
       
    95     */ 
       
    96     TProximityState iProximityState;
       
    97 
       
    98 };
       
    99 
       
   100 #endif //SSYREFERENCEPROXIMITY_H
       
   101