libQuotient
A Qt library for building matrix clients
Quotient::EventContent::LocationContent Class Reference

Content class for m.location. More...

#include <eventcontent.h>

Inheritance diagram for Quotient::EventContent::LocationContent:
Collaboration diagram for Quotient::EventContent::LocationContent:

Public Member Functions

 LocationContent (const QString &geoUri, const Thumbnail &thumbnail={})
 
 LocationContent (const QJsonObject &json)
 
QMimeType type () const override
 
- 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

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

Protected Member Functions

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

Detailed Description

Content class for m.location.

Available fields:

  • corresponding to the top-level JSON:
    • geoUri ("geo_uri" in JSON)
  • corresponding to the "info" subobject:
    • thumbnail.url ("thumbnail_url" in JSON)
  • corresponding to the "info/thumbnail_info" subobject:
    • thumbnail.payloadSize
    • thumbnail.mimeType
    • thumbnail.imageSize

Definition at line 206 of file eventcontent.h.

Constructor & Destructor Documentation

◆ LocationContent() [1/2]

Quotient::EventContent::LocationContent::LocationContent ( const QString &  geoUri,
const Thumbnail thumbnail = {} 
)

◆ LocationContent() [2/2]

Quotient::EventContent::LocationContent::LocationContent ( const QJsonObject &  json)
explicit

Member Function Documentation

◆ fillJson()

void Quotient::EventContent::LocationContent::fillJson ( QJsonObject &  o) const
overrideprotectedvirtual

◆ type()

QMimeType Quotient::EventContent::LocationContent::type ( ) const
overridevirtual

Member Data Documentation

◆ geoUri

QString Quotient::EventContent::LocationContent::geoUri

Definition at line 214 of file eventcontent.h.

◆ thumbnail

Thumbnail Quotient::EventContent::LocationContent::thumbnail

Definition at line 215 of file eventcontent.h.


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