TSensrvChannelInfo Class Reference
The
TSensrvChannelInfo
class is a data class that holds information about a sensor channel.
It also provides simple helper methods that allow users to determine if the class is complete and if one instance of this class matches another.
sensrvutil.lib
-
Since
-
S60 5.0
Public Member Functions
|
|
TSensrvChannelInfo
()
|
|
TSensrvChannelInfo
(
TInt
,
TInt
,
TSensrvChannelTypeId
, const
TDesC8
&, const
TDesC8
&,
TSensrvChannelDataTypeId
)
|
|
TSensrvChannelInfo
(
TSensrvChannelId
,
TInt
,
TInt
,
TSensrvChannelTypeId
, const
TDesC8
&, const
TDesC8
&,
TInt
,
TSensrvChannelDataTypeId
)
|
|
TSensrvChannelInfo
(const
TSensrvChannelInfo
&)
|
IMPORT_C
TBool
|
IsComplete
()
|
IMPORT_C
TBool
|
IsMatch
(const
TSensrvChannelInfo
&)
|
Constructor & Destructor Documentation
TSensrvChannelInfo()
IMPORT_C
|
TSensrvChannelInfo
|
(
|
)
|
|
TSensrvChannelInfo(TInt, TInt, TSensrvChannelTypeId, const TDesC8 &, const TDesC8 &, TSensrvChannelDataTypeId)
Constructor
This constructor is for use with CSensrvChannelFinder::FindChannelsL(). It sets the ChannelId and DataItemSize to zero.
Parameters
TInt
aContextType
|
Channel context type. Set to a value from TSensrvContextType.
|
TInt
aQuantity
|
Channel quantity. Set to a value from TSensrvQuantity.
|
TSensrvChannelTypeId
aChannelType
|
Channel type id. This is a uid.
|
const
TDesC8
& aLocation
|
Channel physical location.
|
const
TDesC8
& aVendorId
|
Channel vendor name.
|
TSensrvChannelDataTypeId
aChannelDataTypeId
|
Channel data type Id. This is a uid.
|
TSensrvChannelInfo(TSensrvChannelId, TInt, TInt, TSensrvChannelTypeId, const TDesC8 &, const TDesC8 &, TInt, TSensrvChannelDataTypeId)
Parameters
TSensrvChannelId
aChannelId
|
Channel identifier
|
TInt
aContextType
|
Channel context type. Set to a value from TSensrvContextType.
|
TInt
aQuantity
|
Channel quantity. Set to a value from TSensrvQuantity.
|
TSensrvChannelTypeId
aChannelType
|
Channel type id. This is a uid.
|
const
TDesC8
& aLocation
|
Channel physical location.
|
const
TDesC8
& aVendorId
|
Channel vendor name.
|
TInt
aDataItemSize
|
Data item size for channel specific data
|
TSensrvChannelDataTypeId
aChannelDataTypeId
|
Channel data type Id. This is a uid.
|
TSensrvChannelInfo(const TSensrvChannelInfo &)
Member Functions Documentation
IsComplete()
IMPORT_C
TBool
|
IsComplete
|
(
|
)
|
const
|
Checks that channel information in this object is complete. Complete means no zero or empty fields. Channel Id, Data Item Size and the Reserved fields are ignored.
IsMatch(const TSensrvChannelInfo &)
Checks if this instance matches supplied instance. Fields that are zero or empty are ignored. Channel Id, Data Item Size and Reserved fields are ignored.
Member Data Documentation
TSensrvChannelDataTypeId
iChannelDataTypeId
Identifies the channel data type. This value is a uid and is unique among all channels. See sensor channel specific header files.
TSensrvChannelId
iChannelId
TSensrvChannelTypeId
iChannelType
Channel type identifier
Identifies the channel type and therefore the content of the channel. This value is a uid and is unique among all channels. See sensor channel specific header files.
TInt
iDataItemSize
Size of the data item delivered by the channel
TBuf8< KSensrvLocationLength > iLocation
Location of the of the channel. This is a free format string
TInt
iReserved2
TInt
|
iReserved2
|
[private]
|
TInt
iReserved3
TInt
|
iReserved3
|
[private]
|
TBuf8< KSensrvVendorIdLength > iVendorId
Vendor name of the channel provider. This is a free format string and is not to be confused with Vendor Id unique Uid's.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.