mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Summary: This commits removes todos which are done or obsolete. Reviewers: kbasan, msutcliffe Reviewed By: kbasan Differential Revision: https://dev.swift-project.org/D6
56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKINPUT_KEYBOARD_H
|
|
#define BLACKINPUT_KEYBOARD_H
|
|
|
|
#include "blackinputexport.h"
|
|
#include "blackmisc/input/keyboardkeylist.h"
|
|
#include "blackmisc/input/hotkeycombination.h"
|
|
#include <QObject>
|
|
#include <memory>
|
|
|
|
namespace BlackInput
|
|
{
|
|
/*!
|
|
* Abstract interface for native keyboard handling.
|
|
*/
|
|
class BLACKINPUT_EXPORT IKeyboard : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
//! Constructor
|
|
IKeyboard(QObject *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~IKeyboard() {}
|
|
|
|
//! Creates a native keyboard handler object
|
|
static std::unique_ptr<IKeyboard> create(QObject *parent = nullptr);
|
|
|
|
signals:
|
|
//! Key combination changed
|
|
void keyCombinationChanged(const BlackMisc::Input::CHotkeyCombination &);
|
|
|
|
protected:
|
|
|
|
/*!
|
|
* Initializes the platform keyboard device
|
|
*/
|
|
virtual bool init() = 0;
|
|
|
|
private:
|
|
static IKeyboard *m_instance;
|
|
};
|
|
}
|
|
|
|
#endif // guard
|