accesssec_plat/eap_qt_configuration_api/inc/eapqtplugininfo.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     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 UI plugin information
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 5 %
       
    21  */
       
    22 
       
    23 #ifndef EAPQTPLUGININFO_H
       
    24 #define EAPQTPLUGININFO_H
       
    25 
       
    26 // System includes
       
    27 #include <QString>
       
    28 #include <eapqtconfigexport.h>
       
    29 
       
    30 // User includes
       
    31 
       
    32 // Forward declarations
       
    33 class EapQtPluginHandle;
       
    34 class EapQtPluginInfoPrivate;
       
    35 
       
    36 // External data types
       
    37 
       
    38 // Constants
       
    39 
       
    40 // Class declaration
       
    41 class EAP_QT_PLUGIN_INFO_EXPORT EapQtPluginInfo
       
    42 {
       
    43 
       
    44 public:
       
    45 
       
    46     // Data types
       
    47 
       
    48     // copy constructor
       
    49     EapQtPluginInfo(const EapQtPluginInfo &info);
       
    50 
       
    51     // constructs an instance from an plugin handle,
       
    52     // plugin name as a string (e.g. "EAP-SIM") used on the UI, and oder number;
       
    53     // order number specifies the location of the plugin in lists of
       
    54     // EAP plugins shown on the UI
       
    55     EapQtPluginInfo(const EapQtPluginHandle &id, const QString &locId, const int orderNumber );
       
    56 
       
    57     // destructor
       
    58     ~EapQtPluginInfo();
       
    59 
       
    60     // returns plugin handle of the instance
       
    61     EapQtPluginHandle pluginHandle() const;
       
    62 
       
    63     // returns plugin name string of the instance
       
    64     QString localizationId() const;
       
    65 
       
    66     // returns order number of the instance
       
    67     int orderNumber() const;
       
    68 
       
    69     // assignment
       
    70     EapQtPluginInfo &operator=(const EapQtPluginInfo &info);
       
    71     
       
    72 private:
       
    73     EapQtPluginInfo();
       
    74 
       
    75 private: // data
       
    76 
       
    77     QScopedPointer<EapQtPluginInfoPrivate> d_ptr;
       
    78 
       
    79 };
       
    80 
       
    81 #endif // EAPQTPLUGININFO_H