File indexing completed on 2024-05-05 03:57:10

0001 /*
0002     SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert <jbb@kaidan.im>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QRandomGenerator>
0010 #include <QString>
0011 
0012 inline QString photoImageProviderUri(const QStringView personUri)
0013 {
0014     return u"image://kpeople-avatar/" % QString::fromUtf8(personUri.toUtf8().toBase64()) % u"#" % QString::number(QRandomGenerator::system()->generate());
0015 }