|
1 /* |
|
2 * Copyright (c) 2010 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 * Control Panel QT UI for WEP configuration |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 2 % |
|
21 */ |
|
22 |
|
23 #ifndef CPWEPPLUGIN_H |
|
24 #define CPWEPPLUGIN_H |
|
25 |
|
26 // System includes |
|
27 #include <cpsettingformitemdata.h> |
|
28 #include <QStringList> |
|
29 #include <HbMessageBox> |
|
30 #include <cpwlansecurityplugininterface.h> |
|
31 |
|
32 // User Includes |
|
33 |
|
34 // Forward declarations |
|
35 class CmConnectionMethodShim; |
|
36 class HbTranslator; |
|
37 class WepKeyValidator; |
|
38 |
|
39 // External data types |
|
40 |
|
41 // Constants |
|
42 |
|
43 /*! |
|
44 * Implements WEP plugin for Wlan security control panel |
|
45 */ |
|
46 |
|
47 // Class declaration |
|
48 class CpWepPlugin : public QObject, public CpWlanSecurityPluginInterface |
|
49 { |
|
50 Q_OBJECT |
|
51 Q_INTERFACES(CpWlanSecurityPluginInterface) |
|
52 |
|
53 public: // CpWepPlugin public methods |
|
54 |
|
55 CpWepPlugin(); |
|
56 |
|
57 ~CpWepPlugin(); |
|
58 |
|
59 public: // from CpWlanSecurityPluginInterface |
|
60 |
|
61 CMManagerShim::WlanSecMode securityMode() const; |
|
62 |
|
63 QString securityModeTextId() const; |
|
64 |
|
65 void setReference(CmConnectionMethodShim *cmCm, uint id); |
|
66 |
|
67 int orderNumber() const; |
|
68 |
|
69 CpSettingFormItemData* uiInstance(CpItemDataHelper &dataHelper); |
|
70 |
|
71 signals: |
|
72 |
|
73 public slots: |
|
74 |
|
75 protected: |
|
76 |
|
77 protected slots: |
|
78 |
|
79 private: // Private methods |
|
80 |
|
81 private slots: |
|
82 |
|
83 private: // Private data |
|
84 |
|
85 Q_DISABLE_COPY(CpWepPlugin) |
|
86 |
|
87 //!Translator for all the localisation Text Id's |
|
88 QScopedPointer<HbTranslator> mTranslator; |
|
89 |
|
90 //!Connection Settings Shim connection method pointer |
|
91 CmConnectionMethodShim *mCmCM; |
|
92 |
|
93 //! Connection method Id |
|
94 int mCmId; |
|
95 |
|
96 }; |
|
97 |
|
98 /*! @} */ |
|
99 |
|
100 #endif /* CPWEPPLUGIN_H */ |