email/pop3andsmtpmtm/clientmtms/inc/SMTPCMDS.H
changeset 0 72b543305e3a
child 76 60a8a215b0ec
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined (__SMTPCMDS_H__)
       
    17 #define __SMTPCMDS_H__
       
    18 
       
    19 #if !defined (__MSVSTD_HRH__)
       
    20 #include <msvstd.hrh>
       
    21 #endif
       
    22 
       
    23 /** SMTP-specific commands that can be issued through CSmtpClientMtm::InvokeAsyncFunctionL(). 
       
    24 @publishedAll
       
    25 @released
       
    26 */
       
    27 enum TSmtpCmds 
       
    28 	{
       
    29 	/** Not supported. */
       
    30 	KSMTPMTMIsConnected = KMtmFirstFreeMtmFunctionId,
       
    31 	/** Send messages on next connection.
       
    32 	
       
    33 	The first entry in aSelection specifies the SMTP service entry that is to 
       
    34 	be used to send the email messages. aSelection may contain only one entry 
       
    35 	ID. The SMTP MTM will append the Ids of all "ready" email messages which exist 
       
    36 	in the outbox that match the IAP of the specified SMTP service. Whether an 
       
    37 	email message is "ready" is determined from its TMsvEntry::SendingState() 
       
    38 	flag.
       
    39 	
       
    40 	If an Internet connection has already been established by another client, 
       
    41 	then this function may fail with KSmtpNoMsgsToSendWithActiveSettings if none 
       
    42 	of the messages specified in aSelection match the IAP currently in use. */
       
    43 	KSMTPMTMSendOnNextConnection,
       
    44 	/** Creates a new message. */
       
    45 	KSMTPMTMCreateNewEmailMessage,
       
    46 	/** Creates a new reply message. */
       
    47 	KSMTPMTMCreateReplyEmailMessage,
       
    48 	/** Creates a new forwarded message. */
       
    49 	KSMTPMTMCreateForwardEmailMessage,
       
    50 	/** Creates a new forwarded message as an attachment. */
       
    51 	KSMTPMTMCreateForwardAsAttachmentEmailMessage,
       
    52 	/** Creates a new message-receipt message. */
       
    53 	KSMTPMTMCreateReceiptEmailMessage
       
    54 	};
       
    55 
       
    56 #endif