diff options
Diffstat (limited to 'src/chatlogpiece.h')
| -rw-r--r-- | src/chatlogpiece.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/chatlogpiece.h b/src/chatlogpiece.h new file mode 100644 index 00000000..3750ff91 --- /dev/null +++ b/src/chatlogpiece.h @@ -0,0 +1,26 @@ +#pragma once + +#include <QDateTime> +#include <QString> +#include <QtWidgets/QApplication> + +class ChatLogPiece +{ + Q_DECLARE_TR_FUNCTIONS(chatlogpiece) + +public: + ChatLogPiece(); + ChatLogPiece(QString p_name, QString p_showname, QString p_message, QString p_action, int color, bool selfname); + ChatLogPiece(QString p_name, QString p_showname, QString p_message, QString p_action, int color, bool selfname, QDateTime p_datetime); + + QString name; + QString showname; + QString message; + QString action; + bool selfname = false; + QDateTime datetime; + int color = 0; + + QString get_datetime_as_string(); + QString get_full(); +}; |
