securitysettings/inc/cpeapplugininterface.h
changeset 39 fe6b6762fccd
parent 33 938269283a16
equal deleted inserted replaced
38:7a0216d033ac 39:fe6b6762fccd
     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 "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 plugin interface for EAP
       
    16  *   method configuration QT UIs
    16  *
    17  *
    17  */
    18  */
    18 
    19 
    19 /*
    20 /*
    20  * %version: 2 %
    21  * %version: 4 %
    21  */
    22  */
    22 
    23 
    23 #ifndef CPEAPPLUGININTERFACE_H
    24 #ifndef CPEAPPLUGININTERFACE_H
    24 #define CPEAPPLUGININTERFACE_H
    25 #define CPEAPPLUGININTERFACE_H
    25 
    26 
       
    27 // System includes
    26 #include <QtPlugin>
    28 #include <QtPlugin>
       
    29 #include <QString>
    27 #include <eapqtconfiginterface.h>
    30 #include <eapqtconfiginterface.h>
    28 
    31 
       
    32 // User includes
       
    33 
       
    34 // Forward declarations
    29 class CpBaseSettingView;
    35 class CpBaseSettingView;
    30 class EapQtPluginInfo;
    36 class EapQtPluginInfo;
    31 class EapQtPluginHandle;
    37 class EapQtPluginHandle;
    32 
    38 
    33 /*!
    39 // External data types
    34  * @addtogroup group_eap_ui_plugin
       
    35  * @{
       
    36  */
       
    37 
    40 
    38 /*! Qt Plugin interface for EAP settings in Control Panel application.
    41 // Constants
    39  * 
    42 
    40  * All plugin stubs MUST be in 
    43 // All plugin stubs MUST be located in /resource/qt/plugins/controlpanel/eapsecurity
    41  * /resource/qt/plugins/controlpanel/eapsettings
    44 static const QString CpEapPluginInterfacePluginDirectory(
    42  */
    45     "\\resource\\qt\\plugins\\controlpanel\\eapsecurity");
       
    46 
       
    47 // Class declaration
    43 class CpEapPluginInterface
    48 class CpEapPluginInterface
    44 {
    49 {
       
    50 
    45 public:
    51 public:
    46     /*! Destructor */
    52 
    47     virtual ~CpEapPluginInterface()
    53     // Data types
    48     {
    54 
    49     }
    55     virtual ~CpEapPluginInterface() {};
    50     ;
       
    51 
    56 
    52     virtual void setSettingsReference(const EapQtConfigInterface::EapBearerType bearer,
    57     virtual void setSettingsReference(const EapQtConfigInterface::EapBearerType bearer,
    53         const int iapId) = 0;
    58         const int iapId) = 0;
    54 
    59 
    55     virtual QList<EapQtPluginInfo> pluginInfo() = 0;
    60     virtual QList<EapQtPluginInfo> pluginInfo() = 0;
    56 
    61 
    57     virtual CpBaseSettingView* uiInstance(const EapQtPluginHandle& outerHandle,
    62     virtual CpBaseSettingView* uiInstance(const EapQtPluginHandle &outerHandle,
    58         const EapQtPluginInfo& plugin) = 0;
    63         const EapQtPluginInfo &plugin) = 0;
       
    64 
    59 };
    65 };
    60 
    66 
    61 Q_DECLARE_INTERFACE(CpEapPluginInterface,
    67 Q_DECLARE_INTERFACE(CpEapPluginInterface,
    62     "com.nokia.plugin.controlpanel.eap.platform.interface/1.0");
    68     "com.nokia.plugin.controlpanel.eap.platform.interface/1.0");
    63 
    69 
    64 /*! @} */
    70 #endif // CPEAPPLUGININTERFACE_H
    65 
       
    66 #endif