|
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 // NOTE: This class provides inline functions - DO NOT EXPORT THIS HEADER. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef OBEXSERVERREQUESTPACKETENGINE_H |
|
24 #define OBEXSERVERREQUESTPACKETENGINE_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <obex/internal/mobexserverrequestpacketnotifyregister.h> |
|
28 |
|
29 class CObexServer; |
|
30 class MObexServerRequestPacketNotify; |
|
31 |
|
32 /** |
|
33 Utility class for CObexServer - to allow the OBEX Server extension API for |
|
34 packet access. |
|
35 */ |
|
36 NONSHARABLE_CLASS(CObexServerRequestPacketEngine) : public CBase, public MObexServerRequestPacketNotifyRegister |
|
37 { |
|
38 public: |
|
39 static CObexServerRequestPacketEngine* NewL(CObexServer& aServer); |
|
40 ~CObexServerRequestPacketEngine(); |
|
41 |
|
42 virtual void SetObexServerRequestPacketObserver(MObexServerRequestPacketNotify& aPacketNotify); |
|
43 virtual void DeleteObexServerRequestPacketNotifyRegister(); |
|
44 |
|
45 inline MObexServerRequestPacketNotify* RequestPacketNotify() const; |
|
46 |
|
47 private: |
|
48 CObexServerRequestPacketEngine(CObexServer& aServer); |
|
49 |
|
50 private: |
|
51 CObexServer& iServer; |
|
52 MObexServerRequestPacketNotify* iRequestPacketNotify; |
|
53 }; |
|
54 |
|
55 inline MObexServerRequestPacketNotify* CObexServerRequestPacketEngine::RequestPacketNotify() const |
|
56 { |
|
57 return iRequestPacketNotify; |
|
58 } |
|
59 |
|
60 #endif // OBEXSERVERREQUESTPACKETENGINE_H |
|
61 |