libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
Quotient::StickerEvent Class Reference

#include <stickerevent.h>

Inheritance diagram for Quotient::StickerEvent:
Collaboration diagram for Quotient::StickerEvent:

Public Member Functions

 StickerEvent (const QString &body, content_type imageContent)
 
const EventContent::ImageContentimage () const
 A textual representation or associated description of the sticker image.
 
QUrl url () const
 The URL to the sticker image. This must be a valid mxc:// URI.
 
- Public Member Functions inherited from Quotient::EventTemplate< StickerEvent, RoomEvent, EventContent::ImageContent >
 EventTemplate (const EventContent::ImageContent &c)
 
EventContent::ImageContent content () const
 

Protected Member Functions

 StickerEvent (const QJsonObject &json)
 
- Protected Member Functions inherited from Quotient::EventTemplate< StickerEvent, RoomEvent, EventContent::ImageContent >
 EventTemplate (const QJsonObject &json)
 

Additional Inherited Members

- Public Types inherited from Quotient::EventTemplate< StickerEvent, RoomEvent, EventContent::ImageContent >
using content_type = EventContent::ImageContent
 

Detailed Description

Sticker messages are specialised image messages that are displayed without controls (e.g. no "download" link, or light-box view on click, as would be displayed for for m.image events).

Definition at line 14 of file stickerevent.h.

Constructor & Destructor Documentation

◆ StickerEvent() [1/2]

Quotient::StickerEvent::StickerEvent ( const QString &  body,
content_type  imageContent 
)
inline

Definition at line 20 of file stickerevent.h.

◆ StickerEvent() [2/2]

Quotient::StickerEvent::StickerEvent ( const QJsonObject &  json)
inlineexplicitprotected

Definition at line 49 of file stickerevent.h.

Member Function Documentation

◆ image()

const EventContent::ImageContent & Quotient::StickerEvent::image ( ) const
inline

A textual representation or associated description of the sticker image.

This could be the alt text of the original image, or a message to accompany and further describe the sticker.

Metadata about the image referred to in url including a thumbnail representation.

Definition at line 35 of file stickerevent.h.

◆ url()

QUrl Quotient::StickerEvent::url ( ) const
inline

The URL to the sticker image. This must be a valid mxc:// URI.

Definition at line 43 of file stickerevent.h.


The documentation for this class was generated from the following file: