accesssec_plat/eap_qt_configuration_api/inc/eapqtexpandedeaptype.h
changeset 33 938269283a16
child 39 fe6b6762fccd
equal deleted inserted replaced
22:093cf0757204 33:938269283a16
       
     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 the License "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  *   Expanded EAP type QT data structure
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 2 %
       
    21  */
       
    22 
       
    23 #ifndef EAPQTEXPANDEDEAPTYPE_H
       
    24 #define EAPQTEXPANDEDEAPTYPE_H
       
    25 
       
    26 #include <QByteArray>
       
    27 #include <QMetaType>
       
    28 #include <eapqtconfigdefs.h>
       
    29 
       
    30 
       
    31 class EapQtExpandedEapTypePrivate;
       
    32 
       
    33 class EAP_QT_PLUGIN_INFO_EXPORT EapQtExpandedEapType
       
    34 {
       
    35 public:
       
    36     enum Type
       
    37     {
       
    38         TypeUndefined = 0,
       
    39         TypeEapAka,
       
    40         TypeEapFast,
       
    41         TypeEapGtc,
       
    42         TypeLeap,
       
    43         TypeEapMschapv2,
       
    44         TypePeap,
       
    45         TypeEapSim,
       
    46         TypeEapTls,
       
    47         TypeEapTtls,
       
    48         TypeProtectedSetup,
       
    49         TypePap,
       
    50         TypePlainMschapv2,
       
    51         // keep this as the last one
       
    52         TypeLast
       
    53     };
       
    54 
       
    55     EapQtExpandedEapType();
       
    56     EapQtExpandedEapType(const Type type);
       
    57     EapQtExpandedEapType(const QByteArray data);
       
    58     EapQtExpandedEapType(const EapQtExpandedEapType& type);
       
    59     ~EapQtExpandedEapType();
       
    60 
       
    61     QByteArray eapExpandedData() const;
       
    62     Type type() const;
       
    63 
       
    64     EapQtExpandedEapType &operator=(const EapQtExpandedEapType &type);
       
    65     bool operator ==(const EapQtExpandedEapType &right_type_value) const;
       
    66     bool operator !=(const EapQtExpandedEapType &right_type_value) const;
       
    67 
       
    68 private:
       
    69     QScopedPointer<EapQtExpandedEapTypePrivate> d_ptr;
       
    70 };
       
    71 
       
    72 // Make the class known to QMetaType to support using QVariant
       
    73 Q_DECLARE_METATYPE(EapQtExpandedEapType)
       
    74 
       
    75 #endif /* EAPQTEXTENDEDEAPTYPE_H */