Link against: SensrvClient.lib
#include <sensrvchannelcondition.h>
Channel conditions are added to a channel condition set. A channel condition set is met when all channel conditions are met at the same time, if it is AND-type set, or when single condition is met if it is OR-type set. Only one channel condition can be set for each data item in single channel condition set. Certain condition types (range conditions) require two condition objects (upper and lower limit) in a condition set for the set to be valid. The pair of conditions must both have the same index in the condition set and they are considered a single channel condition.
Each Condition has an ItemIndex associated with it. When a Condition is added to a Condition Set using CSensrvChannelConditionSet::AddChannelConditionL() this index must be different to all other conditions added to the set with the exception of range conditions as described above. If the index supplied already exists and the condition is not part of a range condition then CSensrvChannelConditionSet::AddChannelConditionL() leaves with KErrArgument.
Public Member Functions | |
virtual TInt | ConditionType () const =0 |
Get condition type. | |
virtual TInt | ConditionOperator () const =0 |
Get condition operator. | |
virtual TInt | ConditionItemIndex () const =0 |
Get condition item index. | |
virtual TInt | GetConditionValue (TDes8 &aValue) const =0 |
Get condition value. | |
virtual const TDesC8 & | ConditionValue () const =0 |
Get condition value as reference. | |
CSensrvChannelCondition () | |
Default constructor. | |
Static Public Member Functions | |
static IMPORT_C CSensrvChannelCondition * | NewL (TInt aConditionType, TInt aConditionOperator, TInt aItemIndex, TDesC8 &aValue) |
Two-phase constructor. | |
static IMPORT_C CSensrvChannelCondition * | NewLC (TInt aConditionType, TInt aConditionOperator, TInt aItemIndex, TDesC8 &aValue) |
Two-phase constructor. |
|
Default constructor. |
|
Get condition item index.
|
|
Get condition operator.
|
|
Get condition type.
|
|
Get condition value as reference.
|
|
Get condition value.
|
|
Two-phase constructor.
|
|
Two-phase constructor.
|