Allow uploading additional stickers

This commit is contained in:
Nicolas Werner 2021-08-06 03:28:56 +02:00
parent a57a15a2e0
commit 16d0190f4e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 97 additions and 5 deletions

View file

@ -5,6 +5,8 @@
#pragma once
#include <QAbstractListModel>
#include <QList>
#include <QUrl>
#include <mtx/events/mscs/image_packs.hpp>
@ -66,6 +68,7 @@ public:
void setIsEmotePack(bool val);
Q_INVOKABLE void save();
Q_INVOKABLE void addStickers(QList<QUrl> files);
signals:
void globallyEnabledChanged();
@ -76,6 +79,11 @@ signals:
void isEmotePackChanged();
void isStickerPackChanged();
void addImage(std::string uri, std::string filename, mtx::common::ImageInfo info);
private slots:
void addImageCb(std::string uri, std::string filename, mtx::common::ImageInfo info);
private:
std::string roomid_;
std::string statekey_, old_statekey_;