1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Control Panel EAP plug-in information |
15 * EAP plugin information |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 1 % |
20 * %version: 6 % |
21 */ |
21 */ |
22 |
22 |
|
23 // System includes |
23 #include <QList> |
24 #include <QList> |
24 #include <QVariant> |
25 #include <QVariant> |
|
26 #include <eapqtpluginhandle.h> |
|
27 #include <eapqtplugininfo.h> |
25 |
28 |
26 #include "eapqtplugininfo.h" |
29 // User includes |
|
30 #include "eapqtplugininfo_p.h" |
27 |
31 |
28 //---------------------------------------------------------------------------- |
32 /*! |
29 // EapQtPluginInfo |
33 * \class EapQtPluginInfo |
30 //---------------------------------------------------------------------------- |
34 * \brief Public implementation of EAP plugin information |
|
35 */ |
31 |
36 |
32 // stub implementation for now |
37 // External function prototypes |
33 |
38 |
34 EapQtPluginInfo::EapQtPluginInfo(EapQtPluginHandle /* id */, QString /* locId */, int /* orderNumber */) |
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)) |
35 { |
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; |
36 } |
65 } |
37 |
66 |
38 EapQtPluginInfo::~EapQtPluginInfo() |
67 EapQtPluginInfo::~EapQtPluginInfo() |
39 { |
68 { |
|
69 // scoped pointer delete |
40 } |
70 } |
41 |
71 |
42 EapQtPluginHandle EapQtPluginInfo::pluginHandle() const |
72 EapQtPluginHandle EapQtPluginInfo::pluginHandle() const |
43 { |
73 { |
44 EapQtPluginHandle tmp; |
74 return d_ptr->mHandle; |
45 return tmp; |
|
46 } |
75 } |
47 |
76 |
48 QString EapQtPluginInfo::localizationId() const |
77 QString EapQtPluginInfo::localizationId() const |
49 { |
78 { |
50 return QString(); |
79 return d_ptr->mLocId; |
51 } |
80 } |
52 |
81 |
53 int EapQtPluginInfo::orderNumber() const |
82 int EapQtPluginInfo::orderNumber() const |
54 { |
83 { |
55 return 0; |
84 return d_ptr->mOrderNumber; |
56 } |
85 } |