aboutsummaryrefslogtreecommitdiff
path: root/include/chatlogpiece.h
blob: 0232666d17b548f8b224135171654a08deee36be (plain)
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
#ifndef CHATLOGPIECE_H
#define CHATLOGPIECE_H

#include <QDateTime>
#include <QString>

class chatlogpiece {
public:
  chatlogpiece();
  chatlogpiece(QString p_name, QString p_showname, QString p_message,
               bool p_song, int color);
  chatlogpiece(QString p_name, QString p_showname, QString p_message,
               bool p_song, int color, QDateTime p_datetime);
  QString get_name();
  QString get_showname();
  QString get_message();
  bool get_is_song();
  QDateTime get_datetime();
  QString get_datetime_as_string();
  int get_chat_color();

  QString get_full();

private:
  QString name;
  QString showname;
  QString message;
  QDateTime datetime;
  bool is_song;
  int color;
};

#endif // CHATLOGPIECE_H