accesssec_plat/eap_qt_configuration_api/inc/eapqtpluginhandle.h
changeset 26 9abfd4f00d37
child 27 9660a5eb236f
equal deleted inserted replaced
25:e03a3db4489e 26:9abfd4f00d37
       
     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  *   Control Panel EAP plugin information
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 3 %
       
    21  */
       
    22 
       
    23 #ifndef EAPQTPLUGINHANDLE_H
       
    24 #define EAPQTPLUGINHANDLE_H
       
    25 
       
    26 #include <qglobal.h>
       
    27 #include <QMetaType>
       
    28 
       
    29 #ifdef BUILD_EAP_QT_PLUGIN_INFO_DLL
       
    30 #define EAP_QT_PLUGIN_HANDLE_EXPORT Q_DECL_EXPORT
       
    31 #else
       
    32 #define EAP_QT_PLUGIN_HANDLE_EXPORT Q_DECL_IMPORT
       
    33 #endif
       
    34 
       
    35 class EapQtExpandedEapType;
       
    36 class EapQtPluginHandlePrivate;
       
    37 
       
    38 class EAP_QT_PLUGIN_HANDLE_EXPORT EapQtPluginHandle
       
    39 {
       
    40 public:
       
    41     
       
    42     enum Plugin
       
    43     {
       
    44         PluginUndefined = 0,
       
    45         PluginEapAka,
       
    46         PluginEapFast,
       
    47         PluginEapGtc,
       
    48         PluginLeap,
       
    49         PluginEapMschapv2,
       
    50         PluginPeap,
       
    51         PluginEapSim,
       
    52         PluginEapTls,
       
    53         PluginEapTtls,
       
    54         PluginPap,
       
    55         PluginPlainMschapv2,
       
    56         PluginLast
       
    57     };
       
    58 
       
    59 public:
       
    60 
       
    61     EapQtPluginHandle();
       
    62     EapQtPluginHandle(Plugin id);
       
    63     EapQtPluginHandle(EapQtExpandedEapType type); // maps type to default UIDs
       
    64     EapQtPluginHandle(EapQtExpandedEapType type, int uid);
       
    65     EapQtPluginHandle(const EapQtPluginHandle& handle);
       
    66     ~EapQtPluginHandle();
       
    67 
       
    68     EapQtExpandedEapType type() const;
       
    69     int protocolImplementationUid() const;
       
    70     Plugin pluginId() const;
       
    71 
       
    72     EapQtPluginHandle &operator=(const EapQtPluginHandle &handle);
       
    73     bool operator ==(const EapQtPluginHandle &right_type_value) const;
       
    74 
       
    75 private:
       
    76 
       
    77     QScopedPointer<EapQtPluginHandlePrivate> d_ptr;
       
    78 
       
    79 };
       
    80 
       
    81 // Make the class known to QMetaType to support using QVariant
       
    82 Q_DECLARE_METATYPE(EapQtPluginHandle)
       
    83 
       
    84 #endif /* EAPQTPLUGINHANDLE_H */