epoc32/include/pop3cmds.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 pop3cmds.h
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined (__POP3CMDS_H__)
       
    17 #define __POP3CMDS_H__
       
    18 
       
    19 #if !defined (__MSVSTD_HRH__)
       
    20 #include <msvstd.hrh>
       
    21 #endif
       
    22 
       
    23 /** POP3-specific commands that can be issued through CPop3ClientMtm::InvokeAsyncFunctionL(). 
       
    24 @publishedAll
       
    25 @released
       
    26 */
       
    27 enum TPop3Cmds 
       
    28 	{
       
    29 	/** Unsupported. */
       
    30 	KPOP3MTMIsConnected = KMtmFirstFreeMtmFunctionId,
       
    31 	/** Attempt to connect to the current service. */
       
    32 	KPOP3MTMConnect,
       
    33 	/** Disconnect from the current service. */
       
    34 	KPOP3MTMDisconnect,
       
    35 	/** Unused. */
       
    36 	KPOP3MTMCreateReceipt,
       
    37 
       
    38 	// need to pass in destination in aParameter
       
    39 	/** Copy any new messages from the current service, assuming a new connection does 
       
    40 	not need to be made. */
       
    41 	KPOP3MTMCopyNewMailWhenAlreadyConnected,
       
    42 	/** Copy any new messages from the current service, and do not disconnect afterwards. */
       
    43 	KPOP3MTMConnectAndCopyNewMailAndStayOnline,
       
    44 	/** Copy any new messages from the current service, and disconnect afterwards. */
       
    45 	KPOP3MTMConnectAndCopyNewMailAndDisconnect,
       
    46 	/** Move any new messages from the current service, assuming a new connection does 
       
    47 	not need to be made. */
       
    48 	KPOP3MTMMoveNewMailWhenAlreadyConnected,
       
    49 	/** Move any new messages from the current service, and do not disconnect afterwards. */
       
    50 	KPOP3MTMConnectAndMoveNewMailAndStayOnline,
       
    51 	/** Connect to current service, move any new messages, and disconnect afterwards. */
       
    52 	KPOP3MTMConnectAndMoveNewMailAndDisconnect,
       
    53 
       
    54 	// need to pass in destination in aParameter
       
    55 	/** Copy the specified messages from the current service, assuming a new connection 
       
    56 	does not need to be made. */
       
    57 	KPOP3MTMCopyMailSelectionWhenAlreadyConnected,
       
    58 	/** Connect to current service, copy the specified messages, and do not disconnect 
       
    59 	afterwards. */
       
    60 	KPOP3MTMConnectAndCopyMailSelectionAndStayOnline,
       
    61 	/** Connect to current service, copy the specified messages, and disconnect afterwards. */
       
    62 	KPOP3MTMConnectAndCopyMailSelectionAndDisconnect,
       
    63 	/** Move the specified messages from the current service, assuming a new connection 
       
    64 	does not need to be made. */
       
    65 	KPOP3MTMMoveMailSelectionWhenAlreadyConnected,
       
    66 	/** Connect to current service, move the specified messages, and do not disconnect 
       
    67 	afterwards. */
       
    68 	KPOP3MTMConnectAndMoveMailSelectionAndStayOnline,
       
    69 	/** Connect to current service, move the specified messages, and disconnect afterwards. */
       
    70 	KPOP3MTMConnectAndMoveMailSelectionAndDisconnect,
       
    71 
       
    72 	// need to pass in destination in aParameter
       
    73 	/** Copy all messages from the current service, assuming a new connection does 
       
    74 	not need to be made. */
       
    75 	KPOP3MTMCopyAllMailWhenAlreadyConnected,
       
    76 	/** Connect to current service, copy all messages, and do not disconnect afterwards. */
       
    77 	KPOP3MTMConnectAndCopyAllMailAndStayOnline,
       
    78 	/** Connect to current service, copy all messages, and disconnect afterwards. */
       
    79 	KPOP3MTMConnectAndCopyAllMailAndDisconnect,
       
    80 	/** Move all messages from the current service, assuming a new connection does 
       
    81 	not need to be made. */
       
    82 	KPOP3MTMMoveAllMailWhenAlreadyConnected,
       
    83 	/** Connect to current service, move all messages, and do not disconnect afterwards. */
       
    84 	KPOP3MTMConnectAndMoveAllMailAndStayOnline,
       
    85 	/** Connect to current service, move all messages, and disconnect afterwards. */
       
    86 	KPOP3MTMConnectAndMoveAllMailAndDisconnect,
       
    87 
       
    88 	/** Cancel all offline operations. */
       
    89 	KPOP3MTMCancelOfflineOperations,
       
    90 	/** Unused. */
       
    91 	KPOP3MTMCancelSendOnNextConnection,
       
    92 	/** Creates a new message. */
       
    93 	KPOP3MTMCreateNewEmailMessage,
       
    94 	/** Creates a new reply message. */
       
    95 	KPOP3MTMCreateReplyEmailMessage,
       
    96 	/** Creates a new forwarded message. */
       
    97 	KPOP3MTMCreateForwardEmailMessage,
       
    98 	/** Creates a new forwarded message as an attachment. */
       
    99 	KPOP3MTMCreateForwardAsAttachmentEmailMessage,
       
   100 	/** Creates a new message-receipt message. */
       
   101 	KPOP3MTMCreateReceiptEmailMessage,
       
   102 	/** Populates the selection of messages from the current service, assuming a new connection does 
       
   103 	not need to be made. */
       
   104 	KPOP3MTMPopulate,
       
   105 	/** Populates any new messages from the current service, assuming a new connection does 
       
   106 	not need to be made. */
       
   107 	KPOP3MTMPopulateNew,
       
   108 	/** Populates all messages from the current service, assuming a new connection does 
       
   109 	not need to be made. */
       
   110 	KPOP3MTMPopulateAll 
       
   111 	};
       
   112 
       
   113 #endif