|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.todoroo.andlib.data.AbstractModel
com.todoroo.astrid.data.RemoteModel
com.todoroo.astrid.data.Task
public final class Task
Data Model which represents a task users need to accomplish.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.todoroo.andlib.data.AbstractModel |
|---|
AbstractModel.ContentValuesSavingVisitor |
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
android.os.Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Property.StringProperty |
CALENDAR_URI
|
static Property.IntegerProperty |
COMMENT_COUNT
Comment Count |
static Property.LongProperty |
COMPLETION_DATE
Unixtime Task was completed. |
static android.net.Uri |
CONTENT_URI
content uri for this model |
static Property.LongProperty |
CREATION_DATE
Unixtime Task was created |
static android.os.Parcelable.Creator<Task> |
CREATOR
|
static Property.LongProperty |
CREATOR_ID
Creator user id |
static Property.LongProperty |
DELETION_DATE
Unixtime Task was deleted. |
static Property.StringProperty |
DETAILS
Cached Details Column - built from add-on detail exposers. |
static Property.LongProperty |
DETAILS_DATE
Date details were last updated |
static Property.LongProperty |
DUE_DATE
Unixtime Task is due, 0 if not set |
static Property.IntegerProperty |
ELAPSED_SECONDS
|
static Property.IntegerProperty |
ESTIMATED_SECONDS
|
static int |
FLAG_IS_READONLY
whether task is read-only |
static int |
FLAG_REPEAT_AFTER_COMPLETION
whether repeat occurs relative to completion date instead of due date |
static Property.IntegerProperty |
FLAGS
|
static Property.LongProperty |
HIDE_UNTIL
Unixtime Task should be hidden until, 0 if not set |
static int |
HIDE_UNTIL_DAY_BEFORE
|
static int |
HIDE_UNTIL_DUE
|
static int |
HIDE_UNTIL_NONE
hide until array index -> significance |
static int |
HIDE_UNTIL_SPECIFIC_DAY
|
static int |
HIDE_UNTIL_SPECIFIC_DAY_TIME
|
static int |
HIDE_UNTIL_WEEK_BEFORE
|
static Property.LongProperty |
ID
ID |
static Property.IntegerProperty |
IMPORTANCE
Importance of Task (see importance flags) |
static int |
IMPORTANCE_DO_OR_DIE
|
static int |
IMPORTANCE_LEAST
|
static int |
IMPORTANCE_MOST
|
static int |
IMPORTANCE_MUST_DO
|
static int |
IMPORTANCE_NONE
|
static int |
IMPORTANCE_SHOULD_DO
|
static Property.LongProperty |
LAST_SYNC
Last Sync date |
static Property.LongProperty |
MODIFICATION_DATE
Unixtime Task was last touched |
static Property.StringProperty |
NOTES
|
static int |
NOTIFY_AFTER_DEADLINE
whether to send reminders while task is overdue |
static int |
NOTIFY_AT_DEADLINE
whether to send a reminder at deadline |
static int |
NOTIFY_MODE_FIVE
reminder mode five times (exclusive with non-stop) |
static int |
NOTIFY_MODE_NONSTOP
reminder mode non-stop |
static Property.IntegerProperty |
POSTPONE_COUNT
|
static Property<?>[] |
PROPERTIES
List of all properties for this model |
static Property.StringProperty |
RECURRENCE
|
static Property.IntegerProperty |
REMINDER_FLAGS
Flags for when to send reminders |
static Property.LongProperty |
REMINDER_LAST
Unixtime the last reminder was triggered |
static Property.LongProperty |
REMINDER_PERIOD
Reminder period, in milliseconds. |
static Property.LongProperty |
REMINDER_SNOOZE
Unixtime snooze is set (0 -> no snooze) |
static Property.LongProperty |
REMOTE_ID
Remote id |
static Property.StringProperty |
SHARED_WITH
|
static Table |
TABLE
table for this model |
static Property.LongProperty |
TIMER_START
|
static Property.StringProperty |
TITLE
Name of Task |
static int |
URGENCY_DAY_AFTER
|
static int |
URGENCY_IN_TWO_WEEKS
|
static int |
URGENCY_NEXT_MONTH
|
static int |
URGENCY_NEXT_WEEK
|
static int |
URGENCY_NONE
urgency array index -> significance |
static int |
URGENCY_SPECIFIC_DAY
|
static int |
URGENCY_SPECIFIC_DAY_TIME
|
static int |
URGENCY_TODAY
|
static int |
URGENCY_TOMORROW
|
static Property.StringProperty |
USER
User Object (JSON) |
static Property.LongProperty |
USER_ID
Assigned user id |
static long |
USER_ID_EMAIL
user id = read user email value |
static long |
USER_ID_SELF
user id = myself |
static long |
USER_ID_UNASSIGNED
user id = unassigned |
| Fields inherited from class com.todoroo.astrid.data.RemoteModel |
|---|
REMOTE_ID_PROPERTY, REMOTE_ID_PROPERTY_NAME, USER_ID_PROPERTY, USER_JSON_PROPERTY |
| Fields inherited from class com.todoroo.andlib.data.AbstractModel |
|---|
ID_PROPERTY, NO_ID |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
Task()
|
|
Task(TodorooCursor<Task> cursor)
|
|
| Method Summary | |
|---|---|
static long |
createDueDate(int setting,
long customDate)
Creates due date for this task. |
long |
createHideUntil(int setting,
long customDate)
Create hide until for this task. |
android.content.ContentValues |
getDefaultValues()
Get the default values for this object |
long |
getId()
Utility method to get the identifier of the model, if it exists. |
static int[] |
getImportanceColors(android.content.res.Resources r)
|
boolean |
hasDueDate()
Checks whether task is done. |
boolean |
hasDueTime()
Checks whether this due date has a due time or only a date |
static boolean |
hasDueTime(long dueDate)
Checks whether provided due date has a due time or only a date |
boolean |
isCompleted()
Checks whether task is done. |
boolean |
isDeleted()
Checks whether task is deleted. |
boolean |
isHidden()
Checks whether task is hidden. |
void |
readFromCursor(TodorooCursor<Task> cursor)
|
| Methods inherited from class com.todoroo.andlib.data.AbstractModel |
|---|
clear, clearValue, clone, containsNonNullValue, containsValue, describeContents, equals, getDatabaseValues, getFlag, getMergedValues, getSetValues, getTransitory, getValue, hashCode, isModified, isSaved, markSaved, mergeWith, putTransitory, setFlag, setId, setValue, writeToParcel |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Table TABLE
public static final android.net.Uri CONTENT_URI
public static final Property.LongProperty ID
public static final Property.StringProperty TITLE
public static final Property.IntegerProperty IMPORTANCE
public static final Property.LongProperty DUE_DATE
public static final Property.LongProperty HIDE_UNTIL
public static final Property.LongProperty CREATION_DATE
public static final Property.LongProperty MODIFICATION_DATE
public static final Property.LongProperty COMPLETION_DATE
public static final Property.LongProperty DELETION_DATE
public static final Property.StringProperty DETAILS
public static final Property.LongProperty DETAILS_DATE
public static final Property.IntegerProperty FLAGS
public static final Property.StringProperty NOTES
public static final Property.IntegerProperty ESTIMATED_SECONDS
public static final Property.IntegerProperty ELAPSED_SECONDS
public static final Property.LongProperty TIMER_START
public static final Property.IntegerProperty POSTPONE_COUNT
public static final Property.IntegerProperty REMINDER_FLAGS
public static final Property.LongProperty REMINDER_PERIOD
public static final Property.LongProperty REMINDER_LAST
public static final Property.LongProperty REMINDER_SNOOZE
public static final Property.StringProperty RECURRENCE
public static final Property.StringProperty CALENDAR_URI
public static final Property.LongProperty REMOTE_ID
public static final Property.LongProperty USER_ID
public static final Property.StringProperty USER
public static final Property.LongProperty CREATOR_ID
public static final Property.StringProperty SHARED_WITH
public static final Property.IntegerProperty COMMENT_COUNT
public static final Property.LongProperty LAST_SYNC
public static final Property<?>[] PROPERTIES
public static final int FLAG_REPEAT_AFTER_COMPLETION
public static final int FLAG_IS_READONLY
public static final long USER_ID_EMAIL
public static final long USER_ID_UNASSIGNED
public static final long USER_ID_SELF
public static final int NOTIFY_AT_DEADLINE
public static final int NOTIFY_AFTER_DEADLINE
public static final int NOTIFY_MODE_NONSTOP
public static final int NOTIFY_MODE_FIVE
public static final int IMPORTANCE_DO_OR_DIE
public static final int IMPORTANCE_MUST_DO
public static final int IMPORTANCE_SHOULD_DO
public static final int IMPORTANCE_NONE
public static int IMPORTANCE_MOST
public static int IMPORTANCE_LEAST
public static final android.os.Parcelable.Creator<Task> CREATOR
public static final int URGENCY_NONE
public static final int URGENCY_TODAY
public static final int URGENCY_TOMORROW
public static final int URGENCY_DAY_AFTER
public static final int URGENCY_NEXT_WEEK
public static final int URGENCY_IN_TWO_WEEKS
public static final int URGENCY_NEXT_MONTH
public static final int URGENCY_SPECIFIC_DAY
public static final int URGENCY_SPECIFIC_DAY_TIME
public static final int HIDE_UNTIL_NONE
public static final int HIDE_UNTIL_DUE
public static final int HIDE_UNTIL_DAY_BEFORE
public static final int HIDE_UNTIL_WEEK_BEFORE
public static final int HIDE_UNTIL_SPECIFIC_DAY
public static final int HIDE_UNTIL_SPECIFIC_DAY_TIME
| Constructor Detail |
|---|
public Task()
public Task(TodorooCursor<Task> cursor)
| Method Detail |
|---|
public static int[] getImportanceColors(android.content.res.Resources r)
public android.content.ContentValues getDefaultValues()
AbstractModel
getDefaultValues in class AbstractModelpublic void readFromCursor(TodorooCursor<Task> cursor)
public long getId()
AbstractModel
getId in class AbstractModelpublic boolean isCompleted()
public boolean isDeleted()
public boolean isHidden()
public boolean hasDueDate()
public static long createDueDate(int setting,
long customDate)
setting - one of the URGENCY_* constantscustomDate - if specific day or day & time is set, this value
public long createHideUntil(int setting,
long customDate)
setting - one of the HIDE_UNTIL_* constantscustomDate - if specific day is set, this value
public boolean hasDueTime()
public static boolean hasDueTime(long dueDate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||