Pimcommon

genericplugininterface.cpp
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "genericplugininterface.h"
8
9using namespace PimCommon;
10
11class PimCommon::GenericPluginInterfacePrivate
12{
13public:
14 GenericPluginInterfacePrivate() = default;
15
16 QList<ActionType> actionTypes;
17};
18
19GenericPluginInterface::GenericPluginInterface(QObject *parent)
20 : AbstractGenericPluginInterface(parent)
21 , d(new GenericPluginInterfacePrivate)
22{
23}
24
25GenericPluginInterface::~GenericPluginInterface() = default;
26
27void GenericPluginInterface::setActionTypes(const QList<ActionType> &type)
28{
29 d->actionTypes = type;
30}
31
32void GenericPluginInterface::addActionType(ActionType type)
33{
34 if (!d->actionTypes.contains(type)) {
35 d->actionTypes.append(type);
36 }
37}
38
39QList<ActionType> GenericPluginInterface::actionTypes() const
40{
41 return d->actionTypes;
42}
43
44void GenericPluginInterface::updateActions(int numberOfSelectedItems, int numberOfSelectedCollections)
45{
46 Q_UNUSED(numberOfSelectedItems)
47 Q_UNUSED(numberOfSelectedCollections)
48}
49
50void GenericPluginInterface::setCurrentItems(const Akonadi::Item::List &items)
51{
52 Q_UNUSED(items)
53}
54
55void GenericPluginInterface::setItems(const Akonadi::Item::List &items)
56{
57 Q_UNUSED(items)
58}
59
60void GenericPluginInterface::setCurrentCollection(const Akonadi::Collection &col)
61{
62 Q_UNUSED(col)
63}
64
65void GenericPluginInterface::setCollections(const Akonadi::Collection::List &cols)
66{
67 Q_UNUSED(cols)
68}
69
70PimCommon::GenericPluginInterface::RequireTypes GenericPluginInterface::requiresFeatures() const
71{
72 return None;
73}
74
75#include "moc_genericplugininterface.cpp"
Type type(const QSqlDatabase &db)
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:57:59 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.