#include <sensrvchannelinfo.h>
class TSensrvChannelInfo |
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 &) |
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.
TSensrvChannelDataTypeId | iChannelDataTypeId |
Identifies the channel data type. This value is a uid and is unique among all channels. See sensor channel specific header files.
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.
TBuf8< KSensrvLocationLength > | iLocation |
Location of the of the channel. This is a free format string
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.
IMPORT_C | TSensrvChannelInfo | ( | TInt | aContextType, |
TInt | aQuantity, | |||
TSensrvChannelTypeId | aChannelType, | |||
const TDesC8 & | aLocation, | |||
const TDesC8 & | aVendorId, | |||
TSensrvChannelDataTypeId | aChannelDataTypeId | |||
) |
Constructor
This constructor is for use with CSensrvChannelFinder::FindChannelsL(). It sets the ChannelId and DataItemSize to zero.
See also: TSensrvContextType TSensrvQuantity
Parameter | Description |
---|---|
aContextType | Channel context type. Set to a value from TSensrvContextType. |
aQuantity | Channel quantity. Set to a value from TSensrvQuantity. |
aChannelType | Channel type id. This is a uid. |
aLocation | Channel physical location. |
aVendorId | Channel vendor name. |
aChannelDataTypeId | Channel data type Id. This is a uid. |
IMPORT_C | TSensrvChannelInfo | ( | TSensrvChannelId | aChannelId, |
TInt | aContextType, | |||
TInt | aQuantity, | |||
TSensrvChannelTypeId | aChannelType, | |||
const TDesC8 & | aLocation, | |||
const TDesC8 & | aVendorId, | |||
TInt | aDataItemSize, | |||
TSensrvChannelDataTypeId | aChannelDataTypeId | |||
) |
Parameter | Description |
---|---|
aChannelId | Channel identifier |
aContextType | Channel context type. Set to a value from TSensrvContextType. |
aQuantity | Channel quantity. Set to a value from TSensrvQuantity. |
aChannelType | Channel type id. This is a uid. |
aLocation | Channel physical location. |
aVendorId | Channel vendor name. |
aDataItemSize | Data item size for channel specific data |
aChannelDataTypeId | Channel data type Id. This is a uid. |
IMPORT_C | TSensrvChannelInfo | ( | const TSensrvChannelInfo & | aChannelInfo | ) |
Copy constructor
Parameter | Description |
---|---|
aChannelInfo | Instance to be copied |
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.
Returns: ETrue if channel information is complete.
IMPORT_C TBool | IsMatch | ( | const TSensrvChannelInfo & | aInfo | ) | const |
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.
Parameter | Description |
---|---|
aInfo | Instance to be matched against this instance. |
Returns: ETrue if there is a match, otherwise EFalse