kakoune/src/client.hh

34 lines
686 B
C++
Raw Normal View History

2012-06-28 14:11:43 +02:00
#ifndef client_hh_INCLUDED
#define client_hh_INCLUDED
#include "keys.hh"
#include "completion.hh"
2012-08-15 22:36:45 +02:00
#include "utils.hh"
namespace Kakoune
{
class Editor;
class Window;
class String;
class Context;
2012-08-15 22:36:45 +02:00
class Client : public SafeCountable
{
public:
2012-06-28 14:11:43 +02:00
virtual ~Client() {}
virtual void draw_window(Window& window) = 0;
virtual void print_status(const String& status) = 0;
2012-08-15 22:36:45 +02:00
virtual String prompt(const String& prompt, const Context& context,
Completer completer = complete_nothing) = 0;
virtual Key get_key() = 0;
virtual int menu(const memoryview<String>& choices) = 0;
};
struct prompt_aborted {};
}
2012-06-28 14:11:43 +02:00
#endif // client_hh_INCLUDED