forked from MyDuckIsGoingMad/BroChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qchatmessage.h
39 lines (30 loc) · 1.03 KB
/
qchatmessage.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
#ifndef QCHATMESSAGE_H
#define QCHATMESSAGE_H
#include <QObject>
#include <QString>
class QChatMessage: public QObject
{
Q_OBJECT
public:
explicit QChatMessage( const QString &service, const QString &nickName, const QString &message, const QString &type, QObject *parent = 0 );
virtual ~QChatMessage();
public:
QString service() const;
void setService( const QString &service );
QString nickName() const;
void setNickName( const QString &nickName );
QString message() const;
void setMessage( const QString &message );
QString type() const;
void setType( const QString &type );
static QString deleteTags( const QString& message );
static QString replaceEscapeCharecters( const QString &message );
static bool isLink( const QString& link );
static QString insertLinks( const QString &message, bool convertImageLinks = false );
private:
QString service_;
QString nickName_;
QString message_;
QString type_;
};
#endif // QCHATMESSAGE_H