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

◆ createTaskListUrl()

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::createTaskListUrl ( )

Returns URL for creating a new tasklist.

Definition at line 163 of file tasksservice.cpp.

◆ createTaskUrl()

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 122 of file tasksservice.cpp.

◆ fetchAllTasksUrl()

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 108 of file tasksservice.cpp.

◆ fetchTaskListsUrl()

KGAPITASKS_EXPORT QUrl KGAPI2::TasksService::fetchTaskListsUrl ( )

Returns URL for fetching all tasklists.

Definition at line 156 of file tasksservice.cpp.

◆ fetchTaskUrl()

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 115 of file tasksservice.cpp.

◆ JSONToTask()

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

Parses JSON data into a Task object.

Parameters
jsonData

Definition at line 246 of file tasksservice.cpp.

◆ JSONToTaskList()

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

Parses JSON data into a TaskList object.

Parameters
jsonData

Definition at line 199 of file tasksservice.cpp.

◆ moveTaskUrl()

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 143 of file tasksservice.cpp.

◆ parseJSONFeed()

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 65 of file tasksservice.cpp.

◆ removeTaskListUrl()

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 177 of file tasksservice.cpp.

◆ removeTaskUrl()

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 136 of file tasksservice.cpp.

◆ taskListToJSON()

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

Serializes a TaskList into JSON data.

Parameters
taskList

Definition at line 258 of file tasksservice.cpp.

◆ taskToJSON()

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

Serializes a Task object into JSON.

Parameters
task

Definition at line 272 of file tasksservice.cpp.

◆ updateTaskListUrl()

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 170 of file tasksservice.cpp.

◆ updateTaskUrl()

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 129 of file tasksservice.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.