summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-10-17 13:14:03 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-10-17 13:14:03 +0200
commit4aa3a3610279082969e4c2eb0196ddddd025557a (patch)
tree55efe915f50eb0fbc3b522c6aeace29e98d3b501 /src/client.hh
parent878a377673718549f817a83cc42470653e2e9005 (diff)
rename Client to InputHandler
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/client.hh b/src/client.hh
deleted file mode 100644
index 9601feb5..00000000
--- a/src/client.hh
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef client_hh_INCLUDED
-#define client_hh_INCLUDED
-
-#include "keys.hh"
-#include "completion.hh"
-#include "utils.hh"
-#include "string.hh"
-
-namespace Kakoune
-{
-
-class Editor;
-class Context;
-
-using MenuCallback = std::function<void (int, Context&)>;
-using PromptCallback = std::function<void (const String&, Context&)>;
-using KeyCallback = std::function<void (const Key&, Context&)>;
-
-class ClientMode;
-enum class InsertMode : unsigned;
-
-class Client : public SafeCountable
-{
-public:
- Client();
- ~Client();
-
- void insert(Context& context, InsertMode mode);
- void repeat_last_insert(Context& context);
-
- void prompt(const String& prompt, Completer completer,
- PromptCallback callback, Context& context);
-
- void menu(const memoryview<String>& choices,
- MenuCallback callback, Context& context);
-
- void on_next_key(KeyCallback callback);
-
- void handle_next_input(Context& context);
-
-private:
- friend class ClientMode;
- std::unique_ptr<ClientMode> m_mode;
-};
-
-struct prompt_aborted {};
-
-}
-
-#endif // client_hh_INCLUDED