securitysettings/qtconfigutils/eapqtplugininfo/src/eapqtplugininfo.cpp
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 plugin information
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 6 %
       
    21  */
       
    22 
       
    23 // System includes
       
    24 #include <QList>
       
    25 #include <QVariant>
       
    26 #include <eapqtpluginhandle.h>
       
    27 #include <eapqtplugininfo.h>
       
    28 
       
    29 // User includes
       
    30 #include "eapqtplugininfo_p.h"
       
    31 
       
    32 /*!
       
    33  *  \class EapQtPluginInfo
       
    34  *  \brief Public implementation of EAP plugin information
       
    35  */
       
    36 
       
    37 // External function prototypes
       
    38 
       
    39 // Local constants
       
    40 
       
    41 // ======== LOCAL FUNCTIONS ========
       
    42 
       
    43 // ======== MEMBER FUNCTIONS ========
       
    44 
       
    45 EapQtPluginInfo::EapQtPluginInfo(const EapQtPluginHandle &id, const QString &locId,
       
    46     const int orderNumber) :
       
    47     d_ptr(new EapQtPluginInfoPrivate(id, locId, orderNumber))
       
    48 {
       
    49 }
       
    50 
       
    51 EapQtPluginInfo::EapQtPluginInfo(const EapQtPluginInfo &info) :
       
    52     d_ptr(
       
    53         new EapQtPluginInfoPrivate(info.pluginHandle(), info.localizationId(), info.orderNumber()))
       
    54 {
       
    55 }
       
    56 
       
    57 EapQtPluginInfo& EapQtPluginInfo::operator=(const EapQtPluginInfo &info)
       
    58 {
       
    59     // check if assigning to myself
       
    60     if (this != &info) {
       
    61         d_ptr.reset(new EapQtPluginInfoPrivate(info.pluginHandle(), info.localizationId(),
       
    62             info.orderNumber()));
       
    63     }
       
    64     return *this;
       
    65 }
       
    66 
       
    67 EapQtPluginInfo::~EapQtPluginInfo()
       
    68 {
       
    69     // scoped pointer delete
       
    70 }
       
    71 
       
    72 EapQtPluginHandle EapQtPluginInfo::pluginHandle() const
       
    73 {
       
    74     return d_ptr->mHandle;
       
    75 }
       
    76 
       
    77 QString EapQtPluginInfo::localizationId() const
       
    78 {
       
    79     return d_ptr->mLocId;
       
    80 }
       
    81 
       
    82 int EapQtPluginInfo::orderNumber() const
       
    83 {
       
    84     return d_ptr->mOrderNumber;
       
    85 }