DmfsTaskList

abstract class DmfsTaskList<out T : DmfsTask>(val account: Account, val provider: ContentProviderClient, val providerName: TaskProvider.ProviderName, val taskFactory: DmfsTaskFactory<T>, val id: Long)

Represents a locally stored task list, containing DmfsTasks (tasks). Communicates with tasks.org-compatible content providers (currently tasks.org and OpenTasks) to store the tasks.

Constructors

Link copied to clipboard
constructor(account: Account, provider: ContentProviderClient, providerName: TaskProvider.ProviderName, taskFactory: DmfsTaskFactory<T>, id: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var color: Int?
Link copied to clipboard
val id: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Deletes this calendar from the local calendar provider.

Link copied to clipboard
fun findById(id: Long): <Error class: unknown class>
Link copied to clipboard
fun queryTasks(_where: String? = null, _whereArgs: Array<String>? = null): List<T>

Queries tasks from this task list. Adds a WHERE clause that restricts the query to Tasks.LIST_ID = id.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun tasksSyncUri(loadProperties: Boolean = false): Uri
Link copied to clipboard

When tasks are added or updated, they may refer to related tasks by UID (Relation.RELATED_UID). However, those related tasks may not be available (for instance, because they have not been synchronized yet), so that the tasks provider can't establish the actual relation (= set Relation.TASK_ID) in the database.

Link copied to clipboard