mds_plat/metadata_engine_api/inc/mdedatabuffer.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     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 "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:  Serializard data buffer container
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _MDEDATABUFFER_H_
       
    19 #define _MDEDATABUFFER_H_
       
    20 
       
    21 #include <e32def.h>
       
    22 
       
    23 // forward declaration
       
    24 class CMdCSerializationBuffer;
       
    25 
       
    26 class RMdEDataBuffer
       
    27 {
       
    28 public:
       
    29 	IMPORT_C RMdEDataBuffer();
       
    30 
       
    31 	IMPORT_C void Close();
       
    32 
       
    33 	/**
       
    34 	 * Set buffer to data buffer. Data buffer takes the ownership of the 
       
    35 	 * buffer.
       
    36 	 * 
       
    37 	 * @param aBuffer serialization buffer
       
    38 	 */
       
    39 	void SetBufferL(CMdCSerializationBuffer* aBuffer);
       
    40 	
       
    41 	CMdCSerializationBuffer* GetBufferLC();
       
    42 
       
    43 private:
       
    44 	RMdEDataBuffer(const RMdEDataBuffer&);
       
    45 	
       
    46 private:
       
    47 	CMdCSerializationBuffer* iBuffer;
       
    48 };
       
    49 
       
    50 #endif /*_MDEDATABUFFER_H_*/
       
    51