1 /* |
|
2 * Copyright (c) 2004 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: Represents a WLAN connection |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef EASYWLANCONNECTIONINFO_H_INCLUDED |
|
21 #define EASYWLANCONNECTIONINFO_H_INCLUDED |
|
22 |
|
23 // INCLUDES |
|
24 #include "WlanConnectionInfo.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class RConnectionMonitor; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Represents a WLAN connection. |
|
34 */ |
|
35 class CEasyWlanConnectionInfo : public CWlanConnectionInfo |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Static constructor |
|
40 * @param aConnectionId The id of the given connection. |
|
41 * @param aMonitor for refreshing details |
|
42 * @param aConnectionBearerType the bearer type of connection |
|
43 * @param aActiveWrapper the for refreshing |
|
44 */ |
|
45 static CEasyWlanConnectionInfo* NewL( TInt aConnectionId, |
|
46 RConnectionMonitor* const aConnectionMonitor, |
|
47 TConnMonBearerType aConnectionBearerType, |
|
48 CActiveWrapper* aActiveWrapper ); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 virtual ~CEasyWlanConnectionInfo(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * Give back a copy of connection. |
|
58 */ |
|
59 virtual CConnectionInfoBase* DeepCopyL(); |
|
60 |
|
61 /** |
|
62 * Refresh iListBoxItemText text, connection ListBox has a |
|
63 * reference to this text. |
|
64 */ |
|
65 virtual void RefreshConnectionListBoxItemTextL(); |
|
66 |
|
67 /** |
|
68 * Refresh details array of connection. |
|
69 * DetailsListBox has a reference to this array. |
|
70 */ |
|
71 virtual void RefreshDetailsArrayL(); |
|
72 |
|
73 protected: // Constructors |
|
74 /** |
|
75 * Constructor |
|
76 * @param aConnectionId The id of the given connection. |
|
77 * @param aMonitor for refreshing details |
|
78 * @param aConnectionBearerType the bearer type of connection |
|
79 * @param aActiveWrapper the for refreshing |
|
80 */ |
|
81 CEasyWlanConnectionInfo( TInt aConnectionId, |
|
82 RConnectionMonitor* const aConnectionMonitor, |
|
83 TConnMonBearerType aConnectionBearerType, |
|
84 CActiveWrapper* aActiveWrapper ); |
|
85 |
|
86 /** |
|
87 * Second phase construction |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 protected: |
|
92 /** |
|
93 * Creates an array with requrired details of connection to |
|
94 * the listbox which visulaize details of connection. This member |
|
95 * is called at initialization. |
|
96 */ |
|
97 virtual void ToArrayDetailsL(); |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // EASYWLANCONNECTIONINFO_H_INCLUDED |
|
102 //End of File. |
|