aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/cursornavigationalgorithm.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cursornavigationalgorithm.h')
-rw-r--r--plugin/cursornavigationalgorithm.h26
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