CMdEObjectCondition Class Reference

class CMdEObjectCondition

Query condition for objects.

Public Member Functions
~CMdEObjectCondition()
IMPORT_C TObjectConditionCompareMethodCompareMethod()
IMPORT_C TObjectConditionConfidentialityLevelConfidentialityLevel()
TUint32 InternalQueryOptimizationFlags(TUint32 &)
CMdEObjectCondition *NewL(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)
CMdEObjectCondition *NewL(TObjectConditionCompareMethod, const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)
CMdEObjectCondition *NewLC(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)
CMdEObjectCondition *NewLC(TObjectConditionCompareMethod, const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)
IMPORT_C TBoolNotPlaceholder()
IMPORT_C TBoolNotPresent()
IMPORT_C const CMdEObjectDef *ObjectDef()
IMPORT_C TItemIdObjectId()
IMPORT_C const RArray< TItemId > *ObjectIds()
IMPORT_C TBoolPlaceholderOnly()
TUint32 RequiredBufferSize()
voidSerializeL(CMdCSerializationBuffer &, TMdCOffset &)
IMPORT_C voidSetConfidentialityLevel(TObjectConditionConfidentialityLevel)
IMPORT_C voidSetNotPlaceholder(TBool)
IMPORT_C voidSetNotPresent(TBool)
IMPORT_C voidSetPlaceholderOnly(TBool)
IMPORT_C const TDesC *String()
Private Member Functions
CMdEObjectCondition(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)
CMdEObjectCondition(TObjectConditionCompareMethod)
voidConstructL()
voidConstructL(const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)
Private Attributes
TObjectConditionCompareMethodiCompareMethod
TObjectConditionConfidentialityLeveliConfidentialityLevel
TUint32 iFlags
TInt64 iGuidHigh
TInt64 iGuidLow
const CMdEObjectDef *iObjectDef
TItemId iObjectId
RArray< TItemId > *iObjectIds
TBool iPlaceholdersOnly
TMdEUintRange *iRange
HBufC *iString

Constructor & Destructor Documentation

CMdEObjectCondition(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)

CMdEObjectCondition(TObjectConditionCompareMethodaCompareMethod,
TItemIdaObjectId,
const CMdEObjectDef *aObjectDef,
TInt64aObjectGuidHigh,
TInt64aObjectGuidLow
)[private]

Constructor.

Parameters

TObjectConditionCompareMethod aCompareMethodComparison method.
TItemId aObjectIdID number of an object.
const CMdEObjectDef * aObjectDefObject definition.
TInt64 aObjectGuidHighobject's GUID high part.
TInt64 aObjectGuidLowobject's GUID low part.

CMdEObjectCondition(TObjectConditionCompareMethod)

CMdEObjectCondition(TObjectConditionCompareMethodaCompareMethod)[private]

Constructor.

Parameters

TObjectConditionCompareMethod aCompareMethodComparison method.

~CMdEObjectCondition()

~CMdEObjectCondition()[virtual]

Destructor.

Member Functions Documentation

CompareMethod()

IMPORT_C TObjectConditionCompareMethodCompareMethod()const

Returns the comparison method of the condition.

ConfidentialityLevel()

IMPORT_C TObjectConditionConfidentialityLevelConfidentialityLevel()const

Returns the level of confidentiality of the condition.

ConstructL()

voidConstructL()[private]

Second-phase constructor.

ConstructL(const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)

voidConstructL(const RArray< TItemId > *aObjectIds,
const TDesC *aString,
const TMdEUintRange *aRange
)[private]

Second-phase constructor.

Parameters

const RArray< TItemId > * aObjectIdsobject IDs to look for.
const TDesC * aStringText string to look for.
const TMdEUintRange * aRange

InternalQueryOptimizationFlags(TUint32 &)

TUint32 InternalQueryOptimizationFlags(TUint32 &aFlags)

Get possible query's internal optimization flags from condition.

Parameters

TUint32 & aFlags

NewL(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)

CMdEObjectCondition *NewL(TObjectConditionCompareMethodaCompareMethod,
TItemIdaObjectId =  KNoId ,
const CMdEObjectDef *aObjectDef = NULL,
TInt64aObjectGuidHigh = 0,
TInt64aObjectGuidLow = 0
)[static]

Two-phased constructor.

Parameters

TObjectConditionCompareMethod aCompareMethod
TItemId aObjectId =  KNoId
const CMdEObjectDef * aObjectDef = NULL
TInt64 aObjectGuidHigh = 0
TInt64 aObjectGuidLow = 0

NewL(TObjectConditionCompareMethod, const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)

CMdEObjectCondition *NewL(TObjectConditionCompareMethodaCompareMethod,
const RArray< TItemId > *aObjectIds = NULL,
const TDesC *aString = NULL,
const TMdEUintRange *aRange = NULL
)[static]

Parameters

TObjectConditionCompareMethod aCompareMethod
const RArray< TItemId > * aObjectIds = NULL
const TDesC * aString = NULL
const TMdEUintRange * aRange = NULL

NewLC(TObjectConditionCompareMethod, TItemId, const CMdEObjectDef *, TInt64, TInt64)

CMdEObjectCondition *NewLC(TObjectConditionCompareMethodaCompareMethod,
TItemIdaObjectId =  KNoId ,
const CMdEObjectDef *aObjectDef = NULL,
TInt64aObjectGuidHigh = 0,
TInt64aObjectGuidLow = 0
)[static]

Parameters

TObjectConditionCompareMethod aCompareMethod
TItemId aObjectId =  KNoId
const CMdEObjectDef * aObjectDef = NULL
TInt64 aObjectGuidHigh = 0
TInt64 aObjectGuidLow = 0

NewLC(TObjectConditionCompareMethod, const RArray< TItemId > *, const TDesC *, const TMdEUintRange *)

CMdEObjectCondition *NewLC(TObjectConditionCompareMethodaCompareMethod,
const RArray< TItemId > *aObjectIds = NULL,
const TDesC *aString = NULL,
const TMdEUintRange *aRange = NULL
)[static]

Parameters

TObjectConditionCompareMethod aCompareMethod
const RArray< TItemId > * aObjectIds = NULL
const TDesC * aString = NULL
const TMdEUintRange * aRange = NULL

NotPlaceholder()

IMPORT_C TBoolNotPlaceholder()const

Determines whether the condition requires the object to be a not placeholder object.

NotPresent()

IMPORT_C TBoolNotPresent()const

Determines whether the condition requires the object to be a present object or not.

ObjectDef()

IMPORT_C const CMdEObjectDef *ObjectDef()const

Returns the object definition of the condition.

ObjectId()

IMPORT_C TItemIdObjectId()const

Returns the object ID number of the condition.

ObjectIds()

IMPORT_C const RArray< TItemId > *ObjectIds()const

Returns the object ID numbers of the condition.

PlaceholderOnly()

IMPORT_C TBoolPlaceholderOnly()const

Determines whether the condition requires the object to be a not placeholder object.

RequiredBufferSize()

TUint32 RequiredBufferSize()const

Get required size of serialized buffer when this is serialized.

SerializeL(CMdCSerializationBuffer &, TMdCOffset &)

voidSerializeL(CMdCSerializationBuffer &aBuffer,
TMdCOffset &aFreespaceOffset
)const

Serialize own data to serialized buffer (correct position must be set before calling) and return new position of serialized buffer.

Parameters

CMdCSerializationBuffer & aBufferserialized buffer.
TMdCOffset & aFreespaceOffset

SetConfidentialityLevel(TObjectConditionConfidentialityLevel)

IMPORT_C voidSetConfidentialityLevel(TObjectConditionConfidentialityLevelaLevel)

Sets the confidentiality level for the condition. Default level is ELevelNormal.

Parameters

TObjectConditionConfidentialityLevel aLevelfocuses the search to confidential or non-confidential objects or both of them.

SetNotPlaceholder(TBool)

IMPORT_C voidSetNotPlaceholder(TBoolaNotPlaceholder)

Sets whether the condition requires the object to be a not placeholder object.

Parameters

TBool aNotPlaceholderETrue, if the object should be a not placeholder object. EFalse otherwise.

SetNotPresent(TBool)

IMPORT_C voidSetNotPresent(TBoolaNotPresent)

Sets whether the condition requires the object to be a present object or not.

Parameters

TBool aNotPresentETrue, if the object should be a not present object. EFalse otherwise.

SetPlaceholderOnly(TBool)

IMPORT_C voidSetPlaceholderOnly(TBoolaPlaceholderOnly)

Sets whether the condition requires the object to be a not placeholder object.

Parameters

TBool aPlaceholderOnly

String()

IMPORT_C const TDesC *String()const

Returns the string of the condition.

Member Data Documentation

TObjectConditionCompareMethod iCompareMethod

TObjectConditionCompareMethodiCompareMethod[private]

Compare method for the string.

TObjectConditionConfidentialityLevel iConfidentialityLevel

TObjectConditionConfidentialityLeveliConfidentialityLevel[private]

Determines confidentiality level of result object. By default level is ELevelNormal, which means that query returns only non-confidential objects as result.

TUint32 iFlags

TUint32 iFlags[private]

Object condition flags not present not placeholder

TInt64 iGuidHigh

TInt64 iGuidHigh[private]

Object's GUID high part.

TInt64 iGuidLow

TInt64 iGuidLow[private]

Object's GUID low part.

const CMdEObjectDef * iObjectDef

const CMdEObjectDef *iObjectDef[private]

Object definition to match. NULL, if not applicable.

TItemId iObjectId

TItemId iObjectId[private]

The object's ID.

RArray< TItemId > * iObjectIds

RArray< TItemId > *iObjectIds[private]

The objects' ID.

TBool iPlaceholdersOnly

TBool iPlaceholdersOnly[private]

TMdEUintRange * iRange

TMdEUintRange *iRange[private]

HBufC * iString

HBufC *iString[private]

String to match. NULL, if not applicable.