Rebrand files names Spectral -> NeoChat
This commit is contained in:
32
src/neochatuser.h
Normal file
32
src/neochatuser.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user