aboutsummaryrefslogtreecommitdiff
path: root/chatlogpiece.h
blob: 34c5926b13107aed7ac9100d19e7c801f0da9d9b (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
#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);
  chatlogpiece(QString p_name, QString p_showname, QString p_message, bool p_song, QDateTime p_datetime);

  QString get_name();
  QString get_showname();
  QString get_message();
  bool get_is_song();
  QDateTime get_datetime();
  QString get_datetime_as_string();

  QString get_full();

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

#endif // CHATLOGPIECE_H