KPeople

abstractpersonaction.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
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 
16 namespace KPeople
17 {
18 class PersonData;
19 
20 class KPEOPLEBACKEND_EXPORT AbstractPersonAction : public QObject
21 {
22  Q_OBJECT
23 public:
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-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:09:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.