Changeset View
Changeset View
Standalone View
Standalone View
autotests/fakebluez/fakebluez.cpp
Context not available. | |||||
24 | #include "agentmanager.h" | 24 | #include "agentmanager.h" | ||
---|---|---|---|---|---|
25 | #include "profilemanager.h" | 25 | #include "profilemanager.h" | ||
26 | #include "devicemanager.h" | 26 | #include "devicemanager.h" | ||
27 | #include "media.h" | ||||
27 | #include "obexagentmanager.h" | 28 | #include "obexagentmanager.h" | ||
28 | #include "obexclient.h" | 29 | #include "obexclient.h" | ||
29 | 30 | | |||
Context not available. | |||||
50 | , m_agentManager(nullptr) | 51 | , m_agentManager(nullptr) | ||
51 | , m_profileManager(nullptr) | 52 | , m_profileManager(nullptr) | ||
52 | , m_deviceManager(nullptr) | 53 | , m_deviceManager(nullptr) | ||
54 | , m_media(nullptr) | ||||
53 | , m_obexObject(nullptr) | 55 | , m_obexObject(nullptr) | ||
54 | , m_obexAgentManager(nullptr) | 56 | , m_obexAgentManager(nullptr) | ||
55 | , m_obexClient(nullptr) | 57 | , m_obexClient(nullptr) | ||
Context not available. | |||||
101 | m_agentManager->runAction(m_actionName, m_actionProperties); | 103 | m_agentManager->runAction(m_actionName, m_actionProperties); | ||
102 | } else if (m_actionObject == QLatin1String("devicemanager")) { | 104 | } else if (m_actionObject == QLatin1String("devicemanager")) { | ||
103 | m_deviceManager->runAction(m_actionName, m_actionProperties); | 105 | m_deviceManager->runAction(m_actionName, m_actionProperties); | ||
106 | } else if (m_actionObject == QLatin1String("media")) { | ||||
107 | m_media->runAction(m_actionName, m_actionProperties); | ||||
104 | } | 108 | } | ||
105 | 109 | | |||
106 | QTimer::singleShot(0, m_testInterface, SLOT(emitActionFinished())); | 110 | QTimer::singleShot(0, m_testInterface, SLOT(emitActionFinished())); | ||
Context not available. | |||||
135 | m_deviceManager = new DeviceManager(m_objectManager); | 139 | m_deviceManager = new DeviceManager(m_objectManager); | ||
136 | } | 140 | } | ||
137 | 141 | | |||
142 | void FakeBluez::createMedia() | ||||
143 | { | ||||
144 | m_media = new Media(m_objectManager); | ||||
145 | m_objectManager->addObject(m_media); | ||||
146 | } | ||||
147 | | ||||
138 | void FakeBluez::createObexObjectManager() | 148 | void FakeBluez::createObexObjectManager() | ||
139 | { | 149 | { | ||
140 | createObjectManager(); | 150 | createObjectManager(); | ||
Context not available. | |||||
171 | createObjectManager(); | 181 | createObjectManager(); | ||
172 | createAgentManager(); | 182 | createAgentManager(); | ||
173 | createProfileManager(); | 183 | createProfileManager(); | ||
184 | createMedia(); | ||||
174 | } | 185 | } | ||
175 | 186 | | |||
176 | void FakeBluez::runBluezStandardTest() | 187 | void FakeBluez::runBluezStandardTest() | ||
Context not available. | |||||
180 | createDeviceManager(); | 191 | createDeviceManager(); | ||
181 | createAgentManager(); | 192 | createAgentManager(); | ||
182 | createProfileManager(); | 193 | createProfileManager(); | ||
194 | createMedia(); | ||||
183 | } | 195 | } | ||
184 | 196 | | |||
185 | void FakeBluez::runObexNotExportingInterfacesTest() | 197 | void FakeBluez::runObexNotExportingInterfacesTest() | ||
Context not available. |