mmhais/refacladapt/src/shared/mstreambuffercontrol.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 /*
       
     2 * Copyright (c) 2008-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:
       
    15 * Save as expressly licensed to you by Symbian Software Ltd, all rights reserved.
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MBUFFERCONTROL_H
       
    23 #define MBUFFERCONTROL_H
       
    24 
       
    25 #include <a3f/a3fbase.h>
       
    26 
       
    27 /*
       
    28 A CBufferFlushHandler's client must implement this interface 
       
    29 to be notified when when the flush process has finished
       
    30 */ 
       
    31 class MFlushHandlerObserver
       
    32 	{
       
    33 public:
       
    34 	virtual void FlushComplete(TInt aError) = 0;
       
    35 	};
       
    36 
       
    37 /**
       
    38  This class allow interaction with the physical layer allowing flush physical buffers
       
    39  */
       
    40 class MStreamBufferControl
       
    41 	{
       
    42 public:
       
    43 	/**
       
    44 	@return KErrNone error if flush operation is successful
       
    45 	*/
       
    46 	virtual TInt FlushBuffers() = 0;
       
    47 	};
       
    48 
       
    49 #endif // MBUFFERCONTROL_H