KGAPI2::TasksService

KGAPI2::TasksService Namespace Reference

Functions

QUrl createTaskListUrl ()
 
QUrl createTaskUrl (const QString &tasklistID)
 
QUrl fetchAllTasksUrl (const QString &tasklistID)
 
QUrl fetchTaskListsUrl ()
 
QUrl fetchTaskUrl (const QString &tasklistID, const QString &taskID)
 
TaskPtr JSONToTask (const QByteArray &jsonData)
 
TaskListPtr JSONToTaskList (const QByteArray &jsonData)
 
QUrl moveTaskUrl (const QString &tasklistID, const QString &taskID, const QString &newParent)
 
ObjectsList parseJSONFeed (const QByteArray &jsonFeed, FeedData &feedData)
 
QUrl removeTaskListUrl (const QString &tasklistID)
 
QUrl removeTaskUrl (const QString &tasklistID, const QString &taskID)
 
QByteArray taskListToJSON (const TaskListPtr &taskList)
 
QByteArray taskToJSON (const TaskPtr &task)
 
QUrl updateTaskListUrl (const QString &tasklistID)
 
QUrl updateTaskUrl (const QString &tasklistID, const QString &taskID)
 

Detailed Description

Additional methods for implementing support for Google Tasks service.

You should never need to use these methods, unless implementing your own Job

Function Documentation

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::createTaskListUrl ( )

Returns URL for creating a new tasklist.

Definition at line 162 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::createTaskUrl ( const QString tasklistID)

Returns URL to create a single task.

Parameters
tasklistIDID of parent task list

Definition at line 121 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::fetchAllTasksUrl ( const QString tasklistID)

Returns URL to fetch all tasks from a single tasklist.

Parameters
tasklistIDID of parent task list

Definition at line 107 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::fetchTaskListsUrl ( )

Returns URL for fetching all tasklists.

Definition at line 155 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::fetchTaskUrl ( const QString tasklistID,
const QString taskID 
)

Returns URL for fetching a single task.

Parameters
tasklistIDID of parent task list
taskIDID of task to fetch

Definition at line 114 of file tasksservice.cpp.

KGAPITASKS_EXPORT TaskPtr KGAPI2::TasksService::JSONToTask ( const QByteArray jsonData)

Parses JSON data into a Task object.

Parameters
jsonData

Definition at line 243 of file tasksservice.cpp.

KGAPITASKS_EXPORT TaskListPtr KGAPI2::TasksService::JSONToTaskList ( const QByteArray jsonData)

Parses JSON data into a TaskList object.

Parameters
jsonData

Definition at line 198 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::moveTaskUrl ( const QString tasklistID,
const QString taskID,
const QString newParent 
)

Returns URL to reparent task.

Parameters
tasklistIDID of parent task list
taskIDID of task to move
newParentUID of new parent item

Definition at line 142 of file tasksservice.cpp.

KGAPITASKS_EXPORT ObjectsList KGAPI2::TasksService::parseJSONFeed ( const QByteArray jsonFeed,
FeedData feedData 
)

Parses JSON feed into list of Tasks or TaskLists.

Parameters
jsonFeed
feedDataThe structure will be filled with additional information about the feed

Definition at line 64 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::removeTaskListUrl ( const QString tasklistID)

Returns URL for deleting a tasklist.

Parameters
tasklistIDID of task list to remove

Definition at line 176 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::removeTaskUrl ( const QString tasklistID,
const QString taskID 
)

Returns URL for removing a task.

Parameters
tasklistIDID of parent task list
taskIDID of task to remove

Definition at line 135 of file tasksservice.cpp.

KGAPITASKS_EXPORT QByteArray KGAPI2::TasksService::taskListToJSON ( const TaskListPtr taskList)

Serializes a TaskList into JSON data.

Parameters
taskList

Definition at line 255 of file tasksservice.cpp.

KGAPITASKS_EXPORT QByteArray KGAPI2::TasksService::taskToJSON ( const TaskPtr task)

Serializes a Task object into JSON.

Parameters
task

Definition at line 269 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::updateTaskListUrl ( const QString tasklistID)

Returns URL for modifying a tasklist.

Parameters
tasklistIDID of task list to update

Definition at line 169 of file tasksservice.cpp.

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::updateTaskUrl ( const QString tasklistID,
const QString taskID 
)

Returns URL for updating a task.

Parameters
tasklistIDID of parent task list
taskIDID of task to update

Definition at line 128 of file tasksservice.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:09:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.