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 ()
void AcceptDeviceFilterL (const TDesC8 &, const TDesC8 &)
void AcceptPersonFilterL (const TDesC8 &)
void AcceptServiceFilterL (const TDesC8 &, const TDesC8 &)
IMPORT_C TBool Contains ( CPresenceInfoFilterImp &)
IMPORT_C void InternalizeL ( 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 TBool operator!= ( CPresenceInfoFilterImp &)
IMPORT_C TBool operator== ( CPresenceInfoFilterImp &)
Private Member Functions
CPresenceInfoFilterImp ()
void AcceptFilterL ( RXIMPObjOwningPtrArray < CFilterField > &, const TDesC8 &, const TDesC8 &)
void ConstructL ()
TBool ContainsFilterFields ( RXIMPObjOwningPtrArray < CFilterField > &, RXIMPObjOwningPtrArray < CFilterField > &)
TBool ContainsPersonFilter ( CDesC8ArraySeg *, CDesC8ArraySeg *)
void ExternalizeArrayL (const CDesC8ArraySeg *, RWriteStream &)
void ExternalizeFieldSetL (const RXIMPObjOwningPtrArray < CFilterField > &, RWriteStream &)
void InternalizeArrayL ( CDesC8ArraySeg *, RReadStream &)
void InternalizeFieldSetL ( RXIMPObjOwningPtrArray < CFilterField > &, RReadStream &)
TBool MatchFilterL (const RXIMPObjOwningPtrArray < CFilterField > &, const TDesC8 &, const TDesC8 &)
void UnionOfFieldsL ( 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 &)

void AcceptDeviceFilterL ( const TDesC8 & aDeviceName,
const TDesC8 & aFieldName
)

Parameters

const TDesC8 & aDeviceName
const TDesC8 & aFieldName

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

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

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

Parameters

RXIMPObjOwningPtrArray < CFilterField > & aFieldSet the set into which to add
const TDesC8 & aServiceType The service type
const TDesC8 & aFieldType The field type

AcceptPersonFilterL(const TDesC8 &)

void AcceptPersonFilterL ( const TDesC8 & aFieldName )

Parameters

const TDesC8 & aFieldName

AcceptServiceFilterL(const TDesC8 &, const TDesC8 &)

void AcceptServiceFilterL ( const TDesC8 & aServiceName,
const TDesC8 & aFieldName
)

Parameters

const TDesC8 & aServiceName
const TDesC8 & aFieldName

ConstructL()

void ConstructL ( ) [private]

Contains(CPresenceInfoFilterImp &)

IMPORT_C TBool Contains ( 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 & aCompare The 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 &)

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

Externalize given array.

Parameters

const CDesC8ArraySeg * aArray
RWriteStream & aStream

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

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

Externalize a field set.

Parameters

const RXIMPObjOwningPtrArray < CFilterField > & aFieldSet
RWriteStream & aStream

InternalizeArrayL(CDesC8ArraySeg *, RReadStream &)

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

Internalize given array.

Parameters

CDesC8ArraySeg * aArray
RReadStream & aStream

InternalizeFieldSetL(RXIMPObjOwningPtrArray< CFilterField > &, RReadStream &)

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

Internalize a field set.

Parameters

RXIMPObjOwningPtrArray < CFilterField > & aFieldSet
RReadStream & aStream

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )

Internalizes object data from given stream.

Parameters

RReadStream & aStream Stream 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 > & aFieldSet The field set to use
const TDesC8 & aInfoName The info name string with wildcards (*, ?)
const TDesC8 & aFieldName The 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 & aFirst The first filter to use
CPresenceInfoFilterImp & aSecond The second filter to use

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

void UnionOfFieldsL ( 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 TBool operator!= ( CPresenceInfoFilterImp & aSource )

Compares this filter to the given filter

Parameters

CPresenceInfoFilterImp & aSource The filter to compare with

operator==(CPresenceInfoFilterImp &)

IMPORT_C TBool operator== ( CPresenceInfoFilterImp & aSource )

Compares this filter to the given filter

Parameters

CPresenceInfoFilterImp & aSource The 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]