diff -r 051d34a3f367 -r 2c9d3aa5bea2 controlpanel/controlpanel_plat/inc/cppluginlauncher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanel/controlpanel_plat/inc/cppluginlauncher.h Thu Apr 01 03:17:51 2010 +0800 @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This class is for loading and display a plugin's view. +* This class may dropped, suggest not using it. If you +* want to use it, pls inform us, or check the wiki +* http://s60wiki.nokia.com/S60Wiki/Team_S60_China_SW/Qt_Control_Panel/FAQ +* +*/ + +#ifndef CPPLUGINLAUNCHER_H +#define CPPLUGINLAUNCHER_H + +#include "cpglobal.h" + +class QString; +class CpPluginPlatInterface; + +class CP_EXPORT CpPluginLauncher +{ +public: + /* + launch a view from plugin by plugin file. + the pluginFile can either absoulte file path or only file name. + acceptable format: + sampleplugin + sampleplugin.qtplugin + sampleplugin.dll + C:/resource/qt/plugins/controlpanel/sampleplugin.qtplugin + C:/resource/qt/plugins/controlpanel/sampleplugin.dll + */ + static bool launchCpPluginView(const QString &pluginFile); +}; + +#endif /* CPPLUGINLAUNCHER_H */