diff options
author | Antti Hölttä <AHoelttae@luxoft.com> | 2018-07-23 14:53:11 +0200 |
---|---|---|
committer | Antti Hölttä <AHoelttae@luxoft.com> | 2019-03-18 16:29:30 +0100 |
commit | ffd151ecf3971fd8601d8b1d4e2f04fb5793e364 (patch) | |
tree | cd3b947f04781d59bc61306dd34ef15f8c3a24fd /plugin/cursornavigationalgorithm.h |
Initial commit, demoable poc
Sort of working with 4 dir navigation, check demoapp
Diffstat (limited to 'plugin/cursornavigationalgorithm.h')
-rw-r--r-- | plugin/cursornavigationalgorithm.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugin/cursornavigationalgorithm.h b/plugin/cursornavigationalgorithm.h new file mode 100644 index 0000000..02f247a --- /dev/null +++ b/plugin/cursornavigationalgorithm.h @@ -0,0 +1,26 @@ +#ifndef CURSORNAVIGATIONALGORITHM_H +#define CURSORNAVIGATIONALGORITHM_H + +#include <QList> +#include "inputtypes.h" + +class ItemRegister; +class QQuickItem; + +class CursorNavigationAlgorithm +{ +public: + CursorNavigationAlgorithm(ItemRegister *itemRegister); + + virtual ~CursorNavigationAlgorithm(); + + virtual QQuickItem* getNextCandidate(const QList<QQuickItem*> &candidates, + const QQuickItem *currentItem, + const CursorNavigationCommand& cmd) = 0; + +private: + ItemRegister *m_itemRegister; + +}; + +#endif // CURSORNAVIGATIONALGORITHM_H |