equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2010 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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef MTRANSPORT_H |
|
22 #define MTRANSPORT_H |
|
23 |
|
24 |
|
25 class MProtocolBase; |
|
26 |
|
27 class MTransportBase |
|
28 { |
|
29 public: |
|
30 virtual void SetupWriteData(TPtrC8& aData) = 0; |
|
31 virtual TInt Start() = 0; |
|
32 virtual TInt Stop() = 0; |
|
33 virtual void RegisterProtocol(MProtocolBase& aProtocol) = 0; |
|
34 virtual TInt BytesAvailable() = 0; |
|
35 virtual ~MTransportBase() {}; |
|
36 virtual TInt InitialiseTransportL(TInt aTransportLddFlag) = 0; |
|
37 virtual void SetupReadData(TUint aLength) = 0; |
|
38 virtual void GetCommandBufPtr(TPtr8& aDes, TUint aLength) = 0; |
|
39 virtual void GetReadDataBufPtr(TPtr8& aDes) = 0; |
|
40 virtual void GetWriteDataBufPtr(TPtrC8& aDes) = 0; |
|
41 #ifdef MSDC_MULTITHREADED |
|
42 virtual void ProcessReadData(TAny* aAddress) = 0; |
|
43 #endif |
|
44 }; |
|
45 |
|
46 |
|
47 #endif // MTRANSPORT_H |
|
48 |