From 3d976959ac21e14b3d729ee0c81cbebd3e520612 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 5 Oct 2019 20:14:40 -0500 Subject: More API drafting --- hscript/keymanager.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hscript/keymanager.hh') diff --git a/hscript/keymanager.hh b/hscript/keymanager.hh index b3cd109..347f5c2 100644 --- a/hscript/keymanager.hh +++ b/hscript/keymanager.hh @@ -12,6 +12,7 @@ #include #include +#include #include "key.hh" namespace Horizon { @@ -20,6 +21,11 @@ namespace Keys { /*! Manages the Key classes. */ class KeyManager { private: + /*! Internal data class used by the KeyManager. */ + struct ManagerPrivate; + /*! Internal data. */ + const std::unique_ptr internal; + /*! Create the key manager */ KeyManager(); public: @@ -27,7 +33,7 @@ public: static const KeyManager *getKeyManager(); /*! Add a new Key to the key manager. */ - void addKey(std::string name, bool required, int max, Key*(*key_create_fn)(void)); + void addKey(key_desc_t description); /*! Determines if a Key is recognised. */ void hasKey(std::string name); -- cgit v1.2.3-70-g09d2