diff -r 2fe1408b6811 -r e1b950c65cb4 epoc32/include/app/smtpcmds.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/app/smtpcmds.h Wed Mar 31 12:27:01 2010 +0100 @@ -0,0 +1,56 @@ +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#if !defined (__SMTPCMDS_H__) +#define __SMTPCMDS_H__ + +#if !defined (__MSVSTD_HRH__) +#include +#endif + +/** SMTP-specific commands that can be issued through CSmtpClientMtm::InvokeAsyncFunctionL(). +@publishedAll +@released +*/ +enum TSmtpCmds + { + /** Not supported. */ + KSMTPMTMIsConnected = KMtmFirstFreeMtmFunctionId, + /** Send messages on next connection. + + The first entry in aSelection specifies the SMTP service entry that is to + be used to send the email messages. aSelection may contain only one entry + ID. The SMTP MTM will append the Ids of all "ready" email messages which exist + in the outbox that match the IAP of the specified SMTP service. Whether an + email message is "ready" is determined from its TMsvEntry::SendingState() + flag. + + If an Internet connection has already been established by another client, + then this function may fail with KSmtpNoMsgsToSendWithActiveSettings if none + of the messages specified in aSelection match the IAP currently in use. */ + KSMTPMTMSendOnNextConnection, + /** Creates a new message. */ + KSMTPMTMCreateNewEmailMessage, + /** Creates a new reply message. */ + KSMTPMTMCreateReplyEmailMessage, + /** Creates a new forwarded message. */ + KSMTPMTMCreateForwardEmailMessage, + /** Creates a new forwarded message as an attachment. */ + KSMTPMTMCreateForwardAsAttachmentEmailMessage, + /** Creates a new message-receipt message. */ + KSMTPMTMCreateReceiptEmailMessage + }; + +#endif