swift
Loading...
Searching...
No Matches
keyboard.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_INPUT_KEYBOARD_H
7#define SWIFT_INPUT_KEYBOARD_H
8
9#include <memory>
10
11#include <QObject>
12
16
17namespace swift::input
18{
23 {
25
26 public:
28 IKeyboard(QObject *parent = nullptr);
29
31 ~IKeyboard() override = default;
32
34 static std::unique_ptr<IKeyboard> create(QObject *parent = nullptr);
35
36 signals:
39
40 protected:
42 virtual bool init() = 0;
43 };
44} // namespace swift::input
45
46#endif // SWIFT_INPUT_KEYBOARD_H
IKeyboard(QObject *parent=nullptr)
Constructor.
Definition keyboard.cpp:18
virtual bool init()=0
Initializes the platform keyboard device.
void keyCombinationChanged(const swift::misc::input::CHotkeyCombination &)
Key combination changed.
~IKeyboard()=default
Destructor.
static std::unique_ptr< IKeyboard > create(QObject *parent=nullptr)
Creates a native keyboard handler object.
Definition keyboard.cpp:20
Value object representing hotkey sequence.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
#define SWIFT_INPUT_EXPORT
Export a class or function from the library.