diff -r 30540fccecae -r 851e19007849 controlpanel/controlpanel_plat/inc/cplauncherinterface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanel/controlpanel_plat/inc/cplauncherinterface.h Mon May 03 12:46:45 2010 +0300 @@ -0,0 +1,51 @@ +/* +* 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 +#include + +/*! + \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 */