|
1 // Copyright (c) 2005-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 "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 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef __OBEXUSBTRANSPORTCONTROLLER_H__ |
|
23 #define __OBEXUSBTRANSPORTCONTROLLER_H__ |
|
24 |
|
25 #include <obex/transport/obextransportcontrollerbase.h> |
|
26 |
|
27 /** |
|
28 CObexUsbTransportController |
|
29 Transport Controller for the usb transport |
|
30 */ |
|
31 NONSHARABLE_CLASS(CObexUsbTransportController) : public CObexTransportControllerBase |
|
32 { |
|
33 public://NewL functions |
|
34 static CObexUsbTransportController* NewL(TObexTransportInfo& aTransportInfo); |
|
35 |
|
36 public://Functions derived from CBase |
|
37 virtual ~CObexUsbTransportController(); |
|
38 |
|
39 public://Functions derived from CObexTransportControllerBase |
|
40 virtual void DoRemoteAddr(TSockAddr& aAddr); |
|
41 virtual void NewTransportL(TObexConnectionInfo& aInfo); |
|
42 virtual TBool DoIsTransportRestartable() const; |
|
43 TUint16 GetReceivePacketDataLimit(); |
|
44 |
|
45 public://Functions implemented from MObexTransportNotify |
|
46 virtual void DoProcess(CObexPacket &aPacket) ; |
|
47 virtual void DoError(TInt aError) ; |
|
48 virtual void DoTransportUp(TObexConnectionInfo& aInfo); |
|
49 |
|
50 private: |
|
51 void ConstructL(TObexTransportInfo& aTransportInfo); |
|
52 CObexUsbTransportController(); |
|
53 }; |
|
54 |
|
55 #endif //__OBEXUSBTRANSPORTCONTROLLER_H__ |