removed namespaces
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
#include "common/UrlFetch.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace bttv {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -118,6 +116,4 @@ void BTTVEmotes::loadChannelEmotes(const QString &channelName, std::weak_ptr<uti
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace bttv
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <map>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace bttv {
|
||||
|
||||
class BTTVEmotes
|
||||
{
|
||||
@@ -27,6 +25,4 @@ private:
|
||||
util::EmoteMap channelEmoteCache;
|
||||
};
|
||||
|
||||
} // namespace bttv
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <QFile>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace emoji {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -379,6 +377,4 @@ QString Emojis::replaceShortCodes(const QString &text)
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace emoji
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <map>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace emoji {
|
||||
|
||||
struct EmojiData {
|
||||
// actual byte-representation of the emoji (i.e. \154075\156150 which is :male:)
|
||||
@@ -66,6 +64,4 @@ private:
|
||||
QMap<QChar, QVector<std::shared_ptr<EmojiData>>> emojiFirstByte;
|
||||
};
|
||||
|
||||
} // namespace emoji
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
#include "common/UrlFetch.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace ffz {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -133,6 +131,4 @@ void FFZEmotes::loadChannelEmotes(const QString &channelName, std::weak_ptr<util
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace ffz
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <map>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace ffz {
|
||||
|
||||
class FFZEmotes
|
||||
{
|
||||
@@ -27,6 +25,4 @@ private:
|
||||
util::ConcurrentMap<int, util::EmoteData> channelEmoteCache;
|
||||
};
|
||||
|
||||
} // namespace ffz
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -6,11 +6,7 @@
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
using namespace chatterino::messages;
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
AbstractIrcServer::AbstractIrcServer()
|
||||
{
|
||||
@@ -271,6 +267,4 @@ void AbstractIrcServer::forEachChannel(std::function<void(ChannelPtr)> func)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <mutex>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
class AbstractIrcServer
|
||||
{
|
||||
@@ -72,6 +70,4 @@ private:
|
||||
// bool autoReconnect_ = false;
|
||||
};
|
||||
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "IrcAccount.hpp"
|
||||
|
||||
// namespace chatterino {
|
||||
// namespace providers {
|
||||
// namespace irc {
|
||||
//
|
||||
// IrcAccount::IrcAccount(const QString &_userName, const QString &_nickName, const QString
|
||||
// &_realName,
|
||||
// const QString &_password)
|
||||
@@ -32,6 +31,5 @@
|
||||
//{
|
||||
// return this->password;
|
||||
//}
|
||||
//} // namespace irc
|
||||
//} // namespace providers
|
||||
//
|
||||
//} // namespace chatterino
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
#include <QString>
|
||||
|
||||
// namespace chatterino {
|
||||
// namespace providers {
|
||||
// namespace irc {
|
||||
//
|
||||
// class IrcAccount
|
||||
//{
|
||||
// public:
|
||||
@@ -22,6 +21,5 @@
|
||||
// QString realName;
|
||||
// QString password;
|
||||
//};
|
||||
//} // namespace irc
|
||||
//} // namespace providers
|
||||
//
|
||||
//} // namespace chatterino
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
#include "IrcChannel2.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
// IrcChannel::IrcChannel()
|
||||
//{
|
||||
//}
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
//
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
// class IrcChannel
|
||||
//{
|
||||
// public:
|
||||
// IrcChannel();
|
||||
//};
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
//
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include "IrcConnection2.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
IrcConnection::IrcConnection(QObject *parent)
|
||||
: Communi::IrcConnection(parent)
|
||||
@@ -33,6 +31,4 @@ IrcConnection::IrcConnection(QObject *parent)
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
#include <QTimer>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
class IrcConnection : public Communi::IrcConnection
|
||||
{
|
||||
@@ -22,6 +20,4 @@ private:
|
||||
std::atomic<bool> recentlyReceivedMessage_{true};
|
||||
};
|
||||
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
#include <cassert>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
// IrcServer::IrcServer(const QString &hostname, int port)
|
||||
//{
|
||||
// this->initConnection();
|
||||
//}
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
//
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
#include "providers/irc/AbstractIrcServer.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace irc {
|
||||
|
||||
// class IrcServer
|
||||
//{
|
||||
// public:
|
||||
@@ -20,6 +19,5 @@ namespace irc {
|
||||
// virtual void privateMessageReceived(Communi::IrcPrivateMessage *message);
|
||||
// virtual void messageReceived(Communi::IrcMessage *message);
|
||||
//};
|
||||
} // namespace irc
|
||||
} // namespace providers
|
||||
//
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
namespace chatterino {
|
||||
|
||||
static const char *ANONYMOUS_USERNAME_LABEL ATTR_UNUSED = " - anonymous - ";
|
||||
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
static const char *ANONYMOUS_USERNAME ATTR_UNUSED = "justinfan64537";
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
#include <QString>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
struct EmoteValue {
|
||||
public:
|
||||
@@ -29,6 +27,4 @@ private:
|
||||
QString _channelName;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -17,12 +17,7 @@
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
using namespace chatterino::singletons;
|
||||
using namespace chatterino::messages;
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
IrcMessageHandler &IrcMessageHandler::getInstance()
|
||||
{
|
||||
@@ -369,6 +364,4 @@ void IrcMessageHandler::handlePartMessage(Communi::IrcMessage *message)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
#include <IrcMessage>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchServer;
|
||||
|
||||
@@ -34,6 +32,4 @@ private:
|
||||
TwitchServer &server, bool isResub, bool isAction);
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -17,8 +17,6 @@ using websocketpp::lib::placeholders::_1;
|
||||
using websocketpp::lib::placeholders::_2;
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
static const char *pingPayload = "{\"type\":\"PING\"}";
|
||||
|
||||
@@ -772,6 +770,4 @@ void PubSub::runThread()
|
||||
debug::Log("Done with pubsub manager thread");
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
#include <vector>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
using WebsocketClient = websocketpp::client<websocketpp::config::asio_tls_client>;
|
||||
using WebsocketHandle = websocketpp::connection_hdl;
|
||||
@@ -159,6 +157,4 @@ private:
|
||||
void runThread();
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
#include "providers/twitch/PubsubHelpers.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
PubSubAction::PubSubAction(const rapidjson::Value &data, const QString &_roomID)
|
||||
: timestamp(std::chrono::steady_clock::now())
|
||||
@@ -13,6 +11,4 @@ PubSubAction::PubSubAction(const rapidjson::Value &data, const QString &_roomID)
|
||||
getCreatedByUser(data, this->source);
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <cinttypes>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
struct ActionUser {
|
||||
QString id;
|
||||
@@ -105,6 +103,4 @@ struct ModerationStateAction : PubSubAction {
|
||||
bool modded;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "util/RapidjsonHelpers.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
const rapidjson::Value &getArgs(const rapidjson::Value &data)
|
||||
{
|
||||
@@ -80,6 +78,4 @@ rapidjson::Document createUnlistenMessage(const std::vector<std::string> &topics
|
||||
return msg;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <memory>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
struct ActionUser;
|
||||
|
||||
@@ -58,6 +56,4 @@ void runAfter(std::shared_ptr<boost::asio::steady_timer> timer, Duration duratio
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include "common/UrlFetch.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchAccount::TwitchAccount(const QString &_username, const QString &_oauthToken,
|
||||
const QString &_oauthClient, const QString &_userID)
|
||||
@@ -258,6 +256,4 @@ std::set<TwitchUser> TwitchAccount::getIgnores() const
|
||||
return this->ignores;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -27,9 +27,6 @@ enum FollowResult {
|
||||
FollowResult_Failed,
|
||||
};
|
||||
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchAccount : public controllers::accounts::Account
|
||||
{
|
||||
public:
|
||||
@@ -81,6 +78,4 @@ private:
|
||||
std::set<TwitchUser> ignores;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
#include "debug/Log.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchAccountManager::TwitchAccountManager()
|
||||
: anonymousUser(new TwitchAccount(ANONYMOUS_USERNAME, "", "", ""))
|
||||
@@ -199,6 +197,4 @@ TwitchAccountManager::AddUserResponse TwitchAccountManager::addUser(
|
||||
return AddUserResponse::UserAdded;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -15,14 +15,8 @@
|
||||
//
|
||||
|
||||
namespace chatterino {
|
||||
namespace controllers {
|
||||
namespace accounts {
|
||||
class AccountController;
|
||||
}
|
||||
} // namespace controllers
|
||||
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchAccountManager
|
||||
{
|
||||
@@ -74,6 +68,4 @@ private:
|
||||
friend class chatterino::controllers::accounts::AccountController;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
#include <QTimer>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchChannel::TwitchChannel(const QString &channelName, Communi::IrcConnection *_readConnection)
|
||||
: Channel(channelName, Channel::Twitch)
|
||||
@@ -468,6 +466,4 @@ void TwitchChannel::fetchRecentMessages()
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
#include <mutex>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchServer;
|
||||
|
||||
@@ -133,6 +131,4 @@ private:
|
||||
std::mutex recentChattersMutex;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#define TWITCH_EMOTE_TEMPLATE "https://static-cdn.jtvnw.net/emoticons/v1/{id}/{scale}"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -256,6 +254,4 @@ void TwitchEmotes::loadSetData(std::shared_ptr<TwitchEmotes::EmoteSet> emoteSet)
|
||||
req.execute();
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
#include <QString>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchEmotes
|
||||
{
|
||||
@@ -70,6 +68,4 @@ private:
|
||||
util::ConcurrentMap<QString, util::EmoteData> _twitchEmoteFromCache;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
#include "debug/Log.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
bool trimChannelName(const QString &channelName, QString &outChannelName)
|
||||
{
|
||||
@@ -17,6 +15,4 @@ bool trimChannelName(const QString &channelName, QString &outChannelName)
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include <QString>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
bool trimChannelName(const QString &channelName, QString &outChannelName);
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
using namespace chatterino::messages;
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchMessageBuilder::TwitchMessageBuilder(Channel *_channel,
|
||||
const Communi::IrcPrivateMessage *_ircMessage,
|
||||
@@ -803,6 +801,4 @@ bool TwitchMessageBuilder::tryParseCheermote(const QString &string)
|
||||
|
||||
return false;
|
||||
}
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,10 +10,8 @@
|
||||
#include <QVariant>
|
||||
|
||||
namespace chatterino {
|
||||
class Channel;
|
||||
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
class Channel;
|
||||
class TwitchChannel;
|
||||
|
||||
class TwitchMessageBuilder : public messages::MessageBuilder
|
||||
@@ -70,6 +68,4 @@ private:
|
||||
bool tryParseCheermote(const QString &string);
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -14,12 +14,9 @@
|
||||
#include <cassert>
|
||||
|
||||
// using namespace Communi;
|
||||
using namespace chatterino::singletons;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchServer::TwitchServer()
|
||||
: whispersChannel(new Channel("/whispers", Channel::TwitchWhispers))
|
||||
@@ -233,6 +230,4 @@ void TwitchServer::onMessageSendRequested(TwitchChannel *channel, const QString
|
||||
sent = true;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <queue>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
class TwitchServer final : public irc::AbstractIrcServer
|
||||
{
|
||||
@@ -54,6 +52,4 @@ private:
|
||||
void onMessageSendRequested(TwitchChannel *channel, const QString &message, bool &sent);
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
#include "util/RapidjsonHelpers.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
TwitchUser TwitchUser::fromJSON(const rapidjson::Value &value)
|
||||
{
|
||||
@@ -29,6 +27,4 @@ TwitchUser TwitchUser::fromJSON(const rapidjson::Value &value)
|
||||
return user;
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
#include <cassert>
|
||||
|
||||
namespace chatterino {
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
struct TwitchUser {
|
||||
QString id;
|
||||
@@ -30,6 +28,4 @@ struct TwitchUser {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user