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.
Public Member Functions | |
---|---|
CCalAttachmentIterator(CCalAttachmentIteratorImpl &) | |
~CCalAttachmentIterator() | |
IMPORT_C TInt | Count() |
IMPORT_C TBool | HasMore() |
IMPORT_C CCalAttachment * | NextL() |
Private Attributes | |
---|---|
CCalAttachmentIteratorImpl * | iAttachmentIteratorImpl |
CCalAttachmentIterator | ( | CCalAttachmentIteratorImpl & | aAttachmentIteratorImpl | ) |
CCalAttachmentIteratorImpl & aAttachmentIteratorImpl |
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
IMPORT_C TInt | Count | ( | ) | const |
Returns the total number of attachments in the iterator. The number of attachments.
None
None
capability
None
IMPORT_C TBool | HasMore | ( | ) | 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
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
CCalAttachmentIteratorImpl * | iAttachmentIteratorImpl | [private] |