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

#include <syncdata.h>

Public Member Functions

 SyncData ()=default
 
 SyncData (const QString &cacheFileName)
 
void parseJson (const QJsonObject &json, const QString &baseDir={})
 
Events takePresenceData ()
 
Events takeAccountData ()
 
Events takeToDeviceEvents ()
 
const QHash< QString, int > & deviceOneTimeKeysCount () const
 
SyncDataList takeRoomData ()
 
DevicesList takeDevicesList ()
 
QString nextBatch () const
 
QStringList unresolvedRooms () const
 

Static Public Member Functions

static std::pair< int, int > cacheVersion ()
 
static QString fileNameForRoom (QString roomId)
 

Static Public Attributes

static constexpr int MajorCacheVersion = 11
 

Detailed Description

Definition at line 83 of file syncdata.h.

Constructor & Destructor Documentation

◆ SyncData() [1/2]

Quotient::SyncData::SyncData ( )
default

◆ SyncData() [2/2]

Quotient::SyncData::SyncData ( const QString &  cacheFileName)
explicit

Member Function Documentation

◆ cacheVersion()

static std::pair<int, int> Quotient::SyncData::cacheVersion ( )
static

◆ deviceOneTimeKeysCount()

const QHash<QString, int>& Quotient::SyncData::deviceOneTimeKeysCount ( ) const
inline

Definition at line 94 of file syncdata.h.

◆ fileNameForRoom()

static QString Quotient::SyncData::fileNameForRoom ( QString  roomId)
static

◆ nextBatch()

QString Quotient::SyncData::nextBatch ( ) const
inline

Definition at line 101 of file syncdata.h.

◆ parseJson()

void Quotient::SyncData::parseJson ( const QJsonObject &  json,
const QString &  baseDir = {} 
)

Parse sync response into room events

Parameters
jsonresponse from /sync or a room state cache

◆ takeAccountData()

Events Quotient::SyncData::takeAccountData ( )

◆ takeDevicesList()

DevicesList Quotient::SyncData::takeDevicesList ( )

◆ takePresenceData()

Events Quotient::SyncData::takePresenceData ( )

◆ takeRoomData()

SyncDataList Quotient::SyncData::takeRoomData ( )

◆ takeToDeviceEvents()

Events Quotient::SyncData::takeToDeviceEvents ( )

◆ unresolvedRooms()

QStringList Quotient::SyncData::unresolvedRooms ( ) const
inline

Definition at line 103 of file syncdata.h.

Member Data Documentation

◆ MajorCacheVersion

constexpr int Quotient::SyncData::MajorCacheVersion = 11
staticconstexpr

Definition at line 105 of file syncdata.h.


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