CSensrvChannelCondition Class Reference
class CSensrvChannelCondition : public CBase |
CSensrvChannelCondition represents a channel condition item. 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.
Constructor & Destructor Documentation
CSensrvChannelCondition()
CSensrvChannelCondition | ( | ) | |
Member Functions Documentation
ConditionItemIndex()
TInt
| ConditionItemIndex | ( | ) | const [pure virtual] |
ConditionOperator()
TInt
| ConditionOperator | ( | ) | const [pure virtual] |
ConditionType()
TInt
| ConditionType | ( | ) | const [pure virtual] |
ConditionValue()
const TDesC8 & | ConditionValue | ( | ) | const [pure virtual] |
Get condition value as reference.
GetConditionValue(TDes8 &)
TInt
| GetConditionValue | ( | TDes8 & | aValue | ) | const [pure virtual] |
Parameters
TDes8 & aValue | Value of the condition is copied to the supplied descriptor |
NewL(TInt, TInt, TInt, TDesC8 &)
Two-phase constructor
-
leave
- KErrNoMemory
-
leave
- KErrArgument if parameters are invalid or are less than 0
-
leave
- One of the system-wide error codes
Parameters
TInt aConditionType | Defines the type of the condition |
TInt aConditionOperator | Defines the operator used in the condition |
TInt aItemIndex | Item index to be used in the condition evaluation |
TDesC8 & aValue | Value to be used in condition evaluation. By default this should be a packaged data object of the channel. See the channel specific headers in . If the channel type requires a different type of value, that must be indicated clearly in the channel specific header defining the channel. |
NewLC(TInt, TInt, TInt, TDesC8 &)
Two-phase constructor
-
leave
- KErrNoMemory
-
leave
- KErrArgument if parameters are invalid or are less than 0
-
leave
- One of the system-wide error codes
Parameters
TInt aConditionType | Defines the type of the condition |
TInt aConditionOperator | Defines the operator used in the condition |
TInt aItemIndex | Item index to be used in the condition evaluation |
TDesC8 & aValue | Value to be used in condition evaluation. By default this should be a packaged data object of the channel. See the channel specific headers in . If the channel type requires a different type of value, that must be indicated clearly in the channel specific header defining the channel. |
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.