controlpanelui/src/cpcategorymodel/src/cputility.h
changeset 19 36aa4756ee82
parent 12 624337f114fe
child 20 22d3abee08da
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
     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 CP_UTILITY_H
       
    18 #define CP_UTILITY_H
       
    19 
       
    20 #include <QString>
       
    21 
       
    22 class HbDataFormModelItem;
       
    23 class CpItemDataHelper;
       
    24 
       
    25 class CpUtility
       
    26 {
       
    27 public:
       
    28 	/*
       
    29 		load all controlpanel plugins from configuration file,
       
    30 		and create model items form the loaded plugins 
       
    31 		and append model items to given parent
       
    32 	*/
       
    33 	static void buildConfigPluginItems(HbDataFormModelItem *parent,
       
    34 		const QString &configFile,
       
    35 		CpItemDataHelper &itemDataHelper);
       
    36 		
       
    37 	/*
       
    38 		get all physical drives of the devices
       
    39 	*/
       
    40 	static QStringList drives();
       
    41 
       
    42 	/*
       
    43 		get all controlpanel plugin directories of the device
       
    44 	*/
       
    45 	static QStringList pluginDirectories();
       
    46 
       
    47 
       
    48 	/*
       
    49 		get all config directories of the device
       
    50 	*/
       
    51 	static QStringList configFileDirectories();
       
    52 
       
    53 
       
    54 };
       
    55 
       
    56 #endif