Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\device\t_fir.h
18 //#include <es_sock.h>
27 #define PDD_NAME _L("difiba")
28 #define LDD_NAME _L("efir")
33 class CActiveConsole : public CActive
34 //-----------------------------------
38 CActiveConsole(CConsoleBase* aConsole);
39 static CActiveConsole* NewLC(CConsoleBase* aConsole);
46 void RequestCharacter();
49 // Defined as pure virtual by CActive;
50 // implementation provided by this class.
53 // Service completed request.
54 // Defined as pure virtual by CActive;
55 // implementation provided by this class,
58 void ProcessKeyPressL(TChar aChar);
61 void GetDmaReaderRegs();
62 void GetDmaWriterRegs();
63 void GetReadBufInfo();
64 void GetWriteBufInfo();
72 // Data members defined by this class
73 CConsoleBase* iConsole; // A console for reading from
74 CActiveWriter* iWriter; // Client wrapper for CObexClient
75 CActiveReader* iReader; // Client wrapper for CObexServer
84 class CActiveWriter : public CActive
85 //-----------------------------------------------------------
89 CActiveWriter(CConsoleBase* aConsole,RDevFir* aPort);
90 static CActiveWriter* NewL(CConsoleBase* aConsole,RDevFir* aPort);
103 CConsoleBase* iConsole;
109 class CActiveReader : public CActive
110 //-----------------------------------------------------------
114 CActiveReader(CConsoleBase* aConsole,RDevFir* aPort);
115 static CActiveReader* NewL(CConsoleBase* aConsole,RDevFir* aPort);
118 virtual ~CActiveReader();
126 void ResetReadBuffer();
127 TBool CompareBuffers(TInt aLen);
130 CConsoleBase* iConsole;