Location:
agmbasic.h
Link against: agnmodel.lib
TAgnBasicTodo
Supported from 5.0
Used by the CAgnTodo
class to store to-do specific
entry details. These details include the ID of the to-do list to which the
entry belongs, the due and crossed out dates and the display time. Normally,
these details are accessed using member functions of the CAgnTodo
class. You can get a TAgnBasicTodo
instance by calling
CAgnTodo::BasicTodo()
.
Defined in TAgnBasicTodo
:
CrossedOutDate()
, DisplayTime()
, DueDate()
, Duration()
, IsAlarmSetFromDueDate()
, IsAlarmSetFromStartDate()
, Priority()
, SetAlarmFromDueDate()
, SetAlarmFromStartDate()
, SetDisplayTime()
, SetDueDate()
, SetDuration()
, SetPriority()
, SetTodoListId()
, TodoListId()
TAgnDate CrossedOutDate() const;
Returns the crossed out date, i.e. the date on which the action required by the to-do entry was carried out.
|
TAgnTime DisplayTime() const;
Returns the display time (a number of minutes from midnight — between zero and 1439 inclusive).
|
TAgnDate DueDate() const;
Returns the due date (indicates the date by which the action should be carried out).
|
TAgnDurationDays Duration() const;
Returns the duration (the number of days between the start date and the due date).
|
TBool IsAlarmSetFromDueDate() const;
Tests whether the alarm is set from the due date, rather than the start date.
|
TBool IsAlarmSetFromStartDate() const;
Tests whether the alarm is set from the start date, rather than the due date.
|
TUint Priority() const;
Returns the priority of the current to-do entry, as set by
SetPriority()
. The default is zero.
|
TAgnTodoListId TodoListId() const;
Returns the ID of the to-do list to which the entry belongs.
|
void SetAlarmFromDueDate();
Sets the alarm date to be a number of days from the due date, rather than from the start date.
void SetAlarmFromStartDate();
Sets the alarm date to be a number of days from the start date, rather than from the due date.
void SetDisplayTime(TAgnTime aDisplayTime);
Sets the display time (the time at which the entry is displayed in dated views — a number of minutes from midnight; between zero and 1439 inclusive).
|
void SetDueDate(TAgnDate aDueDate);
Sets the due date (this should be a null value for an undated to-do).
|
void SetDuration(TAgnDurationDays aDuration);
Sets the duration (the number of days between the start date and the due date).
|
void SetPriority(TUint aPriority);
Sets the priority of the to-do entry.
|
void SetTodoListId(TAgnTodoListId aTodoListId);
Sets the ID of the to-do list to which the entry belongs.
|