Rebrand files names Spectral -> NeoChat

This commit is contained in:
Carl Schwan
2020-11-08 23:17:30 +01:00
parent c2c49c69fe
commit 122a7cdd2f
71 changed files with 787 additions and 273 deletions

32
src/neochatuser.h Normal file
View File

@@ -0,0 +1,32 @@
#pragma once
#include <QObject>
#include "room.h"
#include "user.h"
using namespace Quotient;
class NeoChatUser : public User
{
Q_OBJECT
Q_PROPERTY(QColor color READ color CONSTANT)
Q_PROPERTY(QString defaultName READ defaultName WRITE setDefaultName NOTIFY nameChanged)
public:
NeoChatUser(QString userId, Connection *connection)
: User(userId, connection)
{
}
QColor color();
//TODO libQuotient 0.7: remove
void setDefaultName(QString defaultName);
QString defaultName();
Q_SIGNALS:
void nameChanged();
private:
QString m_defaultName;
};