mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
41 lines
No EOL
1.3 KiB
C++
41 lines
No EOL
1.3 KiB
C++
//
|
|
// DomainServerWebSessionData.h
|
|
// domain-server/src
|
|
//
|
|
// Created by Stephen Birarda on 2014-07-21.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_DomainServerWebSessionData_h
|
|
#define hifi_DomainServerWebSessionData_h
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QSet>
|
|
|
|
class DomainServerWebSessionData : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
DomainServerWebSessionData();
|
|
DomainServerWebSessionData(const QJsonObject& userObject);
|
|
DomainServerWebSessionData(const DomainServerWebSessionData& otherSessionData);
|
|
DomainServerWebSessionData& operator=(const DomainServerWebSessionData& otherSessionData);
|
|
|
|
const QString& getUsername() const { return _username; }
|
|
const QSet<QString>& getRoles() const { return _roles; }
|
|
|
|
friend QDataStream& operator<<(QDataStream &out, const DomainServerWebSessionData& session);
|
|
friend QDataStream& operator>>(QDataStream &in, DomainServerWebSessionData& session);
|
|
|
|
private:
|
|
void swap(DomainServerWebSessionData& otherSessionData);
|
|
|
|
QString _username;
|
|
QSet<QString> _roles;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(DomainServerWebSessionData)
|
|
|
|
#endif // hifi_DomainServerWebSessionData_h
|