libQuotient
A Qt library for building matrix clients
Quotient::EventContent::FileContentBase Class Referenceabstract

The base for all file-based content classes. More...

#include <eventcontent.h>

Inheritance diagram for Quotient::EventContent::FileContentBase:
Collaboration diagram for Quotient::EventContent::FileContentBase:

Public Member Functions

 FileContentBase (const QJsonObject &contentJson={})
 
virtual QUrl url () const =0
 
virtual FileInfo commonInfo () const =0
 
- Public Member Functions inherited from Quotient::EventContent::Base
 Base (QJsonObject o={})
 
virtual ~Base ()=default
 
QJsonObject toJson () const
 
virtual QMimeType type () const =0
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&)=delete
 

Public Attributes

Thumbnail thumbnail
 
- Public Attributes inherited from Quotient::EventContent::Base
QJsonObject originalJson
 

Protected Member Functions

virtual QJsonObject makeInfoJson () const =0
 
void fillJson (QJsonObject &json) const override
 
- Protected Member Functions inherited from Quotient::EventContent::Base
 Base (const Base &)=default
 
 Base (Base &&) noexcept=default
 

Detailed Description

The base for all file-based content classes.

Definition at line 156 of file eventcontent.h.

Constructor & Destructor Documentation

◆ FileContentBase()

Quotient::EventContent::FileContentBase::FileContentBase ( const QJsonObject &  contentJson = {})
inlineexplicit

Definition at line 158 of file eventcontent.h.

Member Function Documentation

◆ commonInfo()

virtual FileInfo Quotient::EventContent::FileContentBase::commonInfo ( ) const
pure virtual

◆ fillJson()

void Quotient::EventContent::FileContentBase::fillJson ( QJsonObject &  json) const
inlineoverrideprotectedvirtual

Implements Quotient::EventContent::Base.

Definition at line 169 of file eventcontent.h.

◆ makeInfoJson()

virtual QJsonObject Quotient::EventContent::FileContentBase::makeInfoJson ( ) const
protectedpure virtual

◆ url()

virtual QUrl Quotient::EventContent::FileContentBase::url ( ) const
pure virtual

Member Data Documentation

◆ thumbnail

Thumbnail Quotient::EventContent::FileContentBase::thumbnail

Definition at line 164 of file eventcontent.h.


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