/* 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 &baseClass) : CSequence(baseClass) { } /* * Register metadata */ void CKeyboardKeyList::registerMetadata() { qRegisterMetaType>(); qDBusRegisterMetaType>(); qRegisterMetaType>(); qDBusRegisterMetaType>(); qRegisterMetaType(); qDBusRegisterMetaType(); } void CKeyboardKeyList::initAsHotkeyList() { this->clear(); this->push_back(CKeyboardKey(CKeyboardKey::HotkeyPtt)); this->push_back(CKeyboardKey(CKeyboardKey::HotkeyOpacity50)); this->push_back(CKeyboardKey(CKeyboardKey::HotkeyOpacity100)); this->push_back(CKeyboardKey(CKeyboardKey::HotkeyToggleCom1)); this->push_back(CKeyboardKey(CKeyboardKey::HotkeyToggleCom2)); } } // namespace } // namespace