Akonadi
itemfetchjob.cpp
Collection parentCollection() const
Returns the parent collection of this object.
Definition collection.cpp:195
Base class for exceptions used by the Akonadi library.
Definition exceptionbase.h:30
const char * what() const noexcept override
Returns the error message associated with this exception.
Definition exception.cpp:65
bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition itemfetchjob.cpp:179
void itemsReceived(const Akonadi::Item::List &items)
This signal is emitted whenever new items have been fetched completely.
void setDeliveryOption(DeliveryOptions options)
Sets the mechanisms by which the items should be fetched.
Definition itemfetchjob.cpp:251
ItemFetchJob(const Collection &collection, QObject *parent=nullptr)
Creates a new item fetch job that retrieves all items inside the given collection.
Definition itemfetchjob.cpp:110
void setFetchScope(const ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition itemfetchjob.cpp:230
void setLimit(int limit, int start, Qt::SortOrder order=Qt::DescendingOrder)
Sets the limit of fetched items.
Definition itemfetchjob.cpp:272
void setCollection(const Collection &collection)
Specifies the collection the item is in.
Definition itemfetchjob.cpp:244
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition itemfetchjob.cpp:161
@ EmitItemsInBatches
emitted via signal in bulk (collected and emitted delayed via timer)
Definition itemfetchjob.h:197
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition itemfetchscope.h:58
QDateTime fetchChangedSince() const
Returns timestamp of the oldest item to fetch.
Definition itemfetchscope.cpp:186
virtual bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition job.cpp:381
void start() override
Jobs are started automatically once entering the event loop again, no need to explicitly call this.
Definition job.cpp:313
void setErrorText(const QString &errorText)
void emitResult()
void setError(int errorCode)
Q_SCRIPTABLE Q_NOREPLY void start()
Helper integration between Akonadi and Qt.
bool isValid() const const
QString toString(QStringView format, QCalendar cal) const const
void clear()
bool isEmpty() const const
qsizetype size() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString arg(Args &&... args) const const
QString fromUtf8(QByteArrayView str)
QString number(double n, char format, int precision)
SortOrder
void setInterval(int msec)
void setSingleShot(bool singleShot)
void stop()
void timeout()
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.