CCalAttachmentIterator Class Reference

class CCalAttachmentIterator : public CBase

Iterator class to access file attachments fetched using the CCalAttachmentManager.

When CCalAttachmentManager::FetchAttachmentsL is called, this iterator is returned. It provides a snapshot of the attachments in the database at that time. They can then be fetched incrementally.

Inherits from

  • CCalAttachmentIterator

Constructor & Destructor Documentation

CCalAttachmentIterator(CCalAttachmentIteratorImpl &)

CCalAttachmentIterator(CCalAttachmentIteratorImpl &aAttachmentIteratorImpl)

Parameters

CCalAttachmentIteratorImpl & aAttachmentIteratorImpl

~CCalAttachmentIterator()

IMPORT_C~CCalAttachmentIterator()

Destructor. Clears resources of the attachment iterator. An attachment iterator has been constructed from a CCalAttachmentManager::FetchAttachmentsL call.

The iterator is destroyed.

capability

None

Member Functions Documentation

Count()

IMPORT_C TIntCount()const

Returns the total number of attachments in the iterator. The number of attachments.

None

None

capability

None

HasMore()

IMPORT_C TBoolHasMore()const

Checks to see if there are more attachments in the iterator. If there are, the next one can be fetched by calling NextL. ETrue if there are more attachments, EFalse if not.

None

None

capability

None

NextL()

IMPORT_C CCalAttachment *NextL()

Returns the next attachment in the iterator, or NULL if there are no more attachments. A pointer to a new attachment object. Ownership is returned. NULL if the iterator has finished.

leave

KErrNotFound if an attachment has been deleted since the original search that returned the iterator of attachments. Otherwise one of the system-wide error codes.

None

The iterator moves to the next attachment in its results list.

capability

None

Member Data Documentation

CCalAttachmentIteratorImpl * iAttachmentIteratorImpl

CCalAttachmentIteratorImpl *iAttachmentIteratorImpl[private]