haitest/bspsvs/suite/e32/inc/T_ActiveCallbackIO.h
changeset 0 cec860690d41
equal deleted inserted replaced
-1:000000000000 0:cec860690d41
       
     1 /*
       
     2 * Copyright (c) 2005-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 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_ActiveCallbackIO
       
    23 */
       
    24 
       
    25 #if (!defined __T_ACTIVECALLBACK_IO_H__)
       
    26 #define __T_ACTIVECALLBACK_IO_H__
       
    27 
       
    28 // User includes
       
    29 #include "ActiveCallbackBase.h"
       
    30 
       
    31 /**
       
    32 * Callback class for playing and recording processes
       
    33 */
       
    34 class CT_ActiveCallbackIO : public CActiveCallbackBase
       
    35 	{
       
    36 public:
       
    37 	static CT_ActiveCallbackIO*	NewL(CDataWrapperBase& aCallback, TInt aPriority=EPriorityStandard);
       
    38 	~CT_ActiveCallbackIO();
       
    39 
       
    40 	TInt			BufferLength();
       
    41 	const TDesC8&	Buffer();
       
    42 	void			PrepareFromStringL(TInt aRepeat, const TDesC& aString);
       
    43 	void			PrepareFromFileL(TInt aRepeat, const TDesC& aFilename);
       
    44 
       
    45 protected:
       
    46 	CT_ActiveCallbackIO(CDataWrapperBase& aCallback, TInt aPriority);
       
    47 
       
    48 private:
       
    49 	void	ConvertAndRepeatBuffer(TInt aRepeat);
       
    50 	void	ConvertEscapeChars(TPtr8 aBuffer);
       
    51 
       
    52 private:
       
    53 	HBufC8*	iBuffer;
       
    54 	};
       
    55 
       
    56 #endif /* __T_ACTIVECALLBACK_IO_H__ */