refactor: Move Emotes to Application (#5120)
This commit is contained in:
@@ -191,6 +191,27 @@ public:
|
||||
return this->updates_;
|
||||
}
|
||||
|
||||
BttvEmotes *getBttvEmotes() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getBttvEmotes was called without "
|
||||
"being initialized");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FfzEmotes *getFfzEmotes() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getFfzEmotes was called without "
|
||||
"being initialized");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SeventvEmotes *getSeventvEmotes() override
|
||||
{
|
||||
assert(false && "EmptyApplication::getSeventvEmotes was called without "
|
||||
"being initialized");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
Paths paths_;
|
||||
Args args_;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "mocks/Channel.hpp"
|
||||
#include "providers/bttv/BttvEmotes.hpp"
|
||||
#include "providers/ffz/FfzEmotes.hpp"
|
||||
#include "providers/seventv/SeventvEmotes.hpp"
|
||||
#include "providers/twitch/TwitchIrcServer.hpp"
|
||||
|
||||
namespace chatterino::mock {
|
||||
@@ -16,29 +19,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
const BttvEmotes &getBttvEmotes() const override
|
||||
{
|
||||
return this->bttv;
|
||||
}
|
||||
|
||||
const FfzEmotes &getFfzEmotes() const override
|
||||
{
|
||||
return this->ffz;
|
||||
}
|
||||
|
||||
const SeventvEmotes &getSeventvEmotes() const override
|
||||
{
|
||||
return this->seventv;
|
||||
}
|
||||
|
||||
const IndirectChannel &getWatchingChannel() const override
|
||||
{
|
||||
return this->watchingChannel;
|
||||
}
|
||||
|
||||
BttvEmotes bttv;
|
||||
FfzEmotes ffz;
|
||||
SeventvEmotes seventv;
|
||||
ChannelPtr watchingChannelInner;
|
||||
IndirectChannel watchingChannel;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user