controlpanel/controlpanel_plat/inc/cppluginloader.h
author hgs
Fri, 25 Jun 2010 17:09:30 +0800
changeset 40 6465d5bb863a
parent 38 5a264aaf7677
child 52 58cebe0861a8
permissions -rw-r--r--
201025

/*
* 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:  
*
*/

#ifndef CPPLUGINLOADER_H
#define CPPLUGINLOADER_H

#include <cpglobal.h>
#include <QList>

class QString;
class CpPluginInterface;
class CpLauncherInterface;
class CpPluginPlatInterface;

class CP_EXPORT CpPluginLoader
{
public:    
    /* OLD INTERFACES* DPRECATED!!! \deprecated static CpPluginInterface     *loadCpPlugin(const QString &pluginFile)*/
    static CpPluginInterface     *loadCpPlugin(const QString &pluginFile)
    {
        return 0;
    }
    /* OLD INTERFACES* DPRECATED!!! \deprecated static CpPluginPlatInterface *loadPlatCpPlugin(const QString &pluginFile)*/
    static CpPluginPlatInterface *loadPlatCpPlugin(const QString &pluginFile)
    {
        return 0;
    }
    
    /*NEW INTERFACES*/
    static CpPluginInterface     *loadCpPluginInterface(const QString &pluginFile);
    static CpLauncherInterface   *loadCpLauncherInterface(const QString &pluginFile);
};

#endif /* CPPLUGINLOADER_H */