securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtconfiginterface.cpp
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.
    15  *   EAP method configuration QT interface
    15  *   EAP method configuration QT interface
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 /*
    19 /*
    20  * %version: 21 %
    20  * %version: 25 %
    21  */
    21  */
    22 
    22 
       
    23 // System includes
    23 #include <QList>
    24 #include <QList>
    24 
       
    25 #include <eapqtconfiginterface.h>
    25 #include <eapqtconfiginterface.h>
    26 #include <eapqtexpandedeaptype.h>
    26 #include <eapqtexpandedeaptype.h>
    27 
    27 
       
    28 // User includes
    28 #include "eapqtconfiginterface_p.h"
    29 #include "eapqtconfiginterface_p.h"
    29 #include "cpeapplugininterface.h"
    30 #include "cpeapplugininterface.h"
    30 
    31 
    31 //----------------------------------------------------------------------------
    32 /*!
    32 //              EapQtConfigInterface
    33  *  \class EapQtConfigInterface
    33 //----------------------------------------------------------------------------
    34  *  \brief Public implementation of EAP QT configuration interface
       
    35  */
    34 
    36 
       
    37 // External function prototypes
       
    38 
       
    39 // Local constants
       
    40 
       
    41 // ======== LOCAL FUNCTIONS ========
       
    42 
       
    43 // ======== MEMBER FUNCTIONS ========
    35 
    44 
    36 EapQtConfigInterface::EapQtConfigInterface() :
    45 EapQtConfigInterface::EapQtConfigInterface() :
    37     d_ptr(new EapQtConfigInterfacePrivate)
    46     d_ptr(new EapQtConfigInterfacePrivate)
    38 {
    47 {
    39 }
    48 }
    56 QList<EapQtPluginInfo> EapQtConfigInterface::supportedOuterTypes() const
    65 QList<EapQtPluginInfo> EapQtConfigInterface::supportedOuterTypes() const
    57 {
    66 {
    58     return d_ptr->supportedOuterTypes();
    67     return d_ptr->supportedOuterTypes();
    59 }
    68 }
    60 
    69 
    61 QList<EapQtPluginInfo> EapQtConfigInterface::supportedInnerTypes(const EapQtPluginHandle outerType) const
    70 QList<EapQtPluginInfo> EapQtConfigInterface::supportedInnerTypes(const EapQtPluginHandle &outerType) const
    62 {
    71 {
    63     return d_ptr->supportedInnerTypes(outerType);
    72     return d_ptr->supportedInnerTypes(outerType);
       
    73 }
       
    74 
       
    75 bool EapQtConfigInterface::updateCertificates() const
       
    76 {
       
    77     return d_ptr->updateCertificates();
    64 }
    78 }
    65 
    79 
    66 QList<EapQtCertificateInfo> EapQtConfigInterface::certificateAuthorityCertificates() const
    80 QList<EapQtCertificateInfo> EapQtConfigInterface::certificateAuthorityCertificates() const
    67 {
    81 {
    68     return d_ptr->certificateAuthorityCertificates();
    82     return d_ptr->certificateAuthorityCertificates();
    71 QList<EapQtCertificateInfo> EapQtConfigInterface::userCertificates() const
    85 QList<EapQtCertificateInfo> EapQtConfigInterface::userCertificates() const
    72 {
    86 {
    73     return d_ptr->userCertificates();
    87     return d_ptr->userCertificates();
    74 }
    88 }
    75 
    89 
    76 CpBaseSettingView *EapQtConfigInterface::uiInstance(const EapQtPluginHandle& outerHandle,
    90 CpBaseSettingView *EapQtConfigInterface::uiInstance(const EapQtPluginHandle &outerHandle,
    77     const EapQtPluginHandle &pluginHandle) const
    91     const EapQtPluginHandle &pluginHandle) const
    78 {
    92 {
    79     return d_ptr->uiInstance(outerHandle, pluginHandle);
    93     return d_ptr->uiInstance(outerHandle, pluginHandle);
    80 }
    94 }
    81 
    95 
    82 QList<EapQtPluginHandle> EapQtConfigInterface::selectedOuterTypes() const
    96 QList<EapQtPluginHandle> EapQtConfigInterface::selectedOuterTypes() const
    83 {
    97 {
    84     return d_ptr->selectedOuterTypes();
    98     return d_ptr->selectedOuterTypes();
    85 }
    99 }
    86 
   100 
    87 bool EapQtConfigInterface::isSupportedOuterType(const EapQtPluginHandle& handle) const
   101 bool EapQtConfigInterface::isSupportedOuterType(const EapQtPluginHandle &handle) const
    88 {
   102 {
    89     return d_ptr->isSupportedOuterType(handle);
   103     return d_ptr->isSupportedOuterType(handle);
    90 }
   104 }
    91 
   105 
    92 bool EapQtConfigInterface::isSupportedInnerType(const EapQtPluginHandle& outerHandle,
   106 bool EapQtConfigInterface::isSupportedInnerType(const EapQtPluginHandle &outerHandle,
    93     const EapQtPluginHandle& innerHandle) const
   107     const EapQtPluginHandle& innerHandle) const
    94 {
   108 {
    95     return d_ptr->isSupportedInnerType(outerHandle, innerHandle);
   109     return d_ptr->isSupportedInnerType(outerHandle, innerHandle);
    96 }
   110 }
    97 
   111 
    98 bool EapQtConfigInterface::setSelectedOuterTypes(const QList<EapQtPluginHandle>& outerHandles) const
   112 bool EapQtConfigInterface::setSelectedOuterTypes(const QList<EapQtPluginHandle> &outerHandles) const
    99 {
   113 {
   100     return d_ptr->setSelectedOuterTypes(outerHandles);
   114     return d_ptr->setSelectedOuterTypes(outerHandles);
   101 }
   115 }
   102 
   116 
   103 bool EapQtConfigInterface::readConfiguration(const EapQtPluginHandle& outerHandle,
   117 bool EapQtConfigInterface::readConfiguration(const EapQtPluginHandle &outerHandle,
   104     const EapQtPluginHandle& pluginHandle, EapQtConfig &config) const
   118     const EapQtPluginHandle &pluginHandle, EapQtConfig &config) const
   105 {
   119 {
   106     return d_ptr->readConfiguration(outerHandle, pluginHandle, config);
   120     return d_ptr->readConfiguration(outerHandle, pluginHandle, config);
   107 }
   121 }
   108 
   122 
   109 bool EapQtConfigInterface::saveConfiguration(const EapQtPluginHandle& pluginInfo,
   123 bool EapQtConfigInterface::saveConfiguration(const EapQtPluginHandle &pluginInfo,
   110     EapQtConfig &config) const
   124     const EapQtConfig &config) const
   111 {
   125 {
   112     return d_ptr->saveConfiguration(pluginInfo, config);
   126     return d_ptr->saveConfiguration(pluginInfo, config);
   113 }
   127 }
   114 
   128 
   115 bool EapQtConfigInterface::deleteConfiguration() const
   129 bool EapQtConfigInterface::deleteConfiguration() const
   116 {
   130 {
   117     return d_ptr->deleteConfiguration();
   131     return d_ptr->deleteConfiguration();
   118 }
   132 }
   119 
   133 
   120 EapQtValidator *EapQtConfigInterface::validatorEap(EapQtExpandedEapType type,
   134 EapQtValidator *EapQtConfigInterface::validatorEap(const EapQtExpandedEapType &type,
   121     EapQtConfig::SettingsId id)
   135     const EapQtConfig::SettingsId id) const
   122 {
   136 {
   123     return d_ptr->validatorEap(type, id);
   137     return d_ptr->validatorEap(type, id);
   124 }
   138 }
       
   139 
       
   140 bool EapQtConfigInterface::readPacStoreConfiguration(EapQtPacStoreConfig &config) const
       
   141 {
       
   142     return d_ptr->readPacStoreConfiguration(config);
       
   143 }
       
   144 
       
   145 bool EapQtConfigInterface::savePacStoreConfiguration(const EapQtPacStoreConfig &config) const
       
   146 {
       
   147     return d_ptr->savePacStoreConfiguration(config);
       
   148 }
       
   149 
       
   150 EapQtValidator *EapQtConfigInterface::validatorPacStore(
       
   151     const EapQtPacStoreConfig::PacStoreSettings id) const
       
   152 {
       
   153     return d_ptr->validatorPacStore(id);
       
   154 }