KPeople

abstractpersonaction.h
1/*
2 SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef ABSTRACT_PERSON_ACTION_H
8#define ABSTRACT_PERSON_ACTION_H
9
10#include <QAction>
11#include <QObject>
12
13#include <KPeople/PersonData>
14#include <kpeoplebackend/kpeoplebackend_export.h>
15
16namespace KPeople
17{
18class PersonData;
19
20class KPEOPLEBACKEND_EXPORT AbstractPersonAction : public QObject
21{
22 Q_OBJECT
23public:
24 explicit AbstractPersonAction(QObject *parent);
25 /** A list of actions that can be executed for a contact
26 * Disabled actions should not be added
27 *
28 * @param data passes the person we're creating the actions for
29 * @param parent parent object for newly created actions
30 */
31 virtual QList<QAction *> actionsForPerson(const PersonData &data, QObject *parent) const = 0;
32};
33
34}
35
36#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.