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 (__POP3CMDS_H__) williamr@2: #define __POP3CMDS_H__ williamr@2: williamr@2: #if !defined (__MSVSTD_HRH__) williamr@2: #include <msvstd.hrh> williamr@2: #endif williamr@2: williamr@2: /** POP3-specific commands that can be issued through CPop3ClientMtm::InvokeAsyncFunctionL(). williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: enum TPop3Cmds williamr@2: { williamr@2: /** Unsupported. */ williamr@2: KPOP3MTMIsConnected = KMtmFirstFreeMtmFunctionId, williamr@2: /** Attempt to connect to the current service. */ williamr@2: KPOP3MTMConnect, williamr@2: /** Disconnect from the current service. */ williamr@2: KPOP3MTMDisconnect, williamr@2: /** Unused. */ williamr@2: KPOP3MTMCreateReceipt, williamr@2: williamr@2: // need to pass in destination in aParameter williamr@2: /** Copy any new messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMCopyNewMailWhenAlreadyConnected, williamr@2: /** Copy any new messages from the current service, and do not disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndCopyNewMailAndStayOnline, williamr@2: /** Copy any new messages from the current service, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndCopyNewMailAndDisconnect, williamr@2: /** Move any new messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMMoveNewMailWhenAlreadyConnected, williamr@2: /** Move any new messages from the current service, and do not disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndMoveNewMailAndStayOnline, williamr@2: /** Connect to current service, move any new messages, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndMoveNewMailAndDisconnect, williamr@2: williamr@2: // need to pass in destination in aParameter williamr@2: /** Copy the specified messages from the current service, assuming a new connection williamr@2: does not need to be made. */ williamr@2: KPOP3MTMCopyMailSelectionWhenAlreadyConnected, williamr@2: /** Connect to current service, copy the specified messages, and do not disconnect williamr@2: afterwards. */ williamr@2: KPOP3MTMConnectAndCopyMailSelectionAndStayOnline, williamr@2: /** Connect to current service, copy the specified messages, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndCopyMailSelectionAndDisconnect, williamr@2: /** Move the specified messages from the current service, assuming a new connection williamr@2: does not need to be made. */ williamr@2: KPOP3MTMMoveMailSelectionWhenAlreadyConnected, williamr@2: /** Connect to current service, move the specified messages, and do not disconnect williamr@2: afterwards. */ williamr@2: KPOP3MTMConnectAndMoveMailSelectionAndStayOnline, williamr@2: /** Connect to current service, move the specified messages, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndMoveMailSelectionAndDisconnect, williamr@2: williamr@2: // need to pass in destination in aParameter williamr@2: /** Copy all messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMCopyAllMailWhenAlreadyConnected, williamr@2: /** Connect to current service, copy all messages, and do not disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndCopyAllMailAndStayOnline, williamr@2: /** Connect to current service, copy all messages, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndCopyAllMailAndDisconnect, williamr@2: /** Move all messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMMoveAllMailWhenAlreadyConnected, williamr@2: /** Connect to current service, move all messages, and do not disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndMoveAllMailAndStayOnline, williamr@2: /** Connect to current service, move all messages, and disconnect afterwards. */ williamr@2: KPOP3MTMConnectAndMoveAllMailAndDisconnect, williamr@2: williamr@2: /** Cancel all offline operations. */ williamr@2: KPOP3MTMCancelOfflineOperations, williamr@2: /** Unused. */ williamr@2: KPOP3MTMCancelSendOnNextConnection, williamr@2: /** Creates a new message. */ williamr@2: KPOP3MTMCreateNewEmailMessage, williamr@2: /** Creates a new reply message. */ williamr@2: KPOP3MTMCreateReplyEmailMessage, williamr@2: /** Creates a new forwarded message. */ williamr@2: KPOP3MTMCreateForwardEmailMessage, williamr@2: /** Creates a new forwarded message as an attachment. */ williamr@2: KPOP3MTMCreateForwardAsAttachmentEmailMessage, williamr@2: /** Creates a new message-receipt message. */ williamr@2: KPOP3MTMCreateReceiptEmailMessage, williamr@2: /** Populates the selection of messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMPopulate, williamr@2: /** Populates any new messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMPopulateNew, williamr@2: /** Populates all messages from the current service, assuming a new connection does williamr@2: not need to be made. */ williamr@2: KPOP3MTMPopulateAll williamr@2: }; williamr@2: williamr@2: #endif