atrooney-online-2/include/chatlogpiece.h
Crystalwarrior c8e12558cd Clang-ify the code with this styling using Visual Studio Code:
{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Stroustrup, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All }
(this is the Visual Studio preset with only "BreakBeforeBraces" changed from Allman to Stroustrup)
2020-05-22 01:18:24 +03:00

31 lines
668 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);
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