1 /*
2     This file is part of the Okteta Gui library, made within the KDE community.
3 
4     SPDX-FileCopyrightText: 2004, 2008 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef OKTETA_ABSTRACTCONTROLLER_HPP
10 #define OKTETA_ABSTRACTCONTROLLER_HPP
11 
12 class QKeyEvent;
13 
14 namespace Okteta {
15 
16 class AbstractController
17 {
18 protected:
19     explicit AbstractController(AbstractController* parent);
20 
21 public:
22     AbstractController() = delete;
23     virtual ~AbstractController();
24 
25 public: // API to be implemented
26     virtual bool handleKeyPress(QKeyEvent* keyEvent);
27 
28 protected:
29     AbstractController* mParent;
30 };
31 
32 }
33 
34 #endif
35