equal
deleted
inserted
replaced
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 #include <es_sock.h> |
|
17 #include <ir_sock.h> |
|
18 #include <bautils.h> |
|
19 #include <usbman.h> |
|
20 #include <d32usbc.h> |
|
21 #include "serverhandlerbase.h" |
|
22 #include "serverhandler.h" |
|
23 #include "TOBEXCON.H" |
|
24 #include "btextnotifiers.h" |
|
25 |
|
26 |
|
27 CObexServerHandler::CObexServerHandler(CActiveConsole* aParent) |
|
28 : CObexServerHandlerBase(aParent) |
|
29 {} |
|
30 |
|
31 CObexServerHandler* CObexServerHandler::NewL(CActiveConsole* aParent, TTransport aTransport) |
|
32 { |
|
33 CObexServerHandler* self = new (ELeave) CObexServerHandler(aParent); |
|
34 |
|
35 CleanupStack::PushL(self); |
|
36 self->ConstructL(aTransport); |
|
37 CleanupStack::Pop(); |
|
38 return (self); |
|
39 } |
|
40 |
|
41 void CObexServerHandler::ConstructL(TTransport aTransport) |
|
42 { |
|
43 BaseConstructL(aTransport); |
|
44 |
|
45 iBuf = CBufFlat::NewL(5000);//5000 - what should I put?? |
|
46 iObject = CObexBufObject::NewL(NULL); |
|
47 |
|
48 iObject->SetDataBufL(iBuf); |
|
49 } |
|
50 |
|
51 CObexServerHandler::~CObexServerHandler() |
|
52 { |
|
53 delete iObject; iObject = 0; |
|
54 delete iBuf; iBuf = 0; |
|
55 } |
|