sensrvtypes.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : sensrvtypes.h
00004 *  Part of     : Sensor Services / Common headers
00005 *  Description : Type definitions file for Sensor Server
00006 *  Version     : %version: 3.1.3 %
00007 *
00008 *  Copyright © 2006-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 
00022 #ifndef SENSRVTYPES_H
00023 #define SENSRVTYPES_H
00024 
00025 #include <e32base.h>
00026 #include <sensrvproperty.h>
00027 
00028 // Forward declare channel info
00029 class TSensrvChannelInfo;
00030 
00036 const TInt KSensrvVendorIdLength = 16;
00037 
00043 const TInt KSensrvLocationLength = 16;
00044 
00050 const TInt KSensrvItemIndexNone = -1;
00051 
00052 // DATA TYPES
00053 
00065 typedef TUint32 TSensrvChannelId;
00066 
00075 typedef TUint32 TSensrvChannelTypeId;
00076 
00084 typedef TUint32 TSensrvChannelDataTypeId;
00085 
00086 
00092 const TSensrvChannelTypeId KSensrvChannelTypeIdUndefined = 0x00000000;
00093 
00100 typedef RArray<TSensrvChannelId> RSensrvChannelList;
00101 
00108 typedef RArray<TSensrvProperty> RSensrvPropertyList;
00109 
00116 typedef RArray<TSensrvChannelInfo> RSensrvChannelInfoList;
00117 
00124 enum TSetPropertySuccessIndicator
00125     {
00126     ESetPropertyIndicationUnknown = 0,
00131     ESetPropertyIndicationAvailable,
00144     ESetPropertyIndicationPossible,
00150     ESetPropertyIndicationUnavailable
00151     };
00152 
00160 enum TSensrvQuantity
00161     {
00163     ESensrvQuantityNotUsed = -1,
00165     ESensrvQuantityNotdefined = 0,
00167     ESensrvQuantityAcceleration = 10,
00169     ESensrvQuantityTapping = 11,
00171     ESensrvQuantityOrientation = 12,
00173     ESensrvQuantityRotation = 13,
00175     ESensrvQuantityMagnetic = 14,
00177     ESensrvQuantityAngle = 15,
00179     ESensrvQuantityProximity = 16,
00181     ESensrvQuantityLicenseeBase = 8192,
00183     ESensrvQuantityLicenseeEnd = 12287
00184     };
00185 
00193 enum TSensrvContextType
00194     {
00196     ESensrvContextTypeNotUsed = -1,
00198     ESensrvContextTypeNotDefined = 0,
00203     ESensrvContextTypeAmbient = 1,
00208     ESensrvContextTypeDevice = 2,
00213     ESensrvContextTypeUser = 3,
00215     ESensrvContextTypeLicenseeBase = 8192,
00217     ESensrvContextTypeLicenseeEnd = 12287
00218     };
00219 
00227 enum TSensrvConnectionType
00228     {
00230     ESensrvConnectionTypeNotDefined = 0,
00232     ESensrvConnectionTypeEmbedded,
00234     ESensrvConnectionTypeWired,
00236     ESensrvConnectionTypeWireless,
00238     ESensrvConnectionTypeLicenseeBase = 8192,
00240     ESensrvConnectionTypeLicenseeEnd = 12287
00241     };
00242 
00250 enum TSensrvChannelUnit
00251     {
00253     ESensrvChannelUnitNotDefined = 0,
00255     ESensevChannelUnitAcceleration = 10,
00257     ESensrvChannelUnitGravityConstant = 11,
00259     ESensrvChannelUnitMagneticFluxDensity = 12,
00261     ESensrvChannelUnitLicenseeBase = 8192,
00263     ESensrvChannelUnitLicenseeEnd = 12287
00264     };
00265 
00285 enum TSensrvChannelDataFormat
00286     {
00288     ESensrvChannelDataFormatNotDefined = 0,
00290     ESensrvChannelDataFormatAbsolute,
00295     ESensrvChannelDataFormatScaled,
00297     ESensrvChannelDataFormatLicenseeBase = 8192,
00299     ESensrvChannelDataFormatLicenseeEnd = 12287
00300     };
00301 
00310 enum TSensrvErrorSeverity
00311     {
00313     ESensrvErrorSeverityNotDefined = 0,
00315     ESensrvErrorSeverityMinor,
00317     ESensrvErrorSeverityFatal
00318     };
00319 
00325 enum TSensrvChannelChangeType
00326     {
00328     ESensrvChannelChangeTypeNotDefined = 0,
00330     ESensrvChannelChangeTypeRemoved,
00332     ESensrvChannelChangeTypeAdded
00333     };
00334 
00342 enum TSensrvPower
00343         {
00345         ESensrvPowerPowerDown = 0,
00347         ESensrvPowerPowerUp
00348         };
00349 
00359 enum TSensrvAvailability
00360         {
00362         ESensrvAvailabilityFalse = 0,
00364         ESensrvAvailabilityTrue
00365         };
00366 
00367 
00368 #endif //SENSRVTYPES_H
00369 
00370 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top