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 <obex/transport/mobextransportnotify.h> |
|
17 #include "logger.h" |
|
18 |
|
19 #ifdef __FLOG_ACTIVE |
|
20 _LIT8(KLogComponent, "OBEXCT"); |
|
21 #endif |
|
22 |
|
23 /** |
|
24 Process the received packet. |
|
25 @param aPacket An obex packet. |
|
26 */ |
|
27 EXPORT_C void MObexTransportNotify::Process(CObexPacket &aPacket) |
|
28 { |
|
29 LOG_LINE |
|
30 LOG_FUNC |
|
31 |
|
32 DoProcess(aPacket); |
|
33 } |
|
34 |
|
35 /** |
|
36 Indicate that an error has occurred in the transport. |
|
37 @param aError The error that has occurred. |
|
38 */ |
|
39 EXPORT_C void MObexTransportNotify::Error(TInt aError) |
|
40 { |
|
41 LOG_LINE |
|
42 LOG_FUNC |
|
43 LOG1(_L8("\taError = %d"), aError); |
|
44 |
|
45 DoError(aError); |
|
46 } |
|
47 |
|
48 /** |
|
49 Indicate that the transport is up. |
|
50 @param aInfo The connection info. |
|
51 */ |
|
52 EXPORT_C void MObexTransportNotify::TransportUp(TObexConnectionInfo& aInfo) |
|
53 { |
|
54 LOG_LINE |
|
55 LOG_FUNC |
|
56 |
|
57 DoTransportUp(aInfo); |
|
58 } |
|
59 |
|
60 /** Signals that an event related to processing the packet has occurred. |
|
61 @param aEvent The event that has occurred. |
|
62 */ |
|
63 EXPORT_C void MObexTransportNotify::SignalPacketProcessEvent(TObexPacketProcessEvent aEvent) |
|
64 { |
|
65 DoSignalPacketProcessEvent(aEvent); |
|
66 } |