
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
34 lines
728 B
C++
34 lines
728 B
C++
#ifndef CHATLOGPIECE_H
|
|
#define CHATLOGPIECE_H
|
|
|
|
#include <QDateTime>
|
|
#include <QString>
|
|
|
|
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
|