|
1 /* |
|
2 * Copyright (c) 2009 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: Placeholder for plugin configured in cpcfg file but the target is missing. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "cpplaceholderitemdata.h" |
|
19 #include <QTextStream> |
|
20 #include <hbmessagebox.h> |
|
21 #include "cppluginconfig.h" |
|
22 |
|
23 CpPlaceHolderItemData::CpPlaceHolderItemData(CpItemDataHelper &itemDataHelper, |
|
24 const CpPluginConfig &pluginConfig) |
|
25 : CpSettingFormEntryItemData( |
|
26 itemDataHelper, |
|
27 pluginConfig.mDisplayName, |
|
28 pluginConfig.mPluginFile) |
|
29 { |
|
30 } |
|
31 |
|
32 CpPlaceHolderItemData::CpPlaceHolderItemData(CpItemDataHelper &itemDataHelper, |
|
33 const QString &displayName, |
|
34 const QString &pluginFile) |
|
35 : CpSettingFormEntryItemData ( |
|
36 itemDataHelper, |
|
37 displayName, |
|
38 pluginFile) |
|
39 { |
|
40 |
|
41 } |
|
42 |
|
43 CpPlaceHolderItemData::~CpPlaceHolderItemData() |
|
44 { |
|
45 } |
|
46 |
|
47 void CpPlaceHolderItemData::onLaunchView() |
|
48 { |
|
49 QString message; |
|
50 QTextStream stream(&message); |
|
51 stream << "Load plugin:" |
|
52 << description() |
|
53 << " faild." |
|
54 << "Please check:\n" |
|
55 << "1. if the dll name is correct in configuration file.\n" |
|
56 << "2 if the dll has been generated.\n" |
|
57 << "3. if the plugin stub file is in place.\n" |
|
58 << "4. if the dll is valid Qt plugin."; |
|
59 |
|
60 HbMessageBox::warning(message); |
|
61 } |
|
62 |
|
63 CpBaseSettingView *CpPlaceHolderItemData::createSettingView() const |
|
64 { |
|
65 return 0; |
|
66 } |
|
67 |
|
68 //End of File |
|
69 |