wlanutilities/wlanwizard/t_wlanwizard/stubs/eapqtconfiginterface.h
changeset 56 de27cc8389dd
parent 50 d4198dcb9983
child 58 301aeb18ae47
equal deleted inserted replaced
50:d4198dcb9983 56:de27cc8389dd
     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  *   EAP method configuration QT interface
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 5 %
       
    21  */
       
    22 
       
    23 #ifndef EAPQTCONFIGINTERFACE_H
       
    24 #define EAPQTCONFIGINTERFACE_H
       
    25 
       
    26 #include <qglobal.h>
       
    27 #include <QStringList>
       
    28 #include <eapqtexpandedeaptype.h>
       
    29 #include <eapqtpluginhandle.h>
       
    30 #include <eapqtconfigdefs.h>
       
    31 #include "eapqtconfig.h"
       
    32 #include "eapqtpacstoreconfig.h"
       
    33 #include "eapqtcertificateinfo.h"
       
    34 #include "eapqtvalidator.h"
       
    35 
       
    36 class EapQtConfigInterfaceContext;
       
    37 /*!
       
    38  * @addtogroup group_eap_config_api
       
    39  * @{
       
    40  */
       
    41 
       
    42 /*!
       
    43  */
       
    44 class EapQtConfigInterface
       
    45 {
       
    46 public:
       
    47 
       
    48     enum EapBearerType
       
    49     {
       
    50         // EAP configuration interface for WLAN
       
    51         EapBearerTypeWlan,
       
    52         // EAP configuration interface for VPN
       
    53         EapBearerTypeVpn,
       
    54     };
       
    55 
       
    56     static const int IapIdUndefined = -1;
       
    57 
       
    58 public:
       
    59     EapQtConfigInterface(const EapBearerType bearerType, const int iapId);
       
    60     ~EapQtConfigInterface();
       
    61     bool setConfigurationReference(const int iapId);
       
    62     QList<EapQtCertificateInfo> certificateAuthorityCertificates();
       
    63     QList<EapQtCertificateInfo> userCertificates();
       
    64     
       
    65     bool updateCertificates();
       
    66     
       
    67     bool isSupportedOuterType(const EapQtPluginHandle& handle);
       
    68     bool isSupportedInnerType(const EapQtPluginHandle& outerHandle,
       
    69         const EapQtPluginHandle& innerHandle);
       
    70     
       
    71     bool setSelectedOuterTypes(const QList<EapQtPluginHandle>& outerHandles);
       
    72     bool saveConfiguration(const EapQtPluginHandle& pluginHandle, EapQtConfig &config);
       
    73     bool deleteConfiguration();
       
    74     EapQtValidator *validatorEap(EapQtExpandedEapType type, EapQtConfig::SettingsId id);
       
    75     
       
    76     bool readPacStoreConfiguration(EapQtPacStoreConfig &config);
       
    77     bool savePacStoreConfiguration(EapQtPacStoreConfig &config);
       
    78     EapQtValidator *validatorPacStore(EapQtPacStoreConfig::PacStoreSettings id);
       
    79     
       
    80 private:
       
    81     Q_DISABLE_COPY(EapQtConfigInterface)
       
    82     QStringList mCalledMethods;
       
    83     
       
    84     // setConfigurationReference
       
    85     int mIapId;
       
    86     bool mReturnSetConfigurationReference;
       
    87     
       
    88     // certificateAuthorityCertificates
       
    89     QList<EapQtCertificateInfo> mCertsCa;
       
    90     
       
    91     // userCertificates
       
    92     QList<EapQtCertificateInfo> mCertsUser;
       
    93     
       
    94     // isSupportedOuterType
       
    95     QList<EapQtPluginHandle> mSupportedOuterTypes;
       
    96     
       
    97     // isSupportedInnerType
       
    98     QList<EapQtPluginHandle> mSupportedInnerTypes;
       
    99     int mSupportedInnerTypesOuterHandle;
       
   100     
       
   101     // setSelectedOuterTypes
       
   102     QList<EapQtPluginHandle> mSetSelectectedOuterTypes;
       
   103     bool mReturnSetSelectedOuterTypes;
       
   104     
       
   105     // saveConfiguration
       
   106     EapQtPluginHandle::Plugin mOuterPlugin;
       
   107     EapQtConfig mSaveConfigurationsOuter;
       
   108     bool mReturnSaveConfigurationOuter;
       
   109     EapQtPluginHandle::Plugin mInnerPlugin;
       
   110     EapQtConfig mSaveConfigurationsInner;
       
   111     bool mReturnSaveConfigurationInner;
       
   112 
       
   113     // validatorEap
       
   114     QHash<EapQtExpandedEapType::Type, QHash<EapQtConfig::SettingsId, EapQtValidator *> > mValidator;
       
   115     
       
   116     // readPacStoreConfiguration
       
   117     EapQtPacStoreConfig mReadPacStoreConfiguration;
       
   118     bool mReadPacStoreConfigurationReturn;
       
   119     
       
   120     // savePacStoreConfiguration
       
   121     EapQtPacStoreConfig mSavePacStoreConfiguration;
       
   122     bool mSavePacStoreConfigurationReturn;
       
   123     
       
   124     // validatorPacStore, key: EapQtPacStoreConfig::PacStoreSettings
       
   125     QHash<int ,EapQtValidator* > mValidatorPacStore;
       
   126     
       
   127     friend class EapQtConfigInterfaceContext;
       
   128 };
       
   129 
       
   130 /*! @} */
       
   131 
       
   132 #endif
       
   133 
       
   134