1 | /* |
2 | * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> |
3 | * |
4 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
5 | */ |
6 | |
7 | #ifndef MEDIATRANSPORTTEST_H |
8 | #define MEDIATRANSPORTTEST_H |
9 | |
10 | #include <QList> |
11 | #include <QObject> |
12 | |
13 | #include "bluezdevice1_tst.h" |
14 | #include "bluezmediatransport1_tst.h" |
15 | #include "dbusproperties_tst.h" |
16 | |
17 | #include "device.h" |
18 | #include "manager.h" |
19 | #include "mediatransport.h" |
20 | |
21 | class MediaTransportTest : public QObject |
22 | { |
23 | Q_OBJECT |
24 | |
25 | public: |
26 | explicit MediaTransportTest(); |
27 | |
28 | private Q_SLOTS: |
29 | void initTestCase(); |
30 | void cleanupTestCase(); |
31 | |
32 | void connectTest(); |
33 | void disconnectTest(); |
34 | void connectProfileTest(); |
35 | |
36 | void getPropertiesTest(); |
37 | |
38 | void disconnectProfileTest(); |
39 | |
40 | private: |
41 | struct MediaTransportUnit { |
42 | BluezQt::DevicePtr device; |
43 | org::bluez::MediaTransport1 *dbusMediaTransport; |
44 | org::freedesktop::DBus::Properties *dbusProperties; |
45 | }; |
46 | |
47 | BluezQt::Manager *m_manager; |
48 | QList<MediaTransportUnit> m_units; |
49 | }; |
50 | |
51 | #endif |
52 | |