libQuotient
A Qt library for building matrix clients
Quotient::EventContent::PlayableContent< InfoT > Class Template Reference

A base class for info types that include duration: audio and video. More...

#include <eventcontent.h>

Inheritance diagram for Quotient::EventContent::PlayableContent< InfoT >:
Collaboration diagram for Quotient::EventContent::PlayableContent< InfoT >:

Public Member Functions

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

Public Attributes

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

Protected Member Functions

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

Detailed Description

template<typename InfoT>
class Quotient::EventContent::PlayableContent< InfoT >

A base class for info types that include duration: audio and video.

Definition at line 290 of file eventcontent.h.

Constructor & Destructor Documentation

◆ PlayableContent()

template<typename InfoT >
Quotient::EventContent::PlayableContent< InfoT >::PlayableContent ( const QJsonObject &  json)
inlineexplicit

Definition at line 293 of file eventcontent.h.

Member Function Documentation

◆ makeInfoJson()

template<typename InfoT >
QJsonObject Quotient::EventContent::PlayableContent< InfoT >::makeInfoJson ( ) const
inlineoverrideprotectedvirtual

Reimplemented from Quotient::EventContent::UrlBasedContent< InfoT >.

Definition at line 298 of file eventcontent.h.

Member Data Documentation

◆ duration

template<typename InfoT >
int Quotient::EventContent::PlayableContent< InfoT >::duration

Definition at line 306 of file eventcontent.h.


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