atrooney-online-2/include/chatlogpiece.h
windrammer fc9fe6b34b
Fix colors not persisting when refreshing IC log (#204)
Co-authored-by: Cents02 <Cents02@Cents0.me>
2020-07-29 17:08:39 -05:00

36 lines
800 B
C++

#ifndef CHATLOGPIECE_H
#define CHATLOGPIECE_H
#include <QtWidgets/QApplication>
#include <QDateTime>
#include <QString>
class chatlogpiece {
Q_DECLARE_TR_FUNCTIONS(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 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;
int color;
bool p_is_song;
};
#endif // CHATLOGPIECE_H