File indexing completed on 2024-12-08 07:33:44

0001 // SPDX-FileCopyrightText: 2021 Carson Black <uhhadd@gmail.com>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 #pragma once
0005 
0006 #include "customemojimodel.h"
0007 #include <QRegularExpression>
0008 #include <connection.h>
0009 
0010 struct CustomEmoji {
0011     QString name; // with :semicolons:
0012     QString url; // mxc://
0013     QRegularExpression regexp;
0014 };
0015 
0016 struct CustomEmojiModel::Private {
0017     Quotient::Connection *conn = nullptr;
0018     QList<CustomEmoji> emojies;
0019 };