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
+8 -22
View File
@@ -5,26 +5,14 @@
namespace chatterino {
void initChannels();
class Channels
{
public:
static std::shared_ptr<Channel>
getWhispers()
{
return whispers;
}
static std::shared_ptr<Channel>
getMentions()
{
return mentions;
}
static std::shared_ptr<Channel>
getEmpty()
{
return empty;
}
static std::shared_ptr<Channel> getWhispers();
static std::shared_ptr<Channel> getMentions();
static std::shared_ptr<Channel> getEmpty();
const static std::vector<std::shared_ptr<Channel>> getItems();
@@ -37,12 +25,10 @@ private:
{
}
static std::shared_ptr<Channel> whispers;
static std::shared_ptr<Channel> mentions;
static std::shared_ptr<Channel> empty;
static QMap<QString, std::tuple<std::shared_ptr<Channel>, int>> channels;
static QMutex channelsMutex;
};
}
} // namespace chatterino
#endif // CHANNELS_H