-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTsClient.h
40 lines (32 loc) · 826 Bytes
/
TsClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Better Chat plugin for TeamSpeak 3
* GPLv3 license
*
* Copyright (C) 2019 Luch (https://github.com/Luch00)
*/
#pragma once
#include <QObject>
class TsClient
{
public:
TsClient(const QString& name, const QString& uniqueId, unsigned short clientId);
~TsClient();
QString name() const;
QString safeUniqueId() const;
QString uniqueId() const;
QString clientLink() const;
bool historyRead() const;
void setHistoryRead();
void setName(QString newName);
static QString link(unsigned short clientId, const QString& uniqueId, const QString& name)
{
return QString("client://%1/%2~%3").arg(QString::number(clientId), uniqueId, name.toHtmlEscaped());
}
private:
QString name_;
const QString uniqueId_;
QString safeUniqueId_;
QString clientLink_;
const unsigned short clientId_;
bool historyRead_;
};