aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/cursornavigationalgorithm.h
blob: 02f247a9c0b7bf0927ad6330349f19ec78ca6959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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