|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __P2PDEVICE_H__ |
|
21 #define __P2PDEVICE_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <kernel.h> // For DLogicalDevice |
|
25 // CONSTANTS |
|
26 |
|
27 // MACROS |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // FUNCTION PROTOTYPES |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * User side driver factory. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( DP2PDevice ) : public DLogicalDevice |
|
42 { |
|
43 |
|
44 public: |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 DP2PDevice(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~DP2PDevice(); |
|
55 |
|
56 // Functions from base class DLogicalDevice starts |
|
57 |
|
58 /** |
|
59 * Called by LDD FW in user thread context. More from DLogicalDevice. |
|
60 * @param aChannel |
|
61 * @return TInt, KErrNone if ok. |
|
62 */ |
|
63 virtual TInt Create( DLogicalChannelBase*& aChannel ); |
|
64 |
|
65 /** |
|
66 * 2nd stage constructor. More from DLogicalDevice. |
|
67 * @return TInt, KErrNone if ok. |
|
68 */ |
|
69 virtual TInt Install(); |
|
70 |
|
71 /** |
|
72 * Gets capabilities. More from DLogicalDevice. |
|
73 * @param aDes, descriptor where to set capas. |
|
74 * @return None |
|
75 */ |
|
76 virtual void GetCaps( TDes8& aDes ) const; |
|
77 |
|
78 // Functions from base class DLogicalDevice ends |
|
79 |
|
80 // None own data members. |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // __P2PDEVICE_H__ |
|
85 |
|
86 // End of File |