aboutsummaryrefslogtreecommitdiff
path: root/include/chatlogpiece.h
blob: 945a7bc9256f1dcabfaa6b1e8e08da9244190b53 (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
34
#ifndef CHATLOGPIECE_H
#define CHATLOGPIECE_H

#include <QString>
#include <QDateTime>

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