Changeset View
Changeset View
Standalone View
Standalone View
src/matrix-sticker-pack.hpp
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public: | ||||
| * Add a sticker to the pack and return the source of the | * Add a sticker to the pack and return the source of the | ||||
| * modified pack. | * modified pack. | ||||
| * | * | ||||
| * @param shortCode The short code of the sticker. | * @param shortCode The short code of the sticker. | ||||
| * @param event The event of the sticker. | * @param event The event of the sticker. | ||||
| * @return The MatrixStickerPackSource of the modified pack. | * @return The MatrixStickerPackSource of the modified pack. | ||||
| */ | */ | ||||
| Q_INVOKABLE QVariant addSticker(const QString &shortCode, MatrixEvent *event) const; | Q_INVOKABLE QVariant addSticker(const QString &shortCode, MatrixEvent *event) const; | ||||
| /** | |||||
| * Remove a sticker from the pack by short code and return the | |||||
| * source of the modified pack. | |||||
| * | |||||
| * @param shortCode The short code of the sticker to remove. | |||||
| * @return The MatrixStickerPackSource of the modified pack. | |||||
| */ | |||||
| Q_INVOKABLE QVariant removeSticker(const QString &shortCode) const; | |||||
| }; | }; | ||||