/* SPDX-FileCopyrightText: 2013 David Edmundson SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef ABSTRACT_PERSON_ACTION_H #define ABSTRACT_PERSON_ACTION_H #include #include #include #include namespace KPeople { class PersonData; /*! * \class KPeople::AbstractPersonAction * \inmodule KPeopleBackend * \inheaderfile KPeopleBackend/AbstractPersonAction */ class KPEOPLEBACKEND_EXPORT AbstractPersonAction : public QObject { Q_OBJECT public: /*! * */ explicit AbstractPersonAction(QObject *parent); /*! * A list of actions that can be executed for a contact * Disabled actions should not be added * * \a data passes the person we're creating the actions for * * \a parent parent object for newly created actions */ virtual QList actionsForPerson(const PersonData &data, QObject *parent) const = 0; }; } #endif