mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
refs #317 IKeyboard implementation fixes
- private constructor - deleted public copy constructor - deleted public assignment operator
This commit is contained in:
@@ -24,8 +24,15 @@ namespace BlackInput
|
|||||||
class CKeyboardLinux : public IKeyboard
|
class CKeyboardLinux : public IKeyboard
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
//! \brief Copy Constructor
|
||||||
|
CKeyboardLinux(CKeyboardLinux const&) = delete;
|
||||||
|
|
||||||
|
//! \brief Assignment operator
|
||||||
|
void operator=(CKeyboardLinux const&) = delete;
|
||||||
|
|
||||||
//! \brief Destructor
|
//! \brief Destructor
|
||||||
virtual ~CKeyboardLinux();
|
virtual ~CKeyboardLinux();
|
||||||
|
|
||||||
@@ -40,20 +47,9 @@ namespace BlackInput
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
friend class IKeyboard;
|
|
||||||
|
|
||||||
//! \brief Constructor
|
|
||||||
CKeyboardLinux(QObject *parent = nullptr);
|
|
||||||
|
|
||||||
//! \brief Copy Constructor
|
|
||||||
CKeyboardLinux(CKeyboardLinux const&);
|
|
||||||
|
|
||||||
//! \copydoc IKeyboard::init()
|
//! \copydoc IKeyboard::init()
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
|
|
||||||
//! \brief Assignment operator
|
|
||||||
void operator=(CKeyboardLinux const&);
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
//! Changed directory to linux devices
|
//! Changed directory to linux devices
|
||||||
@@ -64,6 +60,11 @@ namespace BlackInput
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
friend class IKeyboard;
|
||||||
|
|
||||||
|
//! \brief Constructor
|
||||||
|
CKeyboardLinux(QObject *parent = nullptr);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Constructor
|
* \brief Constructor
|
||||||
* \param keySet
|
* \param keySet
|
||||||
|
|||||||
@@ -21,8 +21,15 @@ namespace BlackInput
|
|||||||
class CKeyboardMac : public IKeyboard
|
class CKeyboardMac : public IKeyboard
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
//! \brief Copy Constructor
|
||||||
|
CKeyboardMac(CKeyboardMac const&) = delete;
|
||||||
|
|
||||||
|
//! \brief Assignment operator
|
||||||
|
void operator=(CKeyboardMac const&) = delete;
|
||||||
|
|
||||||
//! \brief Destructor
|
//! \brief Destructor
|
||||||
virtual ~CKeyboardMac();
|
virtual ~CKeyboardMac();
|
||||||
|
|
||||||
@@ -37,22 +44,16 @@ namespace BlackInput
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
friend class IKeyboard;
|
|
||||||
|
|
||||||
//! \brief Constructor
|
|
||||||
CKeyboardMac(QObject *parent = nullptr);
|
|
||||||
|
|
||||||
//! \brief Copy Constructor
|
|
||||||
CKeyboardMac(CKeyboardMac const&);
|
|
||||||
|
|
||||||
//! \copydoc IKeyboard::init()
|
//! \copydoc IKeyboard::init()
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
|
|
||||||
//! \brief Assignment operator
|
|
||||||
void operator=(CKeyboardMac const&);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
friend class IKeyboard;
|
||||||
|
|
||||||
|
//! Constructor
|
||||||
|
CKeyboardMac(QObject *parent = nullptr);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Constructor
|
* \brief Constructor
|
||||||
* \param keySet
|
* \param keySet
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ namespace BlackInput
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
//! \brief Copy Constructor
|
||||||
|
CKeyboardWindows(CKeyboardWindows const&) = delete;
|
||||||
|
|
||||||
|
//! \brief Assignment operator
|
||||||
|
void operator=(CKeyboardWindows const&) = delete;
|
||||||
|
|
||||||
//! \brief Destructor
|
//! \brief Destructor
|
||||||
virtual ~CKeyboardWindows();
|
virtual ~CKeyboardWindows();
|
||||||
|
|
||||||
@@ -48,22 +54,16 @@ namespace BlackInput
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
//! \copydoc IKeyboard::init()
|
||||||
|
virtual bool init() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
friend class IKeyboard;
|
friend class IKeyboard;
|
||||||
|
|
||||||
//! \brief Constructor
|
//! \brief Constructor
|
||||||
CKeyboardWindows(QObject *parent = nullptr);
|
CKeyboardWindows(QObject *parent = nullptr);
|
||||||
|
|
||||||
//! \brief Copy Constructor
|
|
||||||
CKeyboardWindows(CKeyboardWindows const&);
|
|
||||||
|
|
||||||
//! \copydoc IKeyboard::init()
|
|
||||||
virtual bool init() override;
|
|
||||||
|
|
||||||
//! \brief Assignment operator
|
|
||||||
void operator=(CKeyboardWindows const&);
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Constructor
|
* \brief Constructor
|
||||||
* \param keySet
|
* \param keySet
|
||||||
|
|||||||
Reference in New Issue
Block a user