CPresenceInfoFilterImp Class Reference

class CPresenceInfoFilterImp : public CXIMPApiDataObjBase

MPresenceInfoFilter API object implementation.

ximpdatamodel.dll
Since
S60 v3.2

Inherits from

Nested Classes and Structures

Public Member Functions
~CPresenceInfoFilterImp()
voidAcceptDeviceFilterL(const TDesC8 &, const TDesC8 &)
voidAcceptPersonFilterL(const TDesC8 &)
voidAcceptServiceFilterL(const TDesC8 &, const TDesC8 &)
IMPORT_C TBoolContains(CPresenceInfoFilterImp &)
IMPORT_C voidInternalizeL(RReadStream &)
TBool MatchDeviceFilterL(const TDesC8 &, const TDesC8 &)
TBool MatchPersonFilter(const TDesC8 &)
TBool MatchServiceFilterL(const TDesC8 &, const TDesC8 &)
IMPORT_C CPresenceInfoFilterImp *NewL()
IMPORT_C CPresenceInfoFilterImp *NewLC()
IMPORT_C CPresenceInfoFilterImp *UnionL(CPresenceInfoFilterImp &, CPresenceInfoFilterImp &)
IMPORT_C TBooloperator!=(CPresenceInfoFilterImp &)
IMPORT_C TBooloperator==(CPresenceInfoFilterImp &)
Private Member Functions
CPresenceInfoFilterImp()
voidAcceptFilterL(RXIMPObjOwningPtrArray< CFilterField > &, const TDesC8 &, const TDesC8 &)
voidConstructL()
TBool ContainsFilterFields(RXIMPObjOwningPtrArray< CFilterField > &, RXIMPObjOwningPtrArray< CFilterField > &)
TBool ContainsPersonFilter(CDesC8ArraySeg *, CDesC8ArraySeg *)
voidExternalizeArrayL(const CDesC8ArraySeg *, RWriteStream &)
voidExternalizeFieldSetL(const RXIMPObjOwningPtrArray< CFilterField > &, RWriteStream &)
voidInternalizeArrayL(CDesC8ArraySeg *, RReadStream &)
voidInternalizeFieldSetL(RXIMPObjOwningPtrArray< CFilterField > &, RReadStream &)
TBool MatchFilterL(const RXIMPObjOwningPtrArray< CFilterField > &, const TDesC8 &, const TDesC8 &)
voidUnionOfFieldsL(RXIMPObjOwningPtrArray< CFilterField > &, RXIMPObjOwningPtrArray< CFilterField > &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CXIMPApiDataObjBase::CXIMPApiDataObjBase()
CXIMPApiDataObjBase::EqualsContent(const CXIMPApiDataObjBase &)const
CXIMPApiDataObjBase::ExternalizeL(RWriteStream &)const
CXIMPApiDataObjBase::~CXIMPApiDataObjBase()
CXIMPApiObjBase::Base()
CXIMPApiObjBase::Base()const
CXIMPApiObjBase::CXIMPApiObjBase()
CXIMPApiObjBase::HandleUnknownGetInterface(TInt32,MXIMPBase::TIfGetOps)const
CXIMPApiObjBase::~CXIMPApiObjBase()
Inherited Enumerations
CXIMPApiDataObjBase:@29
CXIMPApiObjBase:@28
Private Attributes
RXIMPObjOwningPtrArray< CFilterField >iDeviceFilter
CDesC8ArraySeg *iPersonFilter
RXIMPObjOwningPtrArray< CFilterField >iServiceFilter

Constructor & Destructor Documentation

CPresenceInfoFilterImp()

CPresenceInfoFilterImp()[private]

~CPresenceInfoFilterImp()

~CPresenceInfoFilterImp()[virtual]

Member Functions Documentation

AcceptDeviceFilterL(const TDesC8 &, const TDesC8 &)

voidAcceptDeviceFilterL(const TDesC8 &aDeviceName,
const TDesC8 &aFieldName
)

Parameters

const TDesC8 & aDeviceName
const TDesC8 & aFieldName

AcceptFilterL(RXIMPObjOwningPtrArray< CFilterField > &, const TDesC8 &, const TDesC8 &)

voidAcceptFilterL(RXIMPObjOwningPtrArray< CFilterField > &aFieldSet,
const TDesC8 &aServiceType,
const TDesC8 &aFieldType
)[private]

Helper for adding a filter field to the filter field set.

Parameters

RXIMPObjOwningPtrArray< CFilterField > & aFieldSetthe set into which to add
const TDesC8 & aServiceTypeThe service type
const TDesC8 & aFieldTypeThe field type

AcceptPersonFilterL(const TDesC8 &)

voidAcceptPersonFilterL(const TDesC8 &aFieldName)

Implementation of MXIMPBase interface methods MXIMPBase CXIMPApiDataObjBase MPresenceInfoFilter

Parameters

const TDesC8 & aFieldName

AcceptServiceFilterL(const TDesC8 &, const TDesC8 &)

voidAcceptServiceFilterL(const TDesC8 &aServiceName,
const TDesC8 &aFieldName
)

Parameters

const TDesC8 & aServiceName
const TDesC8 & aFieldName

ConstructL()

voidConstructL()[private]

Contains(CPresenceInfoFilterImp &)

IMPORT_C TBoolContains(CPresenceInfoFilterImp &aCompare)

Compares this filter to the given filter in a set-theoretic sense, whether aSource is a proper subset of this class.

Parameters

CPresenceInfoFilterImp & aCompareThe filter to compare with

ContainsFilterFields(RXIMPObjOwningPtrArray< CFilterField > &, RXIMPObjOwningPtrArray< CFilterField > &)

TBool ContainsFilterFields(RXIMPObjOwningPtrArray< CFilterField > &aA,
RXIMPObjOwningPtrArray< CFilterField > &aCompare
)[private]

ContainsPersonFilter(CDesC8ArraySeg *, CDesC8ArraySeg *)

TBool ContainsPersonFilter(CDesC8ArraySeg *aA,
CDesC8ArraySeg *aCompare
)[private]

Parameters

CDesC8ArraySeg * aA
CDesC8ArraySeg * aCompare

ExternalizeArrayL(const CDesC8ArraySeg *, RWriteStream &)

voidExternalizeArrayL(const CDesC8ArraySeg *aArray,
RWriteStream &aStream
)const [private]

Externalize given array.

Parameters

const CDesC8ArraySeg * aArray
RWriteStream & aStream

ExternalizeFieldSetL(const RXIMPObjOwningPtrArray< CFilterField > &, RWriteStream &)

voidExternalizeFieldSetL(const RXIMPObjOwningPtrArray< CFilterField > &aFieldSet,
RWriteStream &aStream
)const [private]

Externalize a field set.

Parameters

const RXIMPObjOwningPtrArray< CFilterField > & aFieldSet
RWriteStream & aStream

InternalizeArrayL(CDesC8ArraySeg *, RReadStream &)

voidInternalizeArrayL(CDesC8ArraySeg *aArray,
RReadStream &aStream
)[private]

Internalize given array.

Parameters

CDesC8ArraySeg * aArray
RReadStream & aStream

InternalizeFieldSetL(RXIMPObjOwningPtrArray< CFilterField > &, RReadStream &)

voidInternalizeFieldSetL(RXIMPObjOwningPtrArray< CFilterField > &aFieldSet,
RReadStream &aStream
)[private]

Internalize a field set.

Parameters

RXIMPObjOwningPtrArray< CFilterField > & aFieldSet
RReadStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalizes object data from given stream.

Parameters

RReadStream & aStreamStream to read.

MatchDeviceFilterL(const TDesC8 &, const TDesC8 &)

TBool MatchDeviceFilterL(const TDesC8 &aDeviceName,
const TDesC8 &aFieldName
)const

Parameters

const TDesC8 & aDeviceName
const TDesC8 & aFieldName

MatchFilterL(const RXIMPObjOwningPtrArray< CFilterField > &, const TDesC8 &, const TDesC8 &)

TBool MatchFilterL(const RXIMPObjOwningPtrArray< CFilterField > &aFieldSet,
const TDesC8 &aInfoName,
const TDesC8 &aFieldName
)const [private]

Check if the collection of one-to-many filter infoname to fieldnames mappings accepts the given filter parameters.

Parameters

const RXIMPObjOwningPtrArray< CFilterField > & aFieldSetThe field set to use
const TDesC8 & aInfoNameThe info name string with wildcards (*, ?)
const TDesC8 & aFieldNameThe field name string with wildcards (*, ?)

MatchPersonFilter(const TDesC8 &)

TBool MatchPersonFilter(const TDesC8 &aFieldName)const

Parameters

const TDesC8 & aFieldName

MatchServiceFilterL(const TDesC8 &, const TDesC8 &)

TBool MatchServiceFilterL(const TDesC8 &aServiceName,
const TDesC8 &aFieldName
)const

Parameters

const TDesC8 & aServiceName
const TDesC8 & aFieldName

NewL()

IMPORT_C CPresenceInfoFilterImp *NewL()[static]

NewLC()

IMPORT_C CPresenceInfoFilterImp *NewLC()[static]

UnionL(CPresenceInfoFilterImp &, CPresenceInfoFilterImp &)

IMPORT_C CPresenceInfoFilterImp *UnionL(CPresenceInfoFilterImp &aFirst,
CPresenceInfoFilterImp &aSecond
)[static]

Create a new filter which is the union of "first" filter and the "second" filter.

Parameters

CPresenceInfoFilterImp & aFirstThe first filter to use
CPresenceInfoFilterImp & aSecondThe second filter to use

UnionOfFieldsL(RXIMPObjOwningPtrArray< CFilterField > &, RXIMPObjOwningPtrArray< CFilterField > &)

voidUnionOfFieldsL(RXIMPObjOwningPtrArray< CFilterField > &aSource,
RXIMPObjOwningPtrArray< CFilterField > &aTarget
)[private]

Create an union of the given field sets. Source for union Target for union

operator!=(CPresenceInfoFilterImp &)

IMPORT_C TBooloperator!=(CPresenceInfoFilterImp &aSource)

Compares this filter to the given filter

Parameters

CPresenceInfoFilterImp & aSourceThe filter to compare with

operator==(CPresenceInfoFilterImp &)

IMPORT_C TBooloperator==(CPresenceInfoFilterImp &aSource)

Compares this filter to the given filter

Parameters

CPresenceInfoFilterImp & aSourceThe filter to compare with

Member Data Documentation

RXIMPObjOwningPtrArray< CFilterField > iDeviceFilter

RXIMPObjOwningPtrArray< CFilterField >iDeviceFilter[private]

CDesC8ArraySeg * iPersonFilter

CDesC8ArraySeg *iPersonFilter[private]

RXIMPObjOwningPtrArray< CFilterField > iServiceFilter

RXIMPObjOwningPtrArray< CFilterField >iServiceFilter[private]