Simple logging implemented

Message now stores a copy of the content string
Use .nick() instead of .account() to get the users lowercase name (login name)
This commit is contained in:
Rasmus Karlsson
2017-03-11 11:32:19 +01:00
parent 5dbe6990bd
commit 46f432890f
18 changed files with 338 additions and 66 deletions
+17 -1
View File
@@ -1,15 +1,18 @@
#ifndef MESSAGE_H
#define MESSAGE_H
#include "channel.h"
#include "messages/word.h"
#include "messages/wordpart.h"
#include <IrcMessage>
#include <QVector>
#include <chrono>
namespace chatterino {
class Channel;
namespace messages {
class Message
@@ -54,6 +57,18 @@ public:
return displayName;
}
inline const QString &
getContent() const
{
return this->content;
}
inline const std::chrono::time_point<std::chrono::system_clock> &
getParseTime() const
{
return this->parseTime;
}
std::vector<Word> &
getWords()
{
@@ -91,6 +106,7 @@ private:
QString userName = "";
QString displayName = "";
QString content;
QString id = "";
std::vector<Word> words;