MumbleChannelJoiner.hpp 556 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <boost/noncopyable.hpp>
  3. #include <log4cpp/Category.hh>
  4. #include <string>
  5. #include <boost/regex.hpp>
  6. #include "MumbleCommunicator.hpp"
  7. namespace mumble {
  8. class MumbleChannelJoiner : boost::noncopyable {
  9. public:
  10. MumbleChannelJoiner(std::string channelNameRegex);
  11. void checkChannel(std::string channel_name, int channel_id);
  12. void maybeJoinChannel(mumble::MumbleCommunicator *mc);
  13. private:
  14. log4cpp::Category &logger;
  15. boost::regex channelNameRegex;
  16. int channel_id;
  17. };
  18. }