-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconversation.h
48 lines (38 loc) · 988 Bytes
/
conversation.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
41
42
43
44
45
46
47
48
#ifndef CONVERSATION_H
#define CONVERSATION_H
#include <QObject>
#include <QStandardItem>
#include <QTime>
#include "common/types.h"
#include "common/packet.h"
#include "common/packets/slave_user.h"
using namespace YAIC;
class Conversation
{
public:
Conversation(QString prefix, QString name, QStandardItemModel *channelListModel);
QString getName();
QString getFullName();
QString getText();
QString getPrefix();
void setRead();
void setUnread();
void addMessage(QString author, QString messageText);
void userDisconnectedMessage(QString userName);
void removeFromList();
void reAddToList();
void addServerMessage(QString messageText);
int getRow();
void renameConversation(QString newName);
bool isOnTheList();
signals:
public slots:
protected:
QString name;
QString prefix;
QString text;
QStandardItem *item;
QStandardItemModel *channelListModel;
bool onTheList;
};
#endif // CONVERSATION_H