Files
pilotclient/src/blackmisc/hwkeyboardkeylist.cpp
Roland Winklmeier 50b5e80057 refs #313 Remove any occurence of function or virtual keycode from CKeyboardKey(list)
Justification for native virtual key is, because its not cross platform.
2014-08-19 14:41:34 +02:00

40 lines
1.2 KiB
C++

/* Copyright (C) 2013 VATSIM Community / authors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "hwkeyboardkeylist.h"
#include "predicates.h"
namespace BlackMisc
{
namespace Hardware
{
/*
* Constructor
*/
CKeyboardKeyList::CKeyboardKeyList() { }
/*
* Construct from base class object
*/
CKeyboardKeyList::CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass) :
CSequence<CKeyboardKey>(baseClass)
{ }
/*
* Register metadata
*/
void CKeyboardKeyList::registerMetadata()
{
qRegisterMetaType<BlackMisc::CSequence<CKeyboardKey>>();
qDBusRegisterMetaType<BlackMisc::CSequence<CKeyboardKey>>();
qRegisterMetaType<BlackMisc::CCollection<CKeyboardKey>>();
qDBusRegisterMetaType<BlackMisc::CCollection<CKeyboardKey>>();
qRegisterMetaType<CKeyboardKeyList>();
qDBusRegisterMetaType<CKeyboardKeyList>();
}
} // namespace
} // namespace