mirror-chatterino2/src/singletons/channelmanager.hpp

47 lines
1.2 KiB
C++
Raw Normal View History

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;
2018-02-05 15:11:50 +01:00
// class ChannelManager
//{
// explicit ChannelManager();
2018-02-05 15:11:50 +01:00
// public:
// static ChannelManager &getInstance();
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;
// void doOnAll(std::function<void(ChannelPtr)> func);
// void doOnAllNormalChannels(std::function<void(ChannelPtr)> func);
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