Location:
agmsiter.h
Link against: agnmodel.lib
CAgnSyncIter
Supported from 5.0
Agenda model entry iterator used for synchronisation.
To use this class, the agenda model must be in client mode. If the
model is not in client mode, use the TAgnEntryIter
class
instead.
The following code sets up a CAgnSyncIter
and uses it
to iterate through all entries:
CAgnSyncIter* iter = CAgnSyncIter::NewL(agnServer);
CleanupStack::PushL(iter); // Push onto cleanup stack
iter->First(); // go to the first entry
while (iter->Available())
{
CAgnEntry* entry = model->FetchEntryL(iter->UniqueId());
// ... do something with the entry
iter->Next(); // move to next entry
}
CleanupStack::PopAndDestroy(); // iter
|
Defined in CAgnSyncIter
:
Available()
, EntryId()
, First()
, HasBeenDeleted()
, LastChangedDate()
, NewL()
, Next()
, Type()
, UniqueId()
Inherited from CBase
:
operator new()
static CAgnSyncIter* NewL(RAgendaServ* aServ);
Allocates and constructs a new synchronisation iterator. The iterator's position is initialised to zero.
|
|
TBool Available();
Tests whether there is an entry at the current iterator position. Call
this function after calling First()
or
Next()
.
|
TAgnEntryId EntryId();
Gets the entry ID of the entry at the current iterator position, if an entry is available.
|
TAgnUniqueId UniqueId();
Gets the unique ID of the entry at the current iterator position, if an entry is available.
|
TBool HasBeenDeleted();
Tests whether the entry at the current iterator position, if one is available, has been marked as deleted.
This indicates that the entry has been deleted by the user, but it cannot be fully deleted by the model, because it has been synchronised and has a positive synchronisation count. It should not be displayed in views.
|
TAgnDateTime LastChangedDate();
Gets the agenda date/time that the entry at the current iterator position, if one is avaliable, was last changed.
|
CAgnEntry::TType Type();
Gets the type of the entry at the current iterator position, if one is available.
|