
Fix server_address not being properly created in packet distribution Create a log file when you join a server in the logs/<server name>/<logname>.log and update it every time there's a new chat entry minor refactor of chatlogpiece
32 lines
638 B
C++
32 lines
638 B
C++
#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 is_song();
|
|
QDateTime get_datetime();
|
|
QString get_datetime_as_string();
|
|
|
|
QString get_full();
|
|
|
|
private:
|
|
QString name;
|
|
QString showname;
|
|
QString message;
|
|
QDateTime datetime;
|
|
bool p_is_song;
|
|
};
|
|
|
|
#endif // CHATLOGPIECE_H
|