/* SPDX-FileCopyrightText: 2013 David Edmundson SPDX-License-Identifier: LGPL-2.1-or-later */ #ifndef GLOBAL_H #define GLOBAL_H #include #include #include #include namespace KPeople { class PersonData; /** * Merge all uris into a single person. * Ids can be a mix of person Ids and contact IDs. * * @param uris a list of all identifiers to be merged * * @return the identifier of the new person or an empty string upon failure */ KPEOPLE_EXPORT QString mergeContacts(const QStringList &uris); /** * Unmerge a contact. Either remove a contact from a given person or remove a person * identified by @p uri. * * @return Whether the unmerge was successful */ KPEOPLE_EXPORT bool unmergeContact(const QString &uri); /** * Return a QPixmap for a TP presence string * * @return QPixmap with the Tp presence icon */ KPEOPLE_EXPORT QString iconNameForPresenceString(const QString &presenceName); /** * Returns a sort priority for the given presenceName * * @return sort priority of the given presence */ KPEOPLE_EXPORT int presenceSortPriority(const QString &presenceName); } void initResources(); #endif // GLOBAL_H