Skip to content

Commit

Permalink
Add missing QUOTIENT_API
Browse files Browse the repository at this point in the history
Those are not normally used on the client side but just in case...
  • Loading branch information
KitsuneRal committed Aug 17, 2023
1 parent e5f275a commit 5a4fdd2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Quotient/connectiondata.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Quotient {
class NetworkAccessManager;
class BaseJob;

class ConnectionData {
class QUOTIENT_API ConnectionData {
public:
explicit ConnectionData(QUrl baseUrl);
Q_DISABLE_COPY_MOVE(ConnectionData)
Expand Down
14 changes: 8 additions & 6 deletions Quotient/e2ee/e2ee_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,18 @@ struct UnsignedOneTimeKeys
QHash<QString, QString> curve25519() const { return keys[Curve25519Key]; }
};

class SignedOneTimeKey {
class QUOTIENT_API SignedOneTimeKey {
public:
explicit SignedOneTimeKey(const QString& unsignedKey, const QString& userId,
const QString& deviceId,
const QByteArray& signature)
: payload { { "key"_ls, unsignedKey },
{ "signatures"_ls,
QJsonObject {
{ userId, QJsonObject { { "ed25519:"_ls % deviceId,
QString::fromUtf8(signature) } } } } } }
: payload{
{ "key"_ls, unsignedKey },
{ "signatures"_ls,
QJsonObject{
{ userId, QJsonObject{ { "ed25519:"_ls % deviceId,
QString::fromUtf8(signature) } } } } }
}
{}
explicit SignedOneTimeKey(const QJsonObject& jo = {})
: payload(jo)
Expand Down
2 changes: 1 addition & 1 deletion Quotient/jobs/syncjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "basejob.h"

namespace Quotient {
class SyncJob : public BaseJob {
class QUOTIENT_API SyncJob : public BaseJob {
public:
explicit SyncJob(const QString& since = {}, const QString& filter = {},
int timeout = -1, const QString& presence = {});
Expand Down
2 changes: 1 addition & 1 deletion Quotient/syncdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class QUOTIENT_API SyncRoomData {
// QVector cannot work with non-copyable objects, std::vector can.
using SyncDataList = std::vector<SyncRoomData>;

class SyncData {
class QUOTIENT_API SyncData {
public:
SyncData() = default;
explicit SyncData(const QString& cacheFileName);
Expand Down

0 comments on commit 5a4fdd2

Please sign in to comment.