2016-12-21 07:38:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
namespace modules {
|
2016-12-23 19:43:52 +00:00
|
|
|
class input_handler {
|
2016-12-21 07:38:44 +00:00
|
|
|
public:
|
|
|
|
virtual ~input_handler() {}
|
2020-05-30 22:09:44 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
2016-12-21 07:38:44 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
POLYBAR_NS_END
|