Pimcommon

abstractgenericplugininterface.cpp
1 /*
2  SPDX-FileCopyrightText: 2016-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "abstractgenericplugininterface.h"
8 
9 using namespace PimCommon;
10 
11 class PimCommon::AbstractGenericPluginInterfacePrivate
12 {
13 public:
14  AbstractGenericPluginInterfacePrivate() = default;
15 
16  AbstractGenericPlugin *plugin = nullptr;
17  QWidget *parentWidget = nullptr;
18 };
19 
20 AbstractGenericPluginInterface::AbstractGenericPluginInterface(QObject *parent)
21  : QObject(parent)
22  , d(new AbstractGenericPluginInterfacePrivate)
23 {
24 }
25 
26 AbstractGenericPluginInterface::~AbstractGenericPluginInterface() = default;
27 
28 void AbstractGenericPluginInterface::setParentWidget(QWidget *parent)
29 {
30  d->parentWidget = parent;
31 }
32 
33 QWidget *AbstractGenericPluginInterface::parentWidget() const
34 {
35  return d->parentWidget;
36 }
37 
38 void AbstractGenericPluginInterface::setPlugin(AbstractGenericPlugin *plugin)
39 {
40  d->plugin = plugin;
41 }
42 
43 AbstractGenericPlugin *AbstractGenericPluginInterface::plugin() const
44 {
45  return d->plugin;
46 }
47 
48 void AbstractGenericPluginInterface::showConfigureDialog(QWidget *parentWidget)
49 {
50  Q_UNUSED(parentWidget)
51 }
52 
53 ActionType::ActionType(QAction *action, ActionType::Type type)
54  : mAction(action)
55  , mType(type)
56 {
57 }
58 
59 QAction *ActionType::action() const
60 {
61  return mAction;
62 }
63 
64 ActionType::Type ActionType::type() const
65 {
66  return mType;
67 }
folderdialogacltab.h
The AbstractGenericPlugin class.
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QWidget * parentWidget() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 03:55:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.