|
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: |
|
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() |
|
33 { |
|
34 } |
|
35 |
|
36 void CpPlaceHolderItemData::onLaunchView() |
|
37 { |
|
38 QString message; |
|
39 QTextStream stream(&message); |
|
40 stream << "Load plugin:" |
|
41 << description() |
|
42 << " faild." |
|
43 << "this is only a placeholder." |
|
44 << "Please check:\n" |
|
45 << "1. if the dll name is correct in configuration file.\n" |
|
46 << "2 if the dll has been generated.\n" |
|
47 << "3. if the plugin stub file is in place.\n" |
|
48 << "4. if the dll is valid Qt plugin."; |
|
49 |
|
50 HbMessageBox::launchWarningMessageBox(message); |
|
51 } |
|
52 |
|
53 CpBaseSettingView *CpPlaceHolderItemData::createSettingView() const |
|
54 { |
|
55 return 0; |
|
56 } |