controlpanel/controlpanel_plat/inc/cplauncherinterface.h
changeset 21 851e19007849
child 52 58cebe0861a8
equal deleted inserted replaced
19:30540fccecae 21:851e19007849
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPLAUNCHERINTERFACE_H
       
    20 #define CPLAUNCHERINTERFACE_H
       
    21 
       
    22 #include <QtPlugin>
       
    23 #include <QList>
       
    24 
       
    25 /*!
       
    26     \class CpLauncherInterface
       
    27     \brief The class CpLauncherInterface defines an interface for plugins which can be launched a specific view from outside controlpanel application.
       
    28  */
       
    29 
       
    30 class QVariant;
       
    31 class CpBaseSettingView;
       
    32 
       
    33 class CpLauncherInterface
       
    34 {
       
    35 public:
       
    36     /*!
       
    37      Destructor of CpLauncherInterface.
       
    38      */
       
    39     virtual ~CpLauncherInterface()
       
    40     {
       
    41     }
       
    42     
       
    43     /*!
       
    44      Create a CpBaseSettingView by the parameter hint.
       
    45      */
       
    46     virtual CpBaseSettingView *createSettingView(const QVariant &hint) const = 0;
       
    47 };
       
    48 
       
    49 Q_DECLARE_INTERFACE(CpLauncherInterface, "com.nokia.controlpanel.launcher.interface/1.0");
       
    50 
       
    51 #endif /* CPLAUNCHERINTERFACE_H */