|
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 #ifndef CPCATEGORYMODELUTILITY_H |
|
18 #define CPCATEGORYMODELUTILITY_H |
|
19 |
|
20 #include <QString> |
|
21 |
|
22 class HbDataFormModelItem; |
|
23 class CpItemDataHelper; |
|
24 class CpSettingFormItemData; |
|
25 |
|
26 class CpCategoryModelUtility |
|
27 { |
|
28 public: |
|
29 /* |
|
30 load all controlpanel plugins from configuration file, |
|
31 and create model items form the loaded plugins |
|
32 and append model items to given parent |
|
33 */ |
|
34 static void buildConfigPluginItems( |
|
35 HbDataFormModelItem *parent, |
|
36 const QString &configFile, |
|
37 CpItemDataHelper &itemDataHelper, |
|
38 int startPosition); |
|
39 |
|
40 /* |
|
41 setEntryItemContentIfEmpty |
|
42 */ |
|
43 static bool setEntryItemContentIfEmpty( |
|
44 CpSettingFormItemData *itemData, |
|
45 const QString &displayName, |
|
46 const QString &description); |
|
47 |
|
48 /* |
|
49 get all physical drives of the devices |
|
50 */ |
|
51 static QStringList drives(); |
|
52 |
|
53 /* |
|
54 get all controlpanel plugin directories of the device |
|
55 */ |
|
56 static QStringList pluginDirectories(); |
|
57 |
|
58 /* |
|
59 get all config directories of the device |
|
60 */ |
|
61 static QStringList configFileDirectories(); |
|
62 |
|
63 }; |
|
64 |
|
65 #endif // CPCATEGORYMODELUTILITY_H |
|
66 |
|
67 //End of File |
|
68 |