File indexing completed on 2024-04-14 14:17:18

0001 /*
0002  * SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef INPUTTEST_H
0008 #define INPUTTEST_H
0009 
0010 #include <QObject>
0011 
0012 #include "bluezinput1_tst.h"
0013 
0014 #include "device.h"
0015 #include "input.h"
0016 #include "manager.h"
0017 
0018 class InputTest : public QObject
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit InputTest();
0024 
0025 private Q_SLOTS:
0026     void initTestCase();
0027     void cleanupTestCase();
0028 
0029     void getPropertiesTest();
0030 
0031 private:
0032     QString reconnectModeString(const BluezQt::InputPtr &input) const;
0033 
0034     struct InputUnit {
0035         BluezQt::DevicePtr device;
0036         org::bluez::Input1 *dbusInput;
0037     };
0038 
0039     BluezQt::Manager *m_manager;
0040     QList<InputUnit> m_units;
0041 };
0042 
0043 #endif // INPUTTEST_H