|
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 #ifndef __MOBEXTRANSPORTNOTIFY_H__ |
|
17 #define __MOBEXTRANSPORTNOTIFY_H__ |
|
18 |
|
19 #include <e32std.h> |
|
20 #include <obex/internal/obextransportconstants.h> |
|
21 |
|
22 class CObexPacket; |
|
23 struct TObexConnectionInfo; |
|
24 |
|
25 /** |
|
26 Provides the call back interface for anything owned by CObexTransportControllerBase |
|
27 (ie CObexConnector or CObexActiveRW derived classes). |
|
28 Note: This is an internal class which is not intended for use outside of |
|
29 the Transport<->Connector/Reader/Writer interface. Even where access rules allow it, external |
|
30 users should not call these functions as their implementation may change. |
|
31 |
|
32 @publishedPartner |
|
33 @released |
|
34 */ |
|
35 NONSHARABLE_CLASS(MObexTransportNotify) |
|
36 { |
|
37 |
|
38 public: |
|
39 IMPORT_C void Process(CObexPacket &aPacket) ; |
|
40 IMPORT_C void Error(TInt aError); |
|
41 IMPORT_C void TransportUp(TObexConnectionInfo& aInfo) ; // Call back to start the obex sessio |
|
42 IMPORT_C void SignalPacketProcessEvent(TObexPacketProcessEvent aEvent); |
|
43 |
|
44 protected: |
|
45 virtual void DoProcess(CObexPacket &aPacket) =0; |
|
46 virtual void DoError(TInt aError) =0; |
|
47 virtual void DoTransportUp(TObexConnectionInfo& aInfo) =0; |
|
48 virtual void DoSignalPacketProcessEvent(TObexPacketProcessEvent aEvent) =0; |
|
49 |
|
50 }; |
|
51 |
|
52 #endif // __MOBEXTRANSPORTNOTIFY_H__ |