Location:
agmtodos.h
Link against: agnmodel.lib
CAgnTodoList
Supported from 5.0
A to-do list is a list of to-do entries. It has a name, an ID and display settings. The display settings include the sort order, whether to-do entries should be displayed in other views and whether crossed out to-do entries should be displayed.
A to-do instance list (CAgnTodoInstanceList) on the
other hand, contains a list of to-do instance IDs that match the filter
criteria specified when populating the list and holds a subset of a to-do
list's entries that are to be displayed at a given time.
To-do lists are held in a list of to-do lists
(CAgnTodoListList), which is owned by the agenda model. Before a
new to-do entry is added to the model, the to-do list to which it belongs must
be specified using CAgnTodo::SetTodoListId().
|
Defined in CAgnTodoList:
ChangeTodoOrderL(), CopyBasicsFrom(), Count(), DefaultDisplayTimeInOtherViews(), DisplayCrossedOutEntries(), DisplayCrossedOutEntriesInOtherViews(), DisplayEntriesInOtherViews(), EByDate, EByPriority, EManual, Id(), Name(), NewL(), SetDefaultDisplayTimeInOtherViews(), SetDisplayCrossedOutEntries(), SetDisplayCrossedOutEntriesInOtherViews(), SetDisplayEntriesInOtherViews(), SetName(), SetSortOrder(), SetTodoDefaults(), SetTodoDisplaySettings(), SortOrder(), TSortOrder, TodoDefaults(), TodoDisplaySettings(), ~CAgnTodoList()
Inherited from CBase:
operator new()
static CAgnTodoList* NewL();
Allocates memory for and constructs a new to-do list. If allocation is successful, it returns a pointer to the new object. A leave occurs if there is insufficient memory available.
|
virtual ~CAgnTodoList();
The destructor deletes the array of entry IDs owned by the object, prior to its destruction.
TBool DisplayEntriesInOtherViews() const;
Returns whether to-do entries should be displayed in views other than the to-do view.
|
void SetDisplayEntriesInOtherViews(TBool aSetting);
Sets whether to-do entries should be displayed in views other than the to-do view and updates the to-do list's last changed date/time.
|
TTimeIntervalMinutes DefaultDisplayTimeInOtherViews() const;
Returns the default display time for to-do entries which belong to this
to-do list in views other than the to-do view. This value is a number of
minutes since midnight and is set by
SetDefaultDisplayTimeInOtherViews().
|
void SetDefaultDisplayTimeInOtherViews(TTimeIntervalMinutes aTime);
For to-do entries belonging to this to-do list, sets the default display time setting for views other than the to-do view. The value is a number of minutes since midnight.
|
TBool DisplayCrossedOutEntries() const;
Tests whether crossed out to-do entries should be displayed in the to-do
view as set by SetDisplayCrossedOutEntries().
|
void SetDisplayCrossedOutEntries(TBool aDisplay);
Sets whether crossed out to-do entries should be displayed in the to-do view and updates the to-do list's last changed date/time.
|
TBool DisplayCrossedOutEntriesInOtherViews() const;
Tests whether crossed out to-do entries should be displayed in views
other than the to-do view as set by
SetDisplayCrossedOutEntriesInOtherViews().
|
void SetDisplayCrossedOutEntriesInOtherViews(TBool aSetting);
Sets whether crossed out to-do entries should be displayed in views other than the to-do view and updates the to-do list's last changed date/time.
|
const TAgnTodoDisplaySettings& TodoDisplaySettings() const;
Returns the settings that control how to-do entries are displayed in
views other than the to-do view. Note that all of these settings can also be
retrieved using other member functions of
CAgnTodoList.
|
void SetTodoDisplaySettings(const TAgnTodoDisplaySettings& aSettings);
Sets the settings that control how to-do entries are displayed in views
other than the to-do view. Note that all of these settings can also be set
using other member functions of CAgnTodoList.
|
TPtrC Name() const;
Gets the name of the to-do list, as set by
SetName().
|
void SetName(const TDesC& aName);
Sets the name for the to-do list. The maximum length for the name is 50 characters. If the name is more than 50 characters, only the first 50 will be used.
|
TSortOrder SortOrder() const;
Gets the sort order of the to-do entries in the to-do list as it is
displayed in the to-do view. Also updates the last changed date/time. The sort
order is set by SetSortOrder().
|
void SetSortOrder(TSortOrder aSortOrder);
Sets the sort order of the to-do entries in the to-do list as it is displayed in the to-do view. This is not the sort order of the to-do entries in the to-do list object.
|
void ChangeTodoOrderL(TAgnEntryId aId,TAgnEntryId aTodoPositionReferenceId = AgnModel::NullId());
Moves an entry from its current position to the position before
aTodoPositionReferenceId. This function should only be called if
the sort order is EManual. If
aTodoPositionReferenceId is null (the default), or if
aTodoPositionReferenceId is not found, aId is added
to the end of the list.
|
TAgnTodoListId Id() const;
Gets the to-do list ID.
|
TInt Count() const;
Gets the number of to-do entries in the list.
|
void CopyBasicsFrom(const CAgnTodoList* aTodoList);
Copy the details (including name, sort order, display settings and
default settings, but not including the to-do list ID or any to-do entries)
from aTodoList into this to-do list.
|
const TAgnTodoDefaults& TodoDefaults() const;
Returns the default settings given to a new to-do entry.
|
void SetTodoDefaults(const TAgnTodoDefaults& aTodoDefaults);
Changes the default settings given to a new to-do entry. Also updates the
to-do list's last changed date/time. The to-do entry defaults have default
values — for details see the documentation of class
TAgnTodoDefaults.
|
TSortOrder
Ordering of to-do entries as displayed in a view
|