controlpanel/controlpanel_plat/inc/cppluginlauncher.h
changeset 31 2c9d3aa5bea2
child 32 20bd089f4aaa
equal deleted inserted replaced
2:051d34a3f367 31:2c9d3aa5bea2
       
     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:  This class is for loading and display a plugin's view.
       
    15 *								This class may dropped, suggest not using it. If you 
       
    16 *								want to use it, pls inform us, or check the wiki 
       
    17 *								http://s60wiki.nokia.com/S60Wiki/Team_S60_China_SW/Qt_Control_Panel/FAQ
       
    18 *
       
    19 */
       
    20 
       
    21 #ifndef CPPLUGINLAUNCHER_H
       
    22 #define CPPLUGINLAUNCHER_H
       
    23 
       
    24 #include "cpglobal.h"
       
    25 
       
    26 class QString;
       
    27 class CpPluginPlatInterface;
       
    28 
       
    29 class CP_EXPORT CpPluginLauncher
       
    30 {
       
    31 public:
       
    32     /*
       
    33      launch a view from plugin by plugin file.
       
    34      the pluginFile can either absoulte file path or only file name.
       
    35      acceptable format:
       
    36      sampleplugin
       
    37      sampleplugin.qtplugin
       
    38      sampleplugin.dll
       
    39      C:/resource/qt/plugins/controlpanel/sampleplugin.qtplugin
       
    40      C:/resource/qt/plugins/controlpanel/sampleplugin.dll
       
    41      */
       
    42     static bool launchCpPluginView(const QString &pluginFile);
       
    43 };
       
    44 
       
    45 #endif /* CPPLUGINLAUNCHER_H */