|
||
class TMsvEmailEntry : public TMsvEntry;
Provides storage for and access to extra email specific information for a message.
To get a TMsvEmailEntry, get the entry's TMsvEntry
, e.g. using CMsvEntry::Entry()
, and use the constructor that takes a TMsvEntry
parameter.
Many of the flags are only used by IMAP4 entries. These can be grouped as follows:
IMAP-specific flags, as defined by the IMAP protocol (see RFC3501, 2.3.2. Flags Message Attribute)
TMsvEmailEntry::GetIMAP4Flags(TBool &,TBool &,TBool &,TBool &,TBool &,TBool &,TBool &)
and TMsvEmailEntry::SetIMAP4Flags(TBool,TBool,TBool,TBool,TBool,TBool,TBool)
handle all the flags as a group
\Seen flag: TMsvEmailEntry::SetSeenIMAP4Flag(TBool)
, TMsvEmailEntry::SeenIMAP4Flag()const
.
\Answered flag: TMsvEmailEntry::SetAnsweredIMAP4Flag(TBool)
, TMsvEmailEntry::AnsweredIMAP4Flag()const
\Flagged flag: TMsvEmailEntry::SetFlaggedIMAP4Flag(TBool)
, TMsvEmailEntry::FlaggedIMAP4Flag()const
\Deleted flag: TMsvEmailEntry::SetDeletedIMAP4Flag(TBool)
, TMsvEmailEntry::DeletedIMAP4Flag()const
\Draft flag: TMsvEmailEntry::SetDraftIMAP4Flag(TBool)
, TMsvEmailEntry::DraftIMAP4Flag()const
\Recent flag: TMsvEmailEntry::SetRecentIMAP4Flag(TBool)
, TMsvEmailEntry::RecentIMAP4Flag()const
Folder subscriptions and other folder-related flags:
TMsvEmailEntry::SetMailbox(TBool)
, TMsvEmailEntry::Mailbox()const
,
TMsvEmailEntry::SetSubscribed(TBool)
, TMsvEmailEntry::Subscribed()const
,
TMsvEmailEntry::SetLocalSubscription(TBool)
, TMsvEmailEntry::LocalSubscription()const
TMsvEmailEntry::SetRemoteFolderEntries(TInt)
, TMsvEmailEntry::RemoteFolderEntries()const
Disconnected operation information:
Partial download flags: these flags allow a client to test if a message or its body has been partially downloaded (see TImImap4GetPartialMailInfo
)
UID information: IMAP messages have a unique identifier number (see RFC3501, 2.3.1.1. Unique Identifier (UID) Message Attribute)
The following flags are set only by the IMAP MTM. They indicate if the message contains a vCard, vCalendar (http://www.imc.org), or iCalendar (RFC 2445) attachment.
TMsvEmailEntry::VCard()const
, TMsvEmailEntry::SetVCard(TBool)
TMsvEmailEntry::VCalendar()const
, TMsvEmailEntry::SetVCalendar(TBool)
TMsvEmailEntry::ICalendar()const
, TMsvEmailEntry::SetICalendar(TBool)
The following flags apply to all email protocols:
Receipt requested: TMsvEmailEntry::Receipt()const
, TMsvEmailEntry::SetReceipt(TBool)
MHTML content: TMsvEmailEntry::MHTMLEmail()const
, TMsvEmailEntry::SetMHTMLEmail(TBool)
Note that the email specific data is stored in the reserved data members iMtmData1
, iMtmData2
and iMtmData3
of the TMsvEntry
base class. These public data members must not be directly altered by clients.
TMsvEntry
- Represents an entry in the Message Server index.
TMsvEmailEntry
- Provides storage for and access to extra email specific information for a messag...
Defined in TMsvEmailEntry
:
AnsweredIMAP4Flag()const
Gets the state of the \Answered IMAP4 flag.BodyTextComplete()const
Tests if body text is complete. DeletedIMAP4Flag()const
Gets the state of the \Deleted IMAP4 flag.DisconnectedOperation()const
Gets the disconnected operation type.DraftIMAP4Flag()const
Gets the state of the \Draft IMAP4 flag.Encrypted()const
Tests whether encryption is used.FlaggedIMAP4Flag()const
Gets the state of the \Flagged IMAP4 flag.GetIMAP4Flags(TBool &,TBool &,TBool &,TBool &,TBool &,TBool &,TBool &)
Gets IMAP4-specific flags from the email entry: Unread, Seen, Answered, Flagged,...ICalendar()const
Tests if the message contains an iCalendar attachment.LocalSubscription()const
Gets the IMAP4 local subscription state for the specified folder.MHTMLEmail()const
Returns the flag indicating if the message has an HTML body part.Mailbox()const
Tests if the specified folder is the IMAP4 Mailbox. MessageFolderType()const
Gets a flag on an IMAP MTM folder entry indicating that it stores a multipart bo...Orphan()const
Gets the IMAP4 orphaned state for the specified message/folder.PartialDownloaded()const
Tests if body text is partially downloaded.Receipt()const
Tests if the email message requests a receipt. RecentIMAP4Flag()const
Gets the state of the \Recent IMAP4 flag.RemoteFolderEntries()const
Gets the number of messages stored in the remote folder. SeenIMAP4Flag()const
Gets the state of the \Seen IMAP4 flag.SetAnsweredIMAP4Flag(TBool)
Sets the state of the \Answered IMAP4 flag. SetBodyTextComplete(TBool)
Sets if body text is complete. SetDeletedIMAP4Flag(TBool)
Sets the state of the \Deleted IMAP4 flag. SetDisconnectedOperation(TImDisconnectedOperationType)
Sets the disconnected operation type.SetDraftIMAP4Flag(TBool)
Sets the state of the \Draft IMAP4 flag. SetEncrypted(TBool)
Sets whether encryption is used.SetFlaggedIMAP4Flag(TBool)
Sets the state of the \Flagged IMAP4 flag. SetICalendar(TBool)
Sets a flag that the message contains an iCalendar attachment.SetIMAP4Flags(TBool,TBool,TBool,TBool,TBool,TBool,TBool)
Sets IMAP4-specific flags from the email entry: Unread, Seen, Answered, Flagged,...SetLocalSubscription(TBool)
Sets the IMAP4 local subscription state for the specified folder.SetMHTMLEmail(TBool)
Sets the flag indicating if the message has an HTML body part.SetMailbox(TBool)
Sets if the specified folder is the IMAP4 Mailbox. SetMessageFolderType(TImEmailFolderType)
Sets a flag on an IMAP MTM folder entry indicating that it stores a multipart bo...SetOrphan(TBool)
Sets the IMAP4 orphaned state for the specified message/folder.SetPartialDownloaded(TBool)
Sets if the body text is partially downloaded.SetReceipt(TBool)
Sets a flag that the email message requests a receipt. SetRecentIMAP4Flag(TBool)
Sets the state of the \Recent IMAP4 flag. SetRemoteFolderEntries(TInt)
Sets the number of messages stored in the remote folder. SetSeenIMAP4Flag(TBool)
Sets the state of the \Seen IMAP4 flag. SetSigned(TBool)
Sets whether signing is used.SetSubscribed(TBool)
Sets the IMAP4 subscription state for the specified folder. SetUID(TUint32)
Sets the IMAP4 UID (unique identifier) for the specified message/folder. SetUnreadIMAP4Flag(TBool)
Sets the state of the unread messages IMAP4 flag. SetVCalendar(TBool)
Sets a flag that the message contains a VCal attachment. SetVCard(TBool)
Sets a flag that the message contains a VCard attachment. SetValidUID(TBool)
Sets the IMAP4 UID (unique identifier) validity for the specified folder. Signed()const
Tests whether signing is used.Subscribed()const
Gets the IMAP4 subscription state for the specified folder. TMsvEmailEntry()
Default constructor. TMsvEmailEntry(const TMsvEntry &)
Copy constructor using a TMsvEntry object.UID()const
Gets the IMAP4 UID (unique identifier) for the specified message/folder. UnreadIMAP4Flag()const
Gets the state of the unread messages IMAP4 flag.VCalendar()const
Tests if the message contains a VCal attachment. VCard()const
Tests if the message contains a VCard attachment. ValidUID()const
Gets the IMAP4 UID (unique identifier) validity for the specified folder. operator==(const TMsvEmailEntry &)const
Equality operator for comparison to a TMsvEmailEntry.operator==(const TMsvEntry &)const
Equality operator for comparison to a TMsvEntry.Inherited from TMsvEntry
:
Attachment()const
Gets the value of the attachment flag.Complete()const
Gets the value of the message complete flag.Connected()const
Gets the value of the remote server connection flag.DecPcSyncCount()
Decrements the PC synchronisation field. DeleteProtected()const
returns the delete protected state Deleted()const
Gets the value of the deleted flag.ExternalizeL(RWriteStream &)const
Writes the object into the stream specified.Failed()const
Gets the value of the message send failed flag.Forwarded()const
returns the forwarded state Id()const
Gets the value of the entry ID.InPreparation()const
Gets the value of the in preparation flag.IncPcSyncCount()
Increments the PC synchronisation field. InternalizeL(RReadStream &)
Reads an externalised object from the specified stream.LocallyDeleted()const
returns the locally deleted state MtmData1()const
Gets the integer value of iMtmData1MtmData2()const
Gets the integer value of iMtmData2MtmData3()const
Gets the integer value of iMtmData3MultipleRecipients()const
Gets the value of the multiple recipients flag.New()const
Gets the value of the new message flag.OffPeak()const
Gets the off-peak flag.Operation()const
Gets the value of the disconnected operation queued flag.Owner()const
Gets the value of the owner flag.Parent()const
Gets the value of the parent ID.PcSyncCount()const
Gets the value of the PC synchronisation field.PendingConditions()const
Gets the pending conditions flag.PendingDelete()const
PermanentDataUnchanged(const TMsvEntry &)const
Compares if the flag settings in two index entries are the same. The Connected a...PersistedFlags()const
Priority()const
Gets the value of the message priority field.ReadOnly()const
Gets the value of the read-only flag.Scheduled()const
Gets the scheduled flag.SendingState()const
Gets the sending state.SetAttachment(TBool)
Sets the attachment flag.SetComplete(TBool)
Sets the message complete flag.SetConnected(TBool)
Sets the remote server connection flag.SetDeleteProtected(TBool)
This method sets bit 24 of iMtmData1, if you are using this bit elsewhere don't ...SetDeleted(TBool)
SetFailed(TBool)
Sets the message send failed flag.SetForwarded(TBool)
This method sets bit 31 of iMtmData1, if you are using this bit elsewhere don't ...SetId(TMsvId)
SetInPreparation(TBool)
Sets the in-preparation flag.SetLocallyDeleted(TBool)
This method sets bit 32 of iMtmData1, if you are using this bit elsewhere don't ...SetMultipleRecipients(TBool)
Sets the multiple recipients flag.SetNew(TBool)
Sets the message new flag.SetOffPeak(TBool)
Sets the off-peak flag.SetOperation(TBool)
Sets the disconnected operation queued flag.SetOwner(TBool)
SetParent(TMsvId)
SetPendingConditions(TBool)
Sets the pending conditions flag.SetPendingDelete(TBool)
SetPriority(TMsvPriority)
Sets the message priority.SetReadOnly(TBool)
Sets the read-only flag.SetScheduled(TBool)
Sets the scheduled flag.SetSendingState(TUint)
Sets the sending state.SetStandardFolder(TBool)
SetUnread(TBool)
Sets the message unread flag.SetVisible(TBool)
Sets the entry visible flag.StandardFolder()const
Gets the value of the standard folder flag.TMsvEntry(const TMsvEntry &)
Copy constructor.TemporaryFlags()const
Unread()const
Gets the value of the message unread flag.Visible()const
Gets the value of the entry visible flag.iBioType
BIO message type iDate
Time
iDescription
Description iDetails
Details iError
Error iMtm
MTM iMtmData1
MTM data 1: this can be used for any purpose by an MTM. This member must only be...iMtmData2
MTM data 2: this can be used for any purpose by an MTM. This member must only be...iMtmData3
MTM data 3: this can be used for any purpose by an MTM. This member must only be...iRelatedId
Related folder ID. iServiceId
Service ID. iSize
Size iType
Entry type operator=(const TMsvEntry &)
Overloaded assignment operator.CImap4ClientMtm
IMAP4 client MTM interface, providing access to the email services using the IMA...IMPORT_C TMsvEmailEntry(const TMsvEntry &aGenericEntry);
Copy constructor using a TMsvEntry
object.
|
IMPORT_C TBool operator==(const TMsvEntry &aEntry) const;
Equality operator for comparison to a TMsvEntry
.
|
|
IMPORT_C TBool operator==(const TMsvEmailEntry &aEntry) const;
Equality operator for comparison to a TMsvEmailEntry.
|
|
IMPORT_C void GetIMAP4Flags(TBool &rUnread, TBool &rSeen, TBool &rAnswered, TBool &rFlagged, TBool &rDeleted, TBool &rDraft,
TBool &rRecent);
Gets IMAP4-specific flags from the email entry: Unread, Seen, Answered, Flagged, Deleted, Draft and Recent.
|
IMPORT_C void SetIMAP4Flags(TBool aUnread, TBool aSeen, TBool aAnswered, TBool aFlagged, TBool aDeleted, TBool aDraft, TBool
aRecent);
Sets IMAP4-specific flags from the email entry: Unread, Seen, Answered, Flagged, Deleted, Draft and Recent.
|
IMPORT_C void SetMessageFolderType(TImEmailFolderType aFolderType);
Sets a flag on an IMAP MTM folder entry indicating that it stores a multipart body structure.
Multipart body structure parts are represented in the message store by a folder entry with this flag set to the appropriate multipart type string.
|
IMPORT_C TImEmailFolderType MessageFolderType() const;
Gets a flag on an IMAP MTM folder entry indicating that it stores a multipart body structure.
Multipart body structure parts are represented in the message store by a folder entry with this flag set to the appropriate multipart type string.
|
IMPORT_C void SetDisconnectedOperation(TImDisconnectedOperationType aDisconnectedOperationType);
Sets the disconnected operation type.
|
IMPORT_C TImDisconnectedOperationType DisconnectedOperation() const;
Gets the disconnected operation type.
|
IMPORT_C void SetPartialDownloaded(TBool aPartialDownloaded);
Sets if the body text is partially downloaded.
|
IMPORT_C TBool PartialDownloaded() const;
Tests if body text is partially downloaded.
|
inline void SetEncrypted(TBool aEncrypt);
Sets whether encryption is used.
Not currently used.
|
inline TBool Encrypted() const;
Tests whether encryption is used.
Not currently used.
|
inline void SetSigned(TBool aSignature);
Sets whether signing is used.
Not currently used.
|
inline TBool Signed() const;
Tests whether signing is used.
Not currently used.
|
inline TBool VCard() const;
Tests if the message contains a VCard attachment.
|
inline void SetVCard(TBool aVCard);
Sets a flag that the message contains a VCard attachment.
|
inline TBool VCalendar() const;
Tests if the message contains a VCal attachment.
|
inline void SetVCalendar(TBool aVCal);
Sets a flag that the message contains a VCal attachment.
|
inline TBool ICalendar() const;
Tests if the message contains an iCalendar attachment.
|
inline void SetICalendar(TBool aICal);
Sets a flag that the message contains an iCalendar attachment.
|
inline TBool Receipt() const;
Tests if the email message requests a receipt.
|
inline void SetReceipt(TBool aReceipt);
Sets a flag that the email message requests a receipt.
|
inline TBool MHTMLEmail() const;
Returns the flag indicating if the message has an HTML body part.
Note: the flag is for HTML and not only MHTML.
Use CImEmailMessage
to retrieve the HTML body part.
|
CImEmailMessage
This class can be used to manipulate new emails that have been created using CIm...inline void SetMHTMLEmail(TBool aMhtml);
Sets the flag indicating if the message has an HTML body part.
Note: the flag is for HTML and not only MHTML.
Use CImEmailMessage
to retrieve the HTML body part.
|
CImEmailMessage
This class can be used to manipulate new emails that have been created using CIm...inline TBool BodyTextComplete() const;
Tests if body text is complete.
|
inline void SetBodyTextComplete(TBool aFlag);
Sets if body text is complete.
|
inline void SetUnreadIMAP4Flag(TBool aUnread);
Sets the state of the unread messages IMAP4 flag.
|
inline TBool UnreadIMAP4Flag() const;
Gets the state of the unread messages IMAP4 flag.
This flag is set on a folder if the folder contains any messages with the IMAP \Seen flag set.
|
TMsvEmailEntry::SeenIMAP4Flag()const
Gets the state of the \Seen IMAP4 flag.inline void SetSeenIMAP4Flag(TBool aSeen);
Sets the state of the \Seen IMAP4 flag.
|
inline TBool SeenIMAP4Flag() const;
Gets the state of the \Seen IMAP4 flag.
This indicates if the message has been read. It is described in RFC3501, 2.3.2. Flags Message Attribute.
Note that the server MTM creates messages with the TMsvEntry::Unread()const
flag set. If on synchronisation a folder contains new messages, the Unread flag will also be set on the folder.
|
CImImap4Settings::UpdatingSeenFlags()const
Retrieves whether the IMAP4 seen flag of new messages will be set on the server ...inline void SetAnsweredIMAP4Flag(TBool aAnswered);
Sets the state of the \Answered IMAP4 flag.
|
inline TBool AnsweredIMAP4Flag() const;
Gets the state of the \Answered IMAP4 flag.
This indicates if the message has been answered. It is described in RFC3501, 2.3.2. Flags Message Attribute.
|
inline void SetFlaggedIMAP4Flag(TBool aFlagged);
Sets the state of the \Flagged IMAP4 flag.
|
inline TBool FlaggedIMAP4Flag() const;
Gets the state of the \Flagged IMAP4 flag.
This indicates if the message is flagged for urgent/special attention. It is described in RFC3501, 2.3.2. Flags Message Attribute.
|
inline void SetDeletedIMAP4Flag(TBool aDeleted);
Sets the state of the \Deleted IMAP4 flag.
|
inline TBool DeletedIMAP4Flag() const;
Gets the state of the \Deleted IMAP4 flag.
This indicates if the message is marked as deleted for removal later. It is described in RFC3501, 2.3.2. Flags Message Attribute.
|
inline void SetDraftIMAP4Flag(TBool aDraft);
Sets the state of the \Draft IMAP4 flag.
|
inline TBool DraftIMAP4Flag() const;
Gets the state of the \Draft IMAP4 flag.
This indicates if the message has not completed composition. It is described in RFC3501, 2.3.2. Flags Message Attribute.
|
inline void SetRecentIMAP4Flag(TBool aRecent);
Sets the state of the \Recent IMAP4 flag.
|
inline TBool RecentIMAP4Flag() const;
Gets the state of the \Recent IMAP4 flag.
This indicates if the message is "recently" arrived in this mailbox. This session is the first session to have been notified about this message. For more details, see see RFC3501, 2.3.2. Flags Message Attribute.
|
inline void SetMailbox(TBool aMailbox);
Sets if the specified folder is the IMAP4 Mailbox.
|
inline TBool Mailbox() const;
Tests if the specified folder is the IMAP4 Mailbox.
|
inline TBool Orphan() const;
Gets the IMAP4 orphaned state for the specified message/folder.
The concept of an orphan is no longer used, so this function should not be used.
|
inline void SetOrphan(TBool aOrphan);
Sets the IMAP4 orphaned state for the specified message/folder.
The concept of an orphan is no longer used, so this function should not be used.
|
inline void SetValidUID(TBool aValid);
Sets the IMAP4 UID (unique identifier) validity for the specified folder.
|
inline TBool ValidUID() const;
Gets the IMAP4 UID (unique identifier) validity for the specified folder.
|
inline void SetSubscribed(TBool aSubscribed);
Sets the IMAP4 subscription state for the specified folder.
|
inline TBool Subscribed() const;
Gets the IMAP4 subscription state for the specified folder.
|
inline void SetLocalSubscription(TBool aLocal);
Sets the IMAP4 local subscription state for the specified folder.
Depending on other settings, setting a folder to be locally subscribed can mean:
that the folder is synchronised as part of synchronisation operations (depending on the value of CImImap4Settings::Synchronise()const
)
that the folder will be set as subscribed on the remote server (depending on the value of CImImap4Settings::SetSuscribe())
Note that clients can use the KIMAP4MTMLocalSubscribe
command to set this flag and save the change to the entry.
|
inline TBool LocalSubscription() const;
Gets the IMAP4 local subscription state for the specified folder.
|
inline void SetUID(TUint32 aUid);
Sets the IMAP4 UID (unique identifier) for the specified message/folder.
|
inline TUint32 UID() const;
Gets the IMAP4 UID (unique identifier) for the specified message/folder.
|
inline TInt RemoteFolderEntries() const;
Gets the number of messages stored in the remote folder.
|
inline void SetRemoteFolderEntries(TInt aEntries);
Sets the number of messages stored in the remote folder.
|