26
|
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
|
34
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
26
|
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:
|
34
|
15 |
* EAP UI plugin information
|
26
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
/*
|
34
|
20 |
* %version: 5 %
|
26
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef EAPQTPLUGININFO_H
|
|
24 |
#define EAPQTPLUGININFO_H
|
|
25 |
|
34
|
26 |
// System includes
|
26
|
27 |
#include <QString>
|
34
|
28 |
#include <eapqtconfigexport.h>
|
26
|
29 |
|
34
|
30 |
// User includes
|
|
31 |
|
|
32 |
// Forward declarations
|
26
|
33 |
class EapQtPluginHandle;
|
|
34 |
class EapQtPluginInfoPrivate;
|
|
35 |
|
34
|
36 |
// External data types
|
|
37 |
|
|
38 |
// Constants
|
|
39 |
|
|
40 |
// Class declaration
|
26
|
41 |
class EAP_QT_PLUGIN_INFO_EXPORT EapQtPluginInfo
|
|
42 |
{
|
34
|
43 |
|
26
|
44 |
public:
|
34
|
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
|
26
|
58 |
~EapQtPluginInfo();
|
|
59 |
|
34
|
60 |
// returns plugin handle of the instance
|
26
|
61 |
EapQtPluginHandle pluginHandle() const;
|
34
|
62 |
|
|
63 |
// returns plugin name string of the instance
|
26
|
64 |
QString localizationId() const;
|
34
|
65 |
|
|
66 |
// returns order number of the instance
|
26
|
67 |
int orderNumber() const;
|
|
68 |
|
34
|
69 |
// assignment
|
26
|
70 |
EapQtPluginInfo &operator=(const EapQtPluginInfo &info);
|
|
71 |
|
|
72 |
private:
|
|
73 |
EapQtPluginInfo();
|
|
74 |
|
34
|
75 |
private: // data
|
|
76 |
|
26
|
77 |
QScopedPointer<EapQtPluginInfoPrivate> d_ptr;
|
34
|
78 |
|
26
|
79 |
};
|
|
80 |
|
34
|
81 |
#endif // EAPQTPLUGININFO_H
|