KPeople

actions.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef KPEOPLEWIDGETS_ACTIONS_H
8 #define KPEOPLEWIDGETS_ACTIONS_H
9 
10 #include <kpeople/widgets/kpeoplewidgets_export.h>
11 #include <qobjectdefs.h>
12 
13 #include <QList>
14 
15 class QString;
16 class QObject;
17 class QAction;
18 namespace KPeople
19 {
20 Q_NAMESPACE
21 class PersonData;
22 
23 /**
24  * Each action returned in the list can be one of these
25  * types, however the Type is not mandatory with the action
26  *
27  * The type should be set as QObject property "actionType"
28  */
29 enum ActionType {
30  TextChatAction,
31  AudioCallAction,
32  VideoCallAction,
33  SendEmailAction,
34  SendFileAction,
35  OtherAction = 100,
36 };
37 Q_ENUM_NS(ActionType)
38 
39 /**
40  * Returns a list of actions relevant to the specified @p contactUri where
41  * each QAction will have @p parent passed as its parent QObject
42  */
43 KPEOPLEWIDGETS_EXPORT QList<QAction *> actionsForPerson(const QString &contactUri, QObject *parent);
44 }
45 
46 #endif // KPEOPLEWIDGETS_ACTIONS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 27 2022 22:42:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.