File indexing completed on 2024-06-02 05:31:11
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "genericplugininterface.h" 0008 0009 using namespace PimCommon; 0010 0011 class PimCommon::GenericPluginInterfacePrivate 0012 { 0013 public: 0014 GenericPluginInterfacePrivate() = default; 0015 0016 QList<ActionType> actionTypes; 0017 }; 0018 0019 GenericPluginInterface::GenericPluginInterface(QObject *parent) 0020 : AbstractGenericPluginInterface(parent) 0021 , d(new GenericPluginInterfacePrivate) 0022 { 0023 } 0024 0025 GenericPluginInterface::~GenericPluginInterface() = default; 0026 0027 void GenericPluginInterface::setActionTypes(const QList<ActionType> &type) 0028 { 0029 d->actionTypes = type; 0030 } 0031 0032 void GenericPluginInterface::addActionType(ActionType type) 0033 { 0034 if (!d->actionTypes.contains(type)) { 0035 d->actionTypes.append(type); 0036 } 0037 } 0038 0039 QList<ActionType> GenericPluginInterface::actionTypes() const 0040 { 0041 return d->actionTypes; 0042 } 0043 0044 void GenericPluginInterface::updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) 0045 { 0046 Q_UNUSED(numberOfSelectedItems) 0047 Q_UNUSED(numberOfSelectedCollections) 0048 } 0049 0050 void GenericPluginInterface::setCurrentItems(const Akonadi::Item::List &items) 0051 { 0052 Q_UNUSED(items) 0053 } 0054 0055 void GenericPluginInterface::setItems(const Akonadi::Item::List &items) 0056 { 0057 Q_UNUSED(items) 0058 } 0059 0060 void GenericPluginInterface::setCurrentCollection(const Akonadi::Collection &col) 0061 { 0062 Q_UNUSED(col) 0063 } 0064 0065 void GenericPluginInterface::setCollections(const Akonadi::Collection::List &cols) 0066 { 0067 Q_UNUSED(cols) 0068 } 0069 0070 PimCommon::GenericPluginInterface::RequireTypes GenericPluginInterface::requiresFeatures() const 0071 { 0072 return None; 0073 } 0074 0075 #include "moc_genericplugininterface.cpp"