polybar-dwm/include/modules/meta/input_handler.hpp

21 lines
315 B
C++
Raw Normal View History

#pragma once
#include "common.hpp"
POLYBAR_NS
namespace modules {
2016-12-23 19:43:52 +00:00
class input_handler {
public:
virtual ~input_handler() {}
/**
* Handle command
*
* \returns true if the command is supported and false otherwise
*/
2016-12-23 19:43:52 +00:00
virtual bool input(string&& cmd) = 0;
};
}
POLYBAR_NS_END