1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Control Panel plug-in interface for EAP method configuration QT UIs |
15 * Control Panel plug-in interface for EAP method configuration QT UIs |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 1 % |
20 * %version: 2 % |
21 */ |
21 */ |
22 |
|
23 |
22 |
24 #ifndef CPEAPPLUGININTERFACE_H |
23 #ifndef CPEAPPLUGININTERFACE_H |
25 #define CPEAPPLUGININTERFACE_H |
24 #define CPEAPPLUGININTERFACE_H |
26 |
25 |
27 #include <QtPlugin> |
26 #include <QtPlugin> |
28 #include "eapqtplugininfo.h" |
27 #include <eapqtconfiginterface.h> |
29 |
28 |
30 class CpBaseSettingView; |
29 class CpBaseSettingView; |
31 class EapQtConfigInterface; |
30 class EapQtPluginInfo; |
|
31 class EapQtPluginHandle; |
32 |
32 |
|
33 /*! |
|
34 * @addtogroup group_eap_ui_plugin |
|
35 * @{ |
|
36 */ |
33 |
37 |
|
38 /*! Qt Plugin interface for EAP settings in Control Panel application. |
|
39 * |
|
40 * All plugin stubs MUST be in |
|
41 * /resource/qt/plugins/controlpanel/eapsettings |
|
42 */ |
34 class CpEapPluginInterface |
43 class CpEapPluginInterface |
35 { |
44 { |
36 public: |
45 public: |
|
46 /*! Destructor */ |
37 virtual ~CpEapPluginInterface() |
47 virtual ~CpEapPluginInterface() |
38 { |
48 { |
39 } |
49 } |
40 ; |
50 ; |
41 |
51 |
42 virtual void setEapQtConfigInterface(EapQtConfigInterface* configIf) = 0; |
52 virtual void setSettingsReference(const EapQtConfigInterface::EapBearerType bearer, |
|
53 const int iapId) = 0; |
43 |
54 |
44 virtual QList<EapQtPluginInfo> pluginInfo() = 0; |
55 virtual QList<EapQtPluginInfo> pluginInfo() = 0; |
45 |
56 |
46 virtual CpBaseSettingView* uiInstance( |
57 virtual CpBaseSettingView* uiInstance(const EapQtPluginHandle& outerHandle, |
47 const EapQtPluginInfo &plugin) = 0; |
58 const EapQtPluginInfo& plugin) = 0; |
48 }; |
59 }; |
49 |
60 |
50 Q_DECLARE_INTERFACE(CpEapPluginInterface, |
61 Q_DECLARE_INTERFACE(CpEapPluginInterface, |
51 "com.nokia.plugin.controlpanel.eap.platform.interface/1.0"); |
62 "com.nokia.plugin.controlpanel.eap.platform.interface/1.0"); |
52 |
63 |
|
64 /*! @} */ |
53 |
65 |
54 #endif |
66 #endif |