1 /* |
|
2 * Copyright (c) 2006 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 "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 * Declaration of Lan interface implementation |
|
16 * for "LAN" plugin |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef LAN_PLUGIN_H |
|
23 #define LAN_PLUGIN_H |
|
24 |
|
25 // INCLUDES |
|
26 |
|
27 #include <cmpluginlandef.h> |
|
28 #include <cmpluginlanbase.h> |
|
29 |
|
30 #include <e32base.h> |
|
31 #include <eikdoc.h> |
|
32 #include <apparc.h> |
|
33 |
|
34 |
|
35 // FORWARD DECLARATION |
|
36 class CommsDat::CCDLANServiceRecord; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * LAN Plugin IF implementation class |
|
42 * @since Series60_3.2 |
|
43 */ |
|
44 NONSHARABLE_CLASS(CCmPluginLan) : public CCmPluginLanBase |
|
45 { |
|
46 |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two phased constructor. Leaves on failure. |
|
51 * @param - aUrl |
|
52 * @return The created object. |
|
53 */ |
|
54 static CCmPluginLan* NewL( TCmPluginInitParam* aInitParam ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CCmPluginLan(); |
|
60 |
|
61 virtual CCmPluginBaseEng* CreateInstanceL( TCmPluginInitParam& aInitParam ) const; |
|
62 |
|
63 public: // From CCmPluginBaseEng |
|
64 |
|
65 /** |
|
66 * Gets the value for a TInt attribute. |
|
67 * @param aAttribute Identifies the attribute to be retrived. |
|
68 * @return contains the requested TInt attribute. |
|
69 */ |
|
70 virtual TUint32 GetIntAttributeL( const TUint32 aAttribute ) const; |
|
71 |
|
72 /** |
|
73 * Checks if the plug-in can handle the given AP. |
|
74 * @param aIapId IAPId of the AP to be checked |
|
75 * @return ETrue if plug-in can handle the IAP |
|
76 */ |
|
77 virtual TBool CanHandleIapIdL( TUint32 aIapId ) const; |
|
78 |
|
79 /** |
|
80 * Checks if the plug-in can handle the given AP. |
|
81 * @param aIapRecord IAP record to be checked |
|
82 * @return ETrue if plug-in can handle the IAP |
|
83 */ |
|
84 virtual TBool CanHandleIapIdL( CommsDat::CCDIAPRecord* aIapRecord ) const; |
|
85 |
|
86 virtual void AdditionalReset(); |
|
87 |
|
88 private: // Constructors |
|
89 |
|
90 /** |
|
91 * Constructor. |
|
92 */ |
|
93 CCmPluginLan( TCmPluginInitParam* aInitParam ); |
|
94 |
|
95 /** |
|
96 * Second phase constructor. Leaves on failure. |
|
97 * @param |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // LAN_PLUGIN_H |
|