multimediacommsengine/mmcecli/inc/mceitcsender.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef CMCEITCSENDER_H
       
    23 #define CMCEITCSENDER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <s32mem.h>
       
    27 #include <badesca.h>
       
    28 #include "mceclientserver.h"
       
    29 
       
    30 class MMceItc;
       
    31 class CMceSession;
       
    32 class CMceMsgBase;
       
    33 
       
    34 class CMceItcSender : public CBase
       
    35 	{
       
    36 public:
       
    37 
       
    38     static CMceItcSender* NewL( MMceItc& aITC );
       
    39     static CMceItcSender* NewLC( MMceItc& aITC );
       
    40     ~CMceItcSender ();
       
    41 
       
    42     TInt Send( TMceIds& aIds, TMceItcFunctions aITCFunction );
       
    43 
       
    44 	void SendL( TMceIds& aIds, TMceItcFunctions aITCFunction );
       
    45 
       
    46     void SendL( TMceIds& aIds,
       
    47 			    TMceItcFunctions aITCFunction,
       
    48                 TUint32& aData );
       
    49 
       
    50     void SendL( TMceIds& aIds,
       
    51                 TMceItcFunctions aITCFunction,
       
    52                 CMceMsgBase& aMessage,
       
    53                 HBufC8* aBody = NULL,
       
    54                 TBool aTakeOwnershipOfBody = ETrue );		
       
    55  
       
    56 public:
       
    57 
       
    58 	void WriteL( TMceIds& aIds,
       
    59 			     TMceItcFunctions aITCFunction,
       
    60                  const TDesC8& aData );
       
    61 
       
    62  	void ReadL( TMceIds& aIds,
       
    63                 TMceItcFunctions aITCFunction,
       
    64 	            TDes8& aData );
       
    65  
       
    66  	CDesC8Array* ReadArrayL( TMceIds& aIds,
       
    67  					         TMceItcFunctions aITCFunction );
       
    68  					
       
    69  	CDesC8Array* ReadArrayL( TMceIds& aIds,
       
    70  					         TMceItcFunctions aITCFunction,
       
    71  					         const TDesC8& aData );
       
    72  					
       
    73     HBufC8* ReadStringL( TMceIds& aIds,
       
    74 				         TMceItcFunctions aITCFunction );
       
    75  	
       
    76 private:
       
    77 
       
    78 	CMceItcSender( MMceItc& aITC );
       
    79     
       
    80 	// data
       
    81     TIpcArgs iITCMsgArgs;
       
    82     MMceItc& iITC;
       
    83     
       
    84     TBufC8<1> iEmptyBody;
       
    85 	};
       
    86 
       
    87 
       
    88 #endif // CMCEITCSENDER_H
       
    89 
       
    90 // End of File