Kgapi
taskfetchjob.cpp
56TaskFetchJob::TaskFetchJob(const QString &taskId, const QString &taskListId, const AccountPtr &account, QObject *parent)
200ObjectsList TaskFetchJob::handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData)
Abstract superclass for all jobs that fetch resources from Google.
Definition fetchjob.h:25
void setErrorString(const QString &errorString)
Set job error description to errorString.
Definition job.cpp:401
virtual void enqueueRequest(const QNetworkRequest &request, const QByteArray &data=QByteArray(), const QString &contentType=QString())
Enqueues request in dispatcher queue.
Definition job.cpp:513
A job to fetch all tasks from given tasklist in user's Google Tasks account.
Definition taskfetchjob.h:27
quint64 completedMin
Timestamp of the oldest completed task that will be fetched.
Definition taskfetchjob.h:101
quint64 fetchOnlyUpdated
Timestamp to fetch only tasks modified since then.
Definition taskfetchjob.h:71
void setDueMin(quint64 timestamp)
Sets timestamp of oldest due task that can be fetched.
Definition taskfetchjob.cpp:136
quint64 completedMax
Timestamp of the newest completed task that will be fetched.
Definition taskfetchjob.h:86
ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::FetchJob::handleReplyWithItems implementation.
Definition taskfetchjob.cpp:200
void setCompletedMax(quint64 timestamp)
Sets timestamp of newest completed task that can be fetched.
Definition taskfetchjob.cpp:122
void setCompletedMin(quint64 timestamp)
Sets timestamp of oldest completed task that can be fetched.
Definition taskfetchjob.cpp:108
void setFetchCompleted(bool fetchCompleted=true)
Sets whether the job should fetch completed tasks.
Definition taskfetchjob.cpp:80
void setFetchDeleted(bool fetchDeleted=true)
Sets whether to fetch should deleted tasks.
Definition taskfetchjob.cpp:94
void setDueMax(quint64 timestamp)
Sets timestamp of newest due task that can be fetched.
Definition taskfetchjob.cpp:150
TaskFetchJob(const QString &taskListId, const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will fetch all tasks from a tasklist with given taskListId.
Definition taskfetchjob.cpp:49
void setFetchOnlyUpdated(quint64 timestamp)
Sets the job to fetch only events modified since timestamp.
Definition taskfetchjob.cpp:66
ObjectsList parseJSONFeed(const QByteArray &jsonFeed, FeedData &feedData)
Parses JSON feed into list of Tasks or TaskLists.
Definition tasksservice.cpp:65
QUrl fetchAllTasksUrl(const QString &tasklistID)
Returns URL to fetch all tasks from a single tasklist.
Definition tasksservice.cpp:108
QUrl fetchTaskUrl(const QString &tasklistID, const QString &taskID)
Returns URL for fetching a single task.
Definition tasksservice.cpp:115
TaskPtr JSONToTask(const QByteArray &jsonData)
Parses JSON data into a Task object.
Definition tasksservice.cpp:246
QVariant header(QNetworkRequest::KnownHeaders header) const const
QUrl url() const const
ContentTypeHeader
QString tr(const char *sourceText, const char *disambiguation, int n)
bool isValid() const const
void setQuery(const QString &query, ParsingMode mode)
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 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:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.