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

#include <keyimport.h>

Inheritance diagram for Quotient::KeyImport:
Collaboration diagram for Quotient::KeyImport:

Public Types

enum  Error { Success , InvalidPassphrase , InvalidData , OtherError }
 

Public Member Functions

Q_INVOKABLE Error importKeys (QString data, const QString &passphrase, const Quotient::Connection *connection)
 
Q_INVOKABLE Quotient::Expected< QByteArray, ErrorexportKeys (const QString &passphrase, const Quotient::Connection *connection)
 

Friends

class ::TestKeyImport
 

Detailed Description

Definition at line 21 of file keyimport.h.

Member Enumeration Documentation

◆ Error

Enumerator
Success 
InvalidPassphrase 
InvalidData 
OtherError 

Definition at line 26 of file keyimport.h.

Member Function Documentation

◆ exportKeys()

Q_INVOKABLE Quotient::Expected<QByteArray, Error> Quotient::KeyImport::exportKeys ( const QString &  passphrase,
const Quotient::Connection connection 
)

◆ importKeys()

Q_INVOKABLE Error Quotient::KeyImport::importKeys ( QString  data,
const QString &  passphrase,
const Quotient::Connection connection 
)

Friends And Related Function Documentation

◆ ::TestKeyImport

friend class ::TestKeyImport
friend

Definition at line 40 of file keyimport.h.


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