equal
deleted
inserted
replaced
|
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 */ |