|
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 <QDebug> |
|
19 #include <cpitemdatahelper.h> |
|
20 #include "vmbxcpplugin.h" |
|
21 #include "vmbxcpgroup.h" |
|
22 #include "loggerutil.h" |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 VmbxCpPlugin::VmbxCpPlugin() |
|
29 { |
|
30 } |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 VmbxCpPlugin::~VmbxCpPlugin() |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // Method returns the plugin uid for control panel framework. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 int VmbxCpPlugin::uid() const |
|
45 { |
|
46 _DBGLOG2( "VmbxCpPlugin::uid=",0xEE1F4ECF ) |
|
47 return 0xEE1F4ECF; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CpSettingFormItemData* VmbxCpPlugin::createSettingFormItemData( |
|
55 CpItemDataHelper &itemDataHelper ) const |
|
56 { |
|
57 _DBGLOG( "VmbxCpPlugin::createSettingFormItemData" ) |
|
58 // TODO: remove the legacy arguments, these are not used!!! |
|
59 VmbxCpGroup *itemData = |
|
60 new VmbxCpGroup( |
|
61 HbDataFormModelItem::GroupItem, |
|
62 QString("Voice Mailbox"), |
|
63 QString("vmbxcpplugin.cpcfg"), |
|
64 0, |
|
65 itemDataHelper ); |
|
66 return itemData; |
|
67 } |
|
68 Q_EXPORT_PLUGIN2(VmbxCpPlugin, VmbxCpPlugin); |