securitysettings/qtconfigutils/eapqtconfiginterface/inc/eapqtconfiginterface_p.h
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    15  *   EAP method configuration QT interface private implementation
    15  *   EAP method configuration QT interface private implementation
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 /*
    19 /*
    20  * %version: 36 %
    20  * %version: 39 %
    21  */
    21  */
    22 
    22 
    23 #ifndef EAPQTCONFIGINTERFACEPRIVATE_H
    23 #ifndef EAPQTCONFIGINTERFACEPRIVATE_H
    24 #define EAPQTCONFIGINTERFACEPRIVATE_H
    24 #define EAPQTCONFIGINTERFACEPRIVATE_H
    25 
    25 
    36 
    36 
    37 // Forward declarations
    37 // Forward declarations
    38 class HbTranslator;
    38 class HbTranslator;
    39 class CEapType;
    39 class CEapType;
    40 class CEapGeneralSettings;
    40 class CEapGeneralSettings;
       
    41 class CEapFastPacStore;
    41 class CpEapPluginInterface;
    42 class CpEapPluginInterface;
    42 class EapQtConfigInterface;
    43 class EapQtConfigInterface;
    43 
    44 
    44 // External data types
    45 // External data types
    45 
    46 
    57     static const unsigned int StringMaxLength = KGeneralStringMaxLength;
    58     static const unsigned int StringMaxLength = KGeneralStringMaxLength;
    58     static const unsigned int CertLabelMaxLength = KMaxCertLabelLength;
    59     static const unsigned int CertLabelMaxLength = KMaxCertLabelLength;
    59     static const unsigned int CertThumbprintMaxLength = KThumbprintMaxLength;
    60     static const unsigned int CertThumbprintMaxLength = KThumbprintMaxLength;
    60     static const unsigned int CertSubjectKeyIdLength = KSHA1HashLengthBytes;
    61     static const unsigned int CertSubjectKeyIdLength = KSHA1HashLengthBytes;
    61 
    62 
       
    63     // PAC store password is in 8-bit format in EAP server
       
    64     static const unsigned int PacPasswordMaxLength = StringMaxLength/2;
       
    65 
    62     // see eapqtinterface.h for documentation
    66     // see eapqtinterface.h for documentation
    63 
    67 
    64     EapQtConfigInterfacePrivate();
    68     EapQtConfigInterfacePrivate();
    65 
    69 
    66     EapQtConfigInterfacePrivate(const EapQtConfigInterface::EapBearerType bearerType,
    70     EapQtConfigInterfacePrivate(const EapQtConfigInterface::EapBearerType bearerType,
   139 
   143 
   140     // comparison mehtod for qSort
   144     // comparison mehtod for qSort
   141     // must be static for using via function pointers
   145     // must be static for using via function pointers
   142     static bool pluginLessThan(const EapQtPluginInfo &plugin1, const EapQtPluginInfo &plugin2);
   146     static bool pluginLessThan(const EapQtPluginInfo &plugin1, const EapQtPluginInfo &plugin2);
   143 
   147 
       
   148     void getPacStoreIf();
       
   149 
   144     Q_DISABLE_COPY(EapQtConfigInterfacePrivate)
   150     Q_DISABLE_COPY(EapQtConfigInterfacePrivate)
   145 
   151 
   146 private: // data
   152 private: // data
   147 
   153 
   148     /// QT members
   154     /// QT members
   165     QList<EapQtPluginInfo> mSupportedInnerTypes;
   171     QList<EapQtPluginInfo> mSupportedInnerTypes;
   166 
   172 
   167     // currenly loaded outer EAP type
   173     // currenly loaded outer EAP type
   168     EapQtPluginHandle mLastOuterHandle;
   174     EapQtPluginHandle mLastOuterHandle;
   169 
   175 
   170     // translator object for EAP UIs
   176     // translator objects for EAP UIs
   171     QScopedPointer<HbTranslator> mTranslator;
   177     QScopedPointer<HbTranslator> mTranslator;
   172 
   178     QScopedPointer<HbTranslator> mEapPromptsTranslator;
       
   179     
   173     // read CA and user certificates
   180     // read CA and user certificates
   174     QList<EapQtCertificateInfo> mCaCertificates;
   181     QList<EapQtCertificateInfo> mCaCertificates;
   175     QList<EapQtCertificateInfo> mUserCertificates;
   182     QList<EapQtCertificateInfo> mUserCertificates;
   176 
   183 
   177     /// Symbian members
   184     /// Symbian members
   178 
   185 
   179     // pointers to EAP server interfaces
   186     // pointers to EAP server interfaces
   180     QScopedPointer<CEapGeneralSettings> mEapGsIf;
   187     QScopedPointer<CEapGeneralSettings> mEapGsIf;
   181     QScopedPointer<CEapType> mEapTypeIf;
   188     QScopedPointer<CEapType> mEapTypeIf;
       
   189     QScopedPointer<CEapFastPacStore> mPacStoreIf;
   182 
   190 
   183     // current IAP ID
   191     // current IAP ID
   184     int mIapId;
   192     int mIapId;
   185 
   193 
   186     // current bearer
   194     // current bearer