mirror-chatterino2/src/emojis.hpp

29 lines
471 B
C++
Raw Normal View History

#pragma once
2017-01-06 23:28:48 +01:00
#include "util/emotemap.hpp"
2017-01-06 23:28:48 +01:00
#include <QString>
2017-04-14 17:52:22 +02:00
namespace chatterino {
2017-01-18 21:30:23 +01:00
struct EmojiData {
// actual byte-representation of the emoji (i.e. \154075\156150 which is :male:)
QString value;
2017-07-02 17:37:17 +02:00
// what's used in the emoji-one url
QString code;
2017-07-02 17:37:17 +02:00
// i.e. thinking
QString shortCode;
util::EmoteData emoteData;
};
namespace util {
using EmojiMap = ConcurrentMap<QString, EmojiData>;
} // namespace util
} // namespace chatterino