libQuotient
A Qt library for building matrix clients
|
Classes | |
class | Base |
Base for all content types that can be stored in RoomMessageEvent. More... | |
struct | FileInfo |
Mix-in class representing info subobject in content JSON. More... | |
struct | ImageInfo |
A content info class for image/video content types and thumbnails. More... | |
struct | Thumbnail |
An auxiliary class for an info type that carries a thumbnail. More... | |
class | FileContentBase |
The base for all file-based content classes. More... | |
class | TextContent |
Rich text content for m.text, m.emote, m.notice. More... | |
class | LocationContent |
Content class for m.location. More... | |
class | UrlBasedContent |
A template class for content types with a URL and additional info. More... | |
class | PlayableContent |
A base class for info types that include duration: audio and video. More... | |
struct | AliasesEventContent |
struct | SingleKeyValue |
Typedefs | |
using | ImageContent = UrlBasedContent< ImageInfo > |
Content class for m.image. More... | |
using | FileContent = UrlBasedContent< FileInfo > |
Content class for m.file. More... | |
using | VideoContent = PlayableContent< ImageInfo > |
Content class for m.video. More... | |
using | AudioContent = PlayableContent< FileInfo > |
Content class for m.audio. More... | |
Functions | |
QUOTIENT_API QJsonObject | toInfoJson (const FileInfo &info) |
QUOTIENT_API QJsonObject | toInfoJson (const ImageInfo &info) |
using Quotient::EventContent::AudioContent = typedef PlayableContent<FileInfo> |
Content class for m.audio.
Available fields:
Definition at line 344 of file eventcontent.h.
using Quotient::EventContent::FileContent = typedef UrlBasedContent<FileInfo> |
Content class for m.file.
Available fields:
url
or file
in JSON)info
subobject:size
in JSON)mimetype
in JSON)thumbnail_url
or thumbnail_file
in JSON)info/thumbnail_info
subobject:h
and w
in JSON) Definition at line 286 of file eventcontent.h.
using Quotient::EventContent::ImageContent = typedef UrlBasedContent<ImageInfo> |
Content class for m.image.
Available fields:
url
or file
in JSON)info
subobject:size
in JSON)mimetype
in JSON)h
and w
in JSON)thumbnail_url
in JSON)info/thumbnail_info
subobject: contents of thumbnail field, in the same vein as for the main image:Definition at line 270 of file eventcontent.h.
using Quotient::EventContent::VideoContent = typedef PlayableContent<ImageInfo> |
Content class for m.video.
Available fields:
Definition at line 326 of file eventcontent.h.
QUOTIENT_API QJsonObject Quotient::EventContent::toInfoJson | ( | const FileInfo & | info | ) |
QUOTIENT_API QJsonObject Quotient::EventContent::toInfoJson | ( | const ImageInfo & | info | ) |