libQuotient
A Qt library for building matrix clients
filesourceinfo.h File Reference
#include <Quotient/converters.h>
#include <array>
Include dependency graph for filesourceinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Quotient::JWK
 
struct  Quotient::EncryptedFileMetadata
 

Namespaces

 Quotient
 
 Quotient::FileMetadataMap
 

Typedefs

using Quotient::FileSourceInfo = std::variant< QUrl, EncryptedFileMetadata >
 
using Quotient::FileSourceInfoKeys = std::array< QLatin1String, std::variant_size_v< FileSourceInfo > >
 

Functions

QUOTIENT_API std::pair< EncryptedFileMetadata, QByteArray > Quotient::encryptFile (const QByteArray &plainText)
 
QUOTIENT_API QByteArray Quotient::decryptFile (const QByteArray &ciphertext, const EncryptedFileMetadata &metadata)
 
QUOTIENT_API QUrl Quotient::getUrlFromSourceInfo (const FileSourceInfo &fsi)
 
QUOTIENT_API void Quotient::setUrlInSourceInfo (FileSourceInfo &fsi, const QUrl &newUrl)
 
template<>
void Quotient::fillJson (QJsonObject &, const FileSourceInfo &)=delete
 
QUOTIENT_API void Quotient::fillJson (QJsonObject &jo, const FileSourceInfoKeys &jsonKeys, const FileSourceInfo &fsi)
 Export FileSourceInfo to a JSON object. More...
 
QUOTIENT_API FileSourceInfo Quotient::fileSourceInfoFromJson (const QJsonObject &jo, const FileSourceInfoKeys &jsonKeys)
 
QUOTIENT_API void Quotient::FileMetadataMap::add (const QString &roomId, const QString &eventId, const EncryptedFileMetadata &fileMetadata)
 
QUOTIENT_API void Quotient::FileMetadataMap::remove (const QString &roomId, const QString &eventId)
 
QUOTIENT_API EncryptedFileMetadata Quotient::FileMetadataMap::lookup (const QString &roomId, const QString &eventId)
 Obtain file source information across connections, thread-safely. More...