TaskContract

Task contract. This class defines the interface to the task provider.

TODO: Add missing javadoc.

TODO: Specify extended properties

TODO: Add CONTENT_URI for the attachment store.

TODO: Also, we could use some refactoring...

Author

Marten Gajda

Tobias Reinsch

Types

Link copied to clipboard
Link copied to clipboard
interface AlarmsColumns
Link copied to clipboard
Link copied to clipboard
Available values in Categories.
Link copied to clipboard
A set of columns for synchronization purposes.
Link copied to clipboard
interface InstanceColumns
Columns of a task instance.
Link copied to clipboard
A table containing one entry per task instance.
Link copied to clipboard
interface Property
Link copied to clipboard
interface PropertyColumns
Link copied to clipboard
Link copied to clipboard
A table provided for sync adapters to use for storing private sync state data.
Link copied to clipboard
Task data columns.
Link copied to clipboard
interface TaskListColumns
Data columns of task lists.
Link copied to clipboard
The task list table holds one entry for each task list.
Link copied to clipboard
Additional sync columns for task lists.
Link copied to clipboard
Link copied to clipboard
Columns that are valid in a search query.
Link copied to clipboard
interface TaskSyncColumns
Additional sync columns for tasks.

Properties

Link copied to clipboard
val ACCOUNT_NAME: String = "account_name"
URI parameter to submit the account name of the account we operate on.
Link copied to clipboard
val ACCOUNT_TYPE: String = "account_type"
URI parameter to submit the account type of the account we operate on.
Link copied to clipboard
val ACTION_BROADCAST_TASK_DUE: String = "org.dmfs.android.tasks.TASK_DUE"
The action of the broadcast that's send when a task becomes due.
Link copied to clipboard
val ACTION_BROADCAST_TASK_STARTING: String = "org.dmfs.android.tasks.TASK_START"
The action of the broadcast that's send when a task starts.
Link copied to clipboard
val ACTION_DATABASE_INITIALIZED: String = "org.dmfs.tasks.DATABASE_INITIALIZED"
Broadcast action that's sent when the task database has been initialized, either because the app was launched for the first time or because the app was launched after the user cleared the app data.
Link copied to clipboard
val CALLER_IS_SYNCADAPTER: String = "caller_is_syncadapter"
URI parameter to signal that the caller is a sync adapter.
Link copied to clipboard
val EXTRA_OPERATIONS: String = "org.dmfs.tasks.OPERATIONS"
The name of the ACTION_PROVIDER_CHANGED extra that contains the ArrayList of provider operation codes.
Link copied to clipboard
val EXTRA_OPERATIONS_URIS: String = "org.dmfs.tasks.OPERATIONS_URIS"
The name of the ACTION_PROVIDER_CHANGED extra that contains the ArrayList of Uris that have been modified.
Link copied to clipboard
val EXTRA_TASK_ALLDAY: String = "org.dmfs.provider.tasks.extra.ALLDAY"
A Boolean extra to indicate that the event that was triggered is an all-day date.
Link copied to clipboard
val EXTRA_TASK_TIMESTAMP: String = "org.dmfs.provider.tasks.extra.TIMESTAMP"
A Long extra that contains a timestamp of the event that's triggered.
Link copied to clipboard
val EXTRA_TASK_TIMEZONE: String = "org.dmfs.provider.tasks.extra.TIMEZONE"
A String extra containing the timezone id of the task.
Link copied to clipboard
val EXTRA_TASK_TITLE: String = "org.dmfs.provider.tasks.extra.TITLE"
A String extra containing the title of the task.
Link copied to clipboard
val LOAD_PROPERTIES: String = "load_properties"
URI parameter to signal the request of the extended properties of a task.
Link copied to clipboard
val LOCAL_ACCOUNT_NAME: String = "Local"
Account name for local, unsynced task lists.
Link copied to clipboard
val LOCAL_ACCOUNT_TYPE: String = "org.dmfs.account.LOCAL"
Account type for local, unsynced task lists.
Link copied to clipboard
val MIMETYPE_AUTHORITY: String = "vnd.android.cursor.dir/vnd.org.dmfs.authority.mimetype"
A MIME type of an authority.

Functions

Link copied to clipboard
open fun getContentUri(authority: String): Uri
Get the base content Uri using the given authority.