KPeople

actions.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 KPEOPLE_ACTIONS_H
8#define KPEOPLE_ACTIONS_H
9
10#include <kpeople/kpeople_export.h>
11#include <qobjectdefs.h>
12
13#include <QList>
14
15class QString;
16class QObject;
17class QAction;
18namespace KPeople
19{
20Q_NAMESPACE_EXPORT(KPEOPLE_EXPORT)
21class 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 */
29enum ActionType {
30 TextChatAction,
31 AudioCallAction,
32 VideoCallAction,
33 SendEmailAction,
34 SendFileAction,
35 OtherAction = 100,
36};
37Q_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 */
43KPEOPLE_EXPORT QList<QAction *> actionsForPerson(const QString &contactUri, QObject *parent);
44}
45
46#endif // KPEOPLE_ACTIONS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.