2018-02-05 15:11:50 +01:00
|
|
|
//#pragma once
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
//#include "channel.hpp"
|
|
|
|
//#include "channeldata.hpp"
|
|
|
|
//#include "providers/twitch/twitchchannel.hpp"
|
2017-06-15 23:13:01 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
//#include <map>
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// namespace chatterino {
|
|
|
|
// namespace singletons {
|
|
|
|
// class IrcManager;
|
2017-06-13 21:13:58 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// class ChannelManager
|
|
|
|
//{
|
|
|
|
// explicit ChannelManager();
|
2017-12-17 17:49:32 +01:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// public:
|
|
|
|
// static ChannelManager &getInstance();
|
2017-09-17 04:36:48 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// const std::vector<ChannelPtr> getItems();
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// const std::string &getUserID(const std::string &username);
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// void doOnAll(std::function<void(ChannelPtr)> func);
|
2017-06-15 23:13:01 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// // Special channels
|
|
|
|
// const ChannelPtr whispersChannel;
|
|
|
|
// const ChannelPtr mentionsChannel;
|
|
|
|
// const ChannelPtr emptyChannel;
|
2017-12-16 18:11:36 +01:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// private:
|
|
|
|
// std::map<std::string, std::string> usernameToID;
|
|
|
|
// std::map<std::string, ChannelData> channelDatas;
|
2017-04-12 17:46:44 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// QMutex channelsMutex;
|
|
|
|
// QMap<QString, std::tuple<std::shared_ptr<TwitchChannel>, int>> twitchChannels;
|
2017-06-15 23:13:01 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// pajlada::Signals::Signal<const QString &> ircJoin;
|
|
|
|
// pajlada::Signals::Signal<const QString &> ircPart;
|
2017-12-31 00:50:07 +01:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
// friend class singletons::IrcManager;
|
|
|
|
//};
|
|
|
|
//} // namespace singletons
|
|
|
|
//} // namespace chatterino
|