messagingfw/msgtestfw/TestActions/Capabilities/inc/SendProxyClient.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 __SENDPROXYCLIENT_H__
       
    17 #define __SENDPROXYCLIENT_H__
       
    18 
       
    19 #include "SendProxyClientServer.h"
       
    20 
       
    21 
       
    22 //*****************************************
       
    23 // Note we use a Proxy server so that 
       
    24 // i) We do nothave to link to all the libs such as BAFL, etc that the main TesstMessagingServer does.
       
    25 //		This avoids any problems with capability checking, such as DLL's not having correct caps.
       
    26 // ii) Its easier to change the caps of the simple send server. The effects are more limited and controlled.
       
    27 //*****************************************
       
    28 
       
    29 
       
    30 class RProxyServerSession : public RSessionBase
       
    31 	{
       
    32 public:
       
    33 	IMPORT_C TInt Connect();
       
    34 	IMPORT_C TInt SendReceive(TInt aCommand,const TIpcArgs& aTIpcArgs);	
       
    35 	IMPORT_C TInt SendReceiveProxyAsync(TInt aCommand,const TIpcArgs& aTIpcArgs);	
       
    36 	IMPORT_C TInt SendReceive(TInt aCommand);	
       
    37 	IMPORT_C TInt SendReceiveProxyAsync(TInt aCommand );
       
    38 	IMPORT_C TInt GetServerSecureId( TSecureId& p );		
       
    39 	IMPORT_C TInt GetServerCapabilities( TInt32& p );
       
    40 
       
    41 private:
       
    42 	IMPORT_C void SendReceive(TInt aCommand, const TIpcArgs& aTIpcArgs, TRequestStatus& aRequestStatus); 
       
    43 	IMPORT_C void SendReceive(TInt aCommand, TRequestStatus& aRequestStatus); 
       
    44 
       
    45 	};
       
    46 
       
    47 
       
    48 TInt StartSendProxyServer(void);
       
    49 
       
    50 
       
    51 
       
    52 #ifdef __SENDPROXYSERVER_NO_PROCESSES__
       
    53 #include <e32math.h>
       
    54 #endif
       
    55 
       
    56 #endif	// __SENDPROXYCLIENT_H__