email/pop3andsmtpmtm/clientmtms/inc/SMTPCMDS.H
author hgs
Tue, 19 Oct 2010 11:30:16 +0530
changeset 76 60a8a215b0ec
parent 0 72b543305e3a
permissions -rw-r--r--
201041

// 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 "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#if !defined (__SMTPCMDS_H__)
#define __SMTPCMDS_H__

#if !defined (__MSVSTD_HRH__)
#include <msvstd.hrh>
#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. 
	
	Command KSMTPMTMSilentlySendOnNextConnection is also available to silently connect
	to the network.
	*/
	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,
		
	/** Send messages on next connection silently without prompting the user.
	
	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. */
	KSMTPMTMSilentlySendOnNextConnection
	};

#endif