williamr@2: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #if !defined (__SMTPCMDS_H__) williamr@2: #define __SMTPCMDS_H__ williamr@2: williamr@2: #if !defined (__MSVSTD_HRH__) williamr@2: #include williamr@2: #endif williamr@2: williamr@2: /** SMTP-specific commands that can be issued through CSmtpClientMtm::InvokeAsyncFunctionL(). williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: enum TSmtpCmds williamr@2: { williamr@2: /** Not supported. */ williamr@2: KSMTPMTMIsConnected = KMtmFirstFreeMtmFunctionId, williamr@2: /** Send messages on next connection. williamr@2: williamr@2: The first entry in aSelection specifies the SMTP service entry that is to williamr@2: be used to send the email messages. aSelection may contain only one entry williamr@2: ID. The SMTP MTM will append the Ids of all "ready" email messages which exist williamr@2: in the outbox that match the IAP of the specified SMTP service. Whether an williamr@2: email message is "ready" is determined from its TMsvEntry::SendingState() williamr@2: flag. williamr@2: williamr@2: If an Internet connection has already been established by another client, williamr@2: then this function may fail with KSmtpNoMsgsToSendWithActiveSettings if none williamr@2: of the messages specified in aSelection match the IAP currently in use. */ williamr@2: KSMTPMTMSendOnNextConnection, williamr@2: /** Creates a new message. */ williamr@2: KSMTPMTMCreateNewEmailMessage, williamr@2: /** Creates a new reply message. */ williamr@2: KSMTPMTMCreateReplyEmailMessage, williamr@2: /** Creates a new forwarded message. */ williamr@2: KSMTPMTMCreateForwardEmailMessage, williamr@2: /** Creates a new forwarded message as an attachment. */ williamr@2: KSMTPMTMCreateForwardAsAttachmentEmailMessage, williamr@2: /** Creates a new message-receipt message. */ williamr@2: KSMTPMTMCreateReceiptEmailMessage williamr@2: }; williamr@2: williamr@2: #endif