|
1 /* |
|
2 * Copyright (c) 2001-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 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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _EAPTYPEINFO_H_ |
|
21 #define _EAPTYPEINFO_H_ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // LOCAL DATA |
|
27 // This is the maximum length of the information strings. |
|
28 const TUint KMaxInfoStringLength = 32; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Class for storing and transferring the EAP type informational parameters. |
|
33 */ |
|
34 class CEapTypeInfo : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Empty constructor |
|
40 */ |
|
41 CEapTypeInfo(); |
|
42 /** |
|
43 * Constructor that takes the info as arguments. |
|
44 */ |
|
45 CEapTypeInfo( |
|
46 const TDesC& aReleaseDate, |
|
47 const TDesC& aVersion, |
|
48 const TDesC& aManufacturer); |
|
49 /** |
|
50 * Empty destructor. |
|
51 */ |
|
52 virtual ~CEapTypeInfo(); |
|
53 /** |
|
54 * Function for setting the info parameters |
|
55 */ |
|
56 void Set( |
|
57 const TDesC& aReleaseDate, |
|
58 const TDesC& aVersion, |
|
59 const TDesC& aManufacturer); |
|
60 /** |
|
61 * Reads release date |
|
62 */ |
|
63 virtual const TDesC& ReleaseDate() const; |
|
64 |
|
65 /** |
|
66 * Reads version |
|
67 */ |
|
68 virtual const TDesC& Version() const; |
|
69 |
|
70 /** |
|
71 * Reads manufacturer |
|
72 */ |
|
73 virtual const TDesC& Manufacturer() const; |
|
74 |
|
75 private: |
|
76 TBuf<KMaxInfoStringLength> iReleaseDate; |
|
77 TBufC<KMaxInfoStringLength> iVersion; |
|
78 TBufC<KMaxInfoStringLength> iManufacturer; |
|
79 }; |
|
80 |
|
81 #endif // _EAPTYPEINFO_H_ |
|
82 |
|
83 // End of file |