mumsi/MumbleChannelJoiner.hpp
2017-05-27 15:11:11 +02:00

33 lines
780 B
C++

#pragma once
#include <boost/noncopyable.hpp>
#include <log4cpp/Category.hh>
#include <vector>
#include <string>
#include <boost/regex.hpp>
#include "MumbleCommunicator.hpp"
namespace mumble {
class MumbleChannelJoiner : boost::noncopyable {
struct ChannelEntry {
int id;
std::string name;
};
public:
MumbleChannelJoiner(std::string channelNameRegex);
void checkChannel(std::string channel_name, int channel_id);
void maybeJoinChannel(mumble::MumbleCommunicator *mc);
void findJoinChannel(mumble::MumbleCommunicator *mc);
private:
log4cpp::Category &logger;
boost::regex channelNameRegex;
int channel_id;
static std::vector<ChannelEntry> channels;
};
}