cryptomgmtlibs/securitycommonutils/inc/ipcstream.h
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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 the License "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 * Library to add s32strm support for IPC (ie. stream via multiple IPC read/writes instead of
       
    16 * copying to a buffer and streaming to/from there.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @publishedPartner
       
    24  @released
       
    25 */
       
    26 #ifndef __IPCSTREAM_H__
       
    27 #define __IPCSTREAM_H__
       
    28 
       
    29 #include <e32base.h>
       
    30 #include <s32strm.h>
       
    31 
       
    32 #include <scs/ipcbuf.h>
       
    33 
       
    34 class RIpcReadStream : public RReadStream
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C void Open(const RMessagePtr2& aMessage, TInt aMessageSlot);
       
    38 	IMPORT_C RIpcReadStream();
       
    39 private:
       
    40 	RIpcBuf iSource;
       
    41 	};
       
    42 	
       
    43 class RIpcWriteStream : public RWriteStream
       
    44 	{
       
    45 public:
       
    46 	IMPORT_C void Open(const RMessagePtr2& aMessage, TInt aMessageSlot);
       
    47 	IMPORT_C RIpcWriteStream();
       
    48 private:
       
    49 	RIpcBuf iSource;
       
    50 	};
       
    51 
       
    52 #endif /* __IPCSTREAM_H__ */