messagingfw/sendas/server/inc/sendasserverdefs.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2004-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 #ifndef __SENDASSERVERDEFS_H__
       
    17 #define __SENDASSERVERDEFS_H__
       
    18 
       
    19 // Types and Classes Shared between the server and client interfaces.
       
    20 
       
    21 /**
       
    22 @internalComponent
       
    23 @released
       
    24 */
       
    25 const TInt KSendAsServerVersionMajor = 1;
       
    26 
       
    27 /**
       
    28 @internalComponent
       
    29 @released
       
    30 */
       
    31 const TInt KSendAsServerVersionMinor = 0;
       
    32 
       
    33 /**
       
    34 @internalComponent
       
    35 @released
       
    36 */
       
    37 const TInt KSendAsServerVersionBuild = 0;
       
    38 
       
    39 /**
       
    40 @internalComponent
       
    41 @released
       
    42 */
       
    43 enum TSendAsSessionMethods
       
    44 	{
       
    45 	ESendAsSessionMethodBase = 0x1000,	// start of session methods
       
    46 
       
    47 	// Message Type Filter Messages
       
    48 	ESASGetMessageTypeListLength,	// request the size required to receive a filtered message type list, value written into TInt pointed to by param 0.
       
    49 	ESASGetMessageTypes,			// fetch the list.  Server copies the data into the descriptor pointed to by param 0.
       
    50 	ESASSetFilter,					// fills a TSendAsMessageTypeFilter and sends it in parameter 0.
       
    51 	ESASClearFilter,				// remove the message type filter
       
    52 	
       
    53 	// Message Account Methods
       
    54 	ESASGetAccountListLength,		// request the size of the buffer required to transfer the account list
       
    55 	ESASGetAccountList,				// ask the server to fill the supplied buffer with the account list
       
    56 	ESASCreateAttachment,			// ask the server to create an attachment file
       
    57 	
       
    58 	// SubSession Creation
       
    59 	ESASCreateSubSession,
       
    60 	
       
    61 	ESendAsSessionMethodMax			// end of session methods
       
    62 	};
       
    63 
       
    64 /**
       
    65 @internalComponent
       
    66 @released
       
    67 */
       
    68 enum TSendAsMessageMethods
       
    69 	{
       
    70 	ESendAsMessageMethodBase = 0x2000,	// start of message methods
       
    71 	ESAMCreateForAccount,
       
    72 	ESAMCreateByType,
       
    73 	ESAMDelete,
       
    74 	ESAMSetBodyFirst,
       
    75 	ESAMSetBodyNext,
       
    76 	ESAMSetSubject,
       
    77 	ESAMSetBioType,
       
    78 	ESAMAddRecipient,
       
    79 	ESAMAddRecipientWithAlias,
       
    80 	ESAMTransferAttachmentFile,
       
    81 	ESAMAddAttachment,
       
    82 	ESAMAddAttachmentWithType,
       
    83 	ESAMAddLinkedAttachment,
       
    84 	ESAMAddLinkedAttachmentWithType,
       
    85 	ESAMCreateAttachment,
       
    86 	ESAMCreateAttachmentWithType,
       
    87 	ESAMCancel,
       
    88 	ESAMLaunchEditor,
       
    89 	ESAMDestroySubSession,
       
    90 	ESendAsMessageMethodSendBase,	// methods after this have a custom security policy applied to them
       
    91 	ESAMSendMessage,
       
    92 	ESAMSendMessageBackground,
       
    93 	ESAMSendMessageConfirmed,
       
    94 	ESAMSendMessageConfirmedBackground,
       
    95 	ESAMGetProgress,
       
    96 	ESAMSaveMessage,
       
    97 	ESendAsMessageMethodMax,	
       
    98 	ESAMSetCharacterSet,
       
    99 	ESAMCharSetInfoForAttachment			// end of message methods
       
   100 	};
       
   101 
       
   102 #endif	// __SENDASSERVERDEFS_H__