controlpanelui/src/cpcategorymodel/src/cputility.h
changeset 10 0a74be98a8bc
child 11 10d0dd0e43f1
equal deleted inserted replaced
0:254040eb3b7d 10:0a74be98a8bc
       
     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 		get all application plugin directories of the device
       
    49 	*/
       
    50 	static QStringList applicationPluginDirectories();
       
    51 
       
    52 	/*
       
    53 		get all config directories of the device
       
    54 	*/
       
    55 	static QStringList configFileDirectories();
       
    56 
       
    57 
       
    58 };
       
    59 
       
    60 #endif