|
1 /* |
|
2 * Copyright (c) 2005 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: Declaration of class CConnectionInfoKey |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CCONNECTIONINFOKEY_H__ |
|
20 #define __CCONNECTIONINFOKEY_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class CConnectionInfo; |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Connection information key class |
|
34 */ |
|
35 NONSHARABLE_CLASS( CConnectionInfoKey ) : public TKeyArrayFix |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * SetPtr function |
|
41 * @param aPtr Pointer used to initialize the class pointer |
|
42 */ |
|
43 void SetPtr( CArrayPtrFlat<CConnectionInfo>* aPtr ); |
|
44 |
|
45 /** |
|
46 * Compare function |
|
47 * @param aLeft Left element to be compared |
|
48 * @param aRight Right element to be compared |
|
49 * @return TInt Result of comparison of the elements |
|
50 */ |
|
51 virtual TInt Compare( TInt aLeft, TInt aRight ) const; |
|
52 |
|
53 /** |
|
54 * At function |
|
55 * @param nIndex Index of the element ot be returned |
|
56 * @return TAny* The element at the given index |
|
57 */ |
|
58 virtual TAny* At( TInt anIndex ) const; |
|
59 |
|
60 /** |
|
61 * TConnectionInfoKey constructor |
|
62 * @return - |
|
63 */ |
|
64 CConnectionInfoKey( TBool aIsWLANFeatureSupported ); |
|
65 |
|
66 /** |
|
67 * ~CConnectionInfoKey() destructor |
|
68 * @param - |
|
69 */ |
|
70 ~CConnectionInfoKey(); |
|
71 |
|
72 /** |
|
73 * NewL function |
|
74 * @param aNameEasyWLAN Name of Easy WLAN connection |
|
75 * return CConnectionInfoKey* |
|
76 */ |
|
77 static CConnectionInfoKey* NewL( TDesC &aNameEasyWLAN ); |
|
78 |
|
79 /** |
|
80 * NewL function |
|
81 * return CConnectionInfoKey* |
|
82 */ |
|
83 static CConnectionInfoKey* NewL(); |
|
84 |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * Symbian default constructor. |
|
90 * @param aNameEasyWLAN Name of Easy WLAN connection |
|
91 */ |
|
92 void ConstructL( TDesC &aNameEasyWLAN ); |
|
93 |
|
94 /** |
|
95 * Symbian default constructor. |
|
96 */ |
|
97 void ConstructL(); |
|
98 |
|
99 |
|
100 protected: |
|
101 // Pointer to class containing info over the connection |
|
102 CArrayPtrFlat<CConnectionInfo> *iPtr; |
|
103 |
|
104 // Tells if WLan feature is supported at runtime |
|
105 TBool iIsWLANFeatureSupported; |
|
106 |
|
107 // Name of Easy WLAN connection |
|
108 HBufC* iNameEasyWLAN; |
|
109 }; |
|
110 |
|
111 |
|
112 #endif |
|
113 |
|
114 // End of File |