controlpanel/controlpanel_plat/inc/cplauncherinterface.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:46:45 +0300
changeset 21 851e19007849
child 52 58cebe0861a8
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* 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 CPLAUNCHERINTERFACE_H
#define CPLAUNCHERINTERFACE_H

#include <QtPlugin>
#include <QList>

/*!
    \class CpLauncherInterface
    \brief The class CpLauncherInterface defines an interface for plugins which can be launched a specific view from outside controlpanel application.
 */

class QVariant;
class CpBaseSettingView;

class CpLauncherInterface
{
public:
    /*!
     Destructor of CpLauncherInterface.
     */
    virtual ~CpLauncherInterface()
    {
    }
    
    /*!
     Create a CpBaseSettingView by the parameter hint.
     */
    virtual CpBaseSettingView *createSettingView(const QVariant &hint) const = 0;
};

Q_DECLARE_INTERFACE(CpLauncherInterface, "com.nokia.controlpanel.launcher.interface/1.0");

#endif /* CPLAUNCHERINTERFACE_H */