QContactChangeLogFilter Class

The QContactChangeLogFilter class provides a filter based around a contact timestamp criterion. More...

Header: #include <QContactChangeLogFilter>
Inherits: QContactFilter

Public Types

enum EventType { EventAdded, EventChanged, EventRemoved }

Public Functions

QContactChangeLogFilter(QContactChangeLogFilter::EventType type = QContactChangeLogFilter::EventAdded)
QContactChangeLogFilter(const QContactFilter & other)
QContactChangeLogFilter::EventType eventType() const
void setEventType(QContactChangeLogFilter::EventType type)
void setSince(const QDateTime & since)
QDateTime since() const

Detailed Description

The QContactChangeLogFilter class provides a filter based around a contact timestamp criterion.

It may be used to select contacts which have been updated or created within a certain period of time.

Member Type Documentation

enum QContactChangeLogFilter::EventType

Enumerates the type of changes which a changelog filter can match against

ConstantValue
QContactChangeLogFilter::EventAdded0
QContactChangeLogFilter::EventChanged1
QContactChangeLogFilter::EventRemoved2

Member Function Documentation

QContactChangeLogFilter::QContactChangeLogFilter(QContactChangeLogFilter::EventType type = QContactChangeLogFilter::EventAdded)

Constructs a new changelog filter which matches changes of the specified type

QContactChangeLogFilter::QContactChangeLogFilter(const QContactFilter & other)

Constructs a copy of other if possible, otherwise constructs a new changelog filter

QContactChangeLogFilter::EventType QContactChangeLogFilter::eventType() const

Returns the type of change that this filter will match against

See also setEventType().

void QContactChangeLogFilter::setEventType(QContactChangeLogFilter::EventType type)

Sets the type of change that this filter will match against to type

See also eventType().

void QContactChangeLogFilter::setSince(const QDateTime & since)

Sets the date and time lower-bound criterion of the filter to since

See also since().

QDateTime QContactChangeLogFilter::since() const

Returns the date and time lower-bound criterion of the filter

See also setSince().