KPeople

global.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 GLOBAL_H
8#define GLOBAL_H
9
10#include <QString>
11#include <QStringList>
12#include <QVariantMap>
13
14#include <kpeople/kpeople_export.h>
15
16namespace KPeople
17{
18class PersonData;
19
20/**
21 * Merge all uris into a single person.
22 * Ids can be a mix of person Ids and contact IDs.
23 *
24 * @param uris a list of all identifiers to be merged
25 *
26 * @return the identifier of the new person or an empty string upon failure
27 */
28KPEOPLE_EXPORT QString mergeContacts(const QStringList &uris);
29
30/**
31 * Unmerge a contact. Either remove a contact from a given person or remove a person
32 * identified by @p uri.
33 *
34 * @return Whether the unmerge was successful
35 */
36KPEOPLE_EXPORT bool unmergeContact(const QString &uri);
37
38/**
39 * Return a QPixmap for a TP presence string
40 *
41 * @return QPixmap with the Tp presence icon
42 */
43KPEOPLE_EXPORT QString iconNameForPresenceString(const QString &presenceName);
44
45/**
46 * Returns a sort priority for the given presenceName
47 *
48 * @return sort priority of the given presence
49 */
50KPEOPLE_EXPORT int presenceSortPriority(const QString &presenceName);
51
52}
53
54void initResources();
55
56#endif // GLOBAL_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.