securitysettings/cpeapuiplugins/cpeapuserpasswordui/src/cpeapuserpasswordplugin.cpp
changeset 34 ad1f037f1ac2
parent 26 9abfd4f00d37
equal deleted inserted replaced
31:372d2d6c5cf9 34:ad1f037f1ac2
     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.
    16  *   EAP method configuration
    16  *   EAP method configuration
    17  *
    17  *
    18  */
    18  */
    19 
    19 
    20 /*
    20 /*
    21  * %version: 9 %
    21  * %version: 11 %
    22  */
    22  */
    23 
    23 
    24 // System includes
    24 // System includes
    25 // User includes
    25 // User includes
    26 #include "cpeapuserpasswordplugin.h"
    26 #include "cpeapuserpasswordplugin.h"
    34 
    34 
    35 // External function prototypes
    35 // External function prototypes
    36 
    36 
    37 // Local constants
    37 // Local constants
    38 
    38 
    39 // Order numbers
    39 Q_EXPORT_PLUGIN2(CpEapUserPasswordPlugin, CpEapUserPasswordPlugin);
    40 static const int order_eapmschapv2(10);
       
    41 static const int order_pap(20);
       
    42 static const int order_plainmschapv2(30);
       
    43 static const int order_eapgtc(40);
       
    44 static const int order_leap(50);
       
    45 
       
    46 Q_EXPORT_PLUGIN2(CpEapUserPasswordPlugin, CpEapUserPasswordPlugin)
       
    47 ;
       
    48 
    40 
    49 // ======== LOCAL FUNCTIONS ========
    41 // ======== LOCAL FUNCTIONS ========
    50 
    42 
    51 // ======== MEMBER FUNCTIONS ========
    43 // ======== MEMBER FUNCTIONS ========
    52 
    44 
    94 QList<EapQtPluginInfo> CpEapUserPasswordPlugin::pluginInfo()
    86 QList<EapQtPluginInfo> CpEapUserPasswordPlugin::pluginInfo()
    95 {
    87 {
    96     qDebug("CpEapUserPasswordPlugin: provide plugin info");
    88     qDebug("CpEapUserPasswordPlugin: provide plugin info");
    97     QList<EapQtPluginInfo> ret;
    89     QList<EapQtPluginInfo> ret;
    98 
    90 
    99     ret.append(EapQtPluginInfo(EapQtPluginHandle::PluginEapMschapv2,  
    91     ret.append(EapQtPluginInfo(
   100         EapUiStrings::EapMschapv2, order_eapmschapv2) );
    92         EapQtPluginHandle::PluginEapMschapv2,
   101     
    93         EapQtUiConstants::StringEapMschapv2,
   102     ret.append(EapQtPluginInfo(EapQtPluginHandle::PluginPap, 
    94         EapQtUiConstants::OrderEapMschapv2));
   103         EapUiStrings::Pap, order_pap) );
       
   104 
    95 
   105     ret.append(EapQtPluginInfo(EapQtPluginHandle::PluginPlainMschapv2,
    96     ret.append(EapQtPluginInfo(
   106         EapUiStrings::Mschapv2, order_plainmschapv2) );
    97         EapQtPluginHandle::PluginPap,
       
    98         EapQtUiConstants::StringPap,
       
    99         EapQtUiConstants::OrderPap));
   107 
   100 
   108     ret.append(EapQtPluginInfo(EapQtPluginHandle::PluginEapGtc, 
   101     ret.append(EapQtPluginInfo(
   109         EapUiStrings::EapGtc, order_eapgtc) );
   102         EapQtPluginHandle::PluginPlainMschapv2,
       
   103         EapQtUiConstants::StringMschapv2,
       
   104         EapQtUiConstants::OrderMschapv2));
   110 
   105 
   111     ret.append(EapQtPluginInfo(EapQtPluginHandle::PluginLeap, 
   106     ret.append(EapQtPluginInfo(
   112         EapUiStrings::Leap, order_leap) );
   107         EapQtPluginHandle::PluginEapGtc,
       
   108         EapQtUiConstants::StringEapGtc,
       
   109         EapQtUiConstants::OrderEapGtc));
       
   110 
       
   111     ret.append(EapQtPluginInfo(
       
   112         EapQtPluginHandle::PluginLeap,
       
   113         EapQtUiConstants::StringLeap,
       
   114         EapQtUiConstants::OrderLeap));
   113 
   115 
   114     return ret;
   116     return ret;
   115 }
   117 }
   116 
   118 
   117 /*!
   119 /*!