From d5de12f7cea071555de4058ebf62b160a86a36af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wicik?= <60609724+rwicik@users.noreply.github.com> Date: Wed, 28 Oct 2020 15:19:24 +0100 Subject: [PATCH] [EGD-3852] clean include in service (#928) --- .../service-antenna/ServiceAntenna.cpp | 33 ++--- .../service-antenna/ServiceAntenna.hpp | 23 +++- .../service-antenna/api/AntennaServiceAPI.cpp | 17 ++- .../service-antenna/api/AntennaServiceAPI.hpp | 7 +- .../service-appmgr/ApplicationManager.cpp | 38 +++--- .../service-appmgr/ApplicationManager.hpp | 29 ++++- module-services/service-appmgr/Controller.cpp | 6 +- module-services/service-appmgr/Controller.hpp | 12 +- .../service-audio/api/AudioServiceAPI.cpp | 16 ++- .../service-audio/api/AudioServiceAPI.hpp | 17 ++- .../service-bluetooth/ServiceBluetooth.cpp | 21 +-- .../service-bluetooth/ServiceBluetooth.hpp | 9 +- .../service-cellular/CellularCall.cpp | 22 ++-- .../service-cellular/CellularCall.hpp | 17 ++- .../service-cellular/ServiceCellular.cpp | 120 ++++++++++-------- .../service-cellular/ServiceCellular.hpp | 40 ++++-- .../service-cellular/SignalStrength.hpp | 3 +- .../api/CellularServiceAPI.cpp | 26 ++-- .../api/CellularServiceAPI.hpp | 15 ++- module-services/service-db/ServiceDB.cpp | 70 +++++++--- module-services/service-db/ServiceDB.hpp | 34 ++++- .../service-db/agents/DatabaseAgent.cpp | 5 + .../service-db/agents/DatabaseAgent.hpp | 10 +- .../service-db/agents/settings/Settings.cpp | 13 +- .../service-db/agents/settings/Settings.hpp | 16 ++- .../agents/settings/SettingsAgent.cpp | 15 ++- .../agents/settings/SettingsAgent.hpp | 15 ++- .../service-db/api/DBServiceAPI.cpp | 62 +++++---- .../service-db/api/DBServiceAPI.hpp | 39 ++++-- .../api/DBServiceAPI_GetByQuery.cpp | 22 +++- .../service-db/messages/DBAlarmMessage.cpp | 5 + .../service-db/messages/DBAlarmMessage.hpp | 10 +- .../service-db/messages/DBCalllogMessage.cpp | 5 + .../service-db/messages/DBCalllogMessage.hpp | 10 +- .../service-db/messages/DBContactMessage.cpp | 10 +- .../service-db/messages/DBContactMessage.hpp | 19 +-- .../messages/DBCountryCodeMessage.cpp | 2 + .../messages/DBCountryCodeMessage.hpp | 6 +- .../service-db/messages/DBNotesMessage.cpp | 5 + .../service-db/messages/DBNotesMessage.hpp | 9 +- .../messages/DBNotificationMessage.cpp | 4 + .../messages/DBNotificationMessage.hpp | 9 +- .../service-db/messages/DBSMSMessage.cpp | 5 + .../service-db/messages/DBSMSMessage.hpp | 9 +- .../messages/DBSMSTemplateMessage.cpp | 5 + .../messages/DBSMSTemplateMessage.hpp | 9 +- .../service-db/messages/DBServiceMessage.cpp | 2 + .../service-db/messages/DBServiceMessage.hpp | 6 +- .../service-db/messages/DBSettingsMessage.cpp | 5 + .../service-db/messages/DBSettingsMessage.hpp | 10 +- .../service-db/messages/DBThreadMessage.cpp | 5 + .../service-db/messages/DBThreadMessage.hpp | 10 +- .../service-db/messages/QueryMessage.cpp | 10 +- .../service-db/test/test-service-db-api.cpp | 9 +- .../test/test-service-db-settings-api.cpp | 18 ++- .../test-service-db-settings-messages.cpp | 21 +-- .../service-desktop/ServiceDesktop.cpp | 26 +++- .../service-desktop/ServiceDesktop.hpp | 9 ++ .../service-desktop/WorkerDesktop.cpp | 11 +- .../service-desktop/WorkerDesktop.hpp | 13 +- .../endpoints/backup/BackupEndpoint.cpp | 16 ++- .../endpoints/backup/BackupEndpoint.hpp | 16 ++- .../endpoints/backup/BackupRestore.cpp | 24 +++- .../endpoints/backup/BackupRestore.hpp | 5 + .../endpoints/calllog/CalllogEndpoint.cpp | 2 + .../endpoints/calllog/CalllogEndpoint.hpp | 17 ++- .../endpoints/calllog/CalllogHelper.cpp | 21 ++- .../endpoints/calllog/CalllogHelper.hpp | 19 ++- .../endpoints/contacts/ContactHelper.cpp | 35 +++-- .../endpoints/contacts/ContactHelper.hpp | 19 ++- .../endpoints/contacts/ContactsEndpoint.cpp | 8 +- .../endpoints/contacts/ContactsEndpoint.hpp | 17 ++- .../developerMode/DeveloperModeEndpoint.cpp | 2 + .../developerMode/DeveloperModeEndpoint.hpp | 17 ++- .../developerMode/DeveloperModeHelper.cpp | 7 +- .../developerMode/DeveloperModeHelper.hpp | 10 +- .../deviceInfo/DeviceInfoEndpoint.cpp | 17 ++- .../deviceInfo/DeviceInfoEndpoint.hpp | 14 +- .../endpoints/factoryReset/FactoryReset.cpp | 18 ++- .../endpoints/factoryReset/FactoryReset.hpp | 7 + .../factoryReset/FactoryResetEndpoint.cpp | 12 +- .../factoryReset/FactoryResetEndpoint.hpp | 14 +- .../endpoints/messages/MessageHelper.cpp | 60 +++++---- .../endpoints/messages/MessageHelper.hpp | 21 ++- .../endpoints/messages/MessagesEndpoint.cpp | 3 +- .../endpoints/messages/MessagesEndpoint.hpp | 17 ++- .../endpoints/restore/RestoreEndpoint.cpp | 14 +- .../endpoints/restore/RestoreEndpoint.hpp | 15 ++- .../endpoints/update/UpdateEndpoint.cpp | 15 ++- .../endpoints/update/UpdateEndpoint.hpp | 15 ++- .../endpoints/update/UpdateMuditaOS.cpp | 20 ++- .../endpoints/update/UpdateMuditaOS.hpp | 12 +- .../service-desktop/parser/MessageHandler.cpp | 20 ++- .../service-desktop/parser/MessageHandler.hpp | 15 ++- .../service-desktop/parser/ParserFSM.cpp | 17 ++- .../service-desktop/parser/ParserFSM.hpp | 7 + .../service-desktop/parser/ParserUtils.cpp | 2 + .../service-desktop/parser/ParserUtils.hpp | 8 +- .../service-desktop/tests/unittest.cpp | 39 +++--- module-services/service-eink/ServiceEink.cpp | 28 ++-- module-services/service-eink/ServiceEink.hpp | 14 +- .../board/linux/renderer/src/RArea.cpp | 17 ++- .../board/linux/renderer/src/RArea.hpp | 8 +- .../board/linux/renderer/src/RWindow.cpp | 14 +- .../board/linux/renderer/src/RWindow.hpp | 10 +- .../board/linux/renderer/src/gui_renderer.cpp | 28 ++-- .../service-evtmgr/EventManager.cpp | 60 ++++----- .../service-evtmgr/EventManager.hpp | 11 +- .../service-evtmgr/WorkerEvent.cpp | 66 +++++----- .../service-evtmgr/WorkerEvent.hpp | 17 ++- .../alarm/EventManagerAlarm.cpp | 26 ++-- .../api/EventManagerServiceAPI.cpp | 20 ++- .../api/EventManagerServiceAPI.hpp | 8 +- .../service-evtmgr/harness/Parser.cpp | 25 ++-- .../service-evtmgr/harness/Parser.hpp | 10 +- .../harness/actions/CellularCMD.cpp | 15 ++- .../harness/actions/CellularCMD.hpp | 6 + .../harness/events/AtResponse.cpp | 6 +- .../harness/events/FocusApp.cpp | 5 +- .../harness/events/FocusApp.hpp | 4 +- .../service-evtmgr/harness/events/GPIO.cpp | 13 +- .../service-evtmgr/harness/events/GPIO.hpp | 6 +- .../harness/events/KeyPress.cpp | 10 +- .../harness/events/KeyPress.hpp | 5 +- .../harness/events/SysStart.cpp | 4 +- .../harness/events/SysStart.hpp | 4 +- .../service-evtmgr/messages/Message.cpp | 4 +- module-services/service-fota/ServiceFota.cpp | 51 ++++---- module-services/service-fota/ServiceFota.hpp | 22 +++- .../service-fota/api/FotaServiceAPI.cpp | 17 +-- .../service-fota/api/FotaServiceAPI.hpp | 5 +- module-services/service-gui/ServiceGUI.cpp | 51 ++++---- module-services/service-gui/ServiceGUI.hpp | 22 +++- module-services/service-gui/WorkerGUI.cpp | 26 ++-- module-services/service-gui/WorkerGUI.hpp | 6 +- .../service-gui/messages/DrawMessage.cpp | 6 +- .../service-gui/messages/DrawMessage.hpp | 13 +- module-services/service-lwip/ServiceLwIP.cpp | 25 ++-- module-services/service-lwip/ServiceLwIP.hpp | 8 +- module-services/service-time/ServiceTime.cpp | 18 ++- module-services/service-time/ServiceTime.hpp | 16 ++- .../timeEvents/CalendarTimeEvents.cpp | 30 +++-- .../timeEvents/CalendarTimeEvents.hpp | 17 ++- .../service-time/timeEvents/TimeEvents.cpp | 10 ++ .../service-time/timeEvents/TimeEvents.hpp | 17 ++- 145 files changed, 1738 insertions(+), 732 deletions(-) diff --git a/module-services/service-antenna/ServiceAntenna.cpp b/module-services/service-antenna/ServiceAntenna.cpp index 56f9f1636439965b76d6aab37110b855b6733ebb..43e5cd304da20bfd4750861232265950c70c1858 100644 --- a/module-services/service-antenna/ServiceAntenna.cpp +++ b/module-services/service-antenna/ServiceAntenna.cpp @@ -2,21 +2,24 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "ServiceAntenna.hpp" -#include "Service/Timer.hpp" -#include "api/AntennaServiceAPI.hpp" -#include "log/log.hpp" -#include "messages/AntennaMessage.hpp" -#include "service-appmgr/ApplicationManager.hpp" -#include -#include -#include -#include - -#include "service-cellular/api/CellularServiceAPI.hpp" -#include "time/time_conversion.hpp" -#include - -#include + +#include // for parseCSQ, isRegistered, parseCREG, parseNetworkFrequency, parseQNWINFO +#include // for State +#include // for CellularNotificationMessage, StateChange, CellularCallMessage, CellularNotificationMessage::Type, CellularNotificationMessage::Type::CallAborted +#include // for Ticks +#include // for make_shared, unique_ptr, allocator, make_unique +#include // for max +#include // for string +#include // for vector + +#include "Service/Timer.hpp" // for Timer +#include "api/AntennaServiceAPI.hpp" // for LockRequest +#include "log/log.hpp" // for LOG_INFO, LOG_WARN, LOG_FATAL +#include "messages/AntennaMessage.hpp" // for AntennaLockRequestResponse, AntennaLockRequestMessage +#include "service-cellular/api/CellularServiceAPI.hpp" // for GetCSQ, GetAntenna, SelectAntenna, GetCREG, GetQNWINFO +#include "MessageType.hpp" // for MessageType, MessageType::AntennaCSQChange, MessageType::AntennaChanged, MessageType::AntennaGetLockState, MessageType::AntennaLockService, MessageType::CellularCall, MessageType::CellularNotification, MessageType::CellularStateRequest, MessageType::StateChange +#include "projdefs.h" // for pdMS_TO_TICKS +#include "service-cellular/State.hpp" // for State, State::ST, State::ST::Ready const char *ServiceAntenna::serviceName = "ServiceAntenna"; diff --git a/module-services/service-antenna/ServiceAntenna.hpp b/module-services/service-antenna/ServiceAntenna.hpp index bf603a30138b969ceb90ba8704c9f6c95fe60472..b6c4457cf2477550d4d7310b64867d722530791f 100644 --- a/module-services/service-antenna/ServiceAntenna.hpp +++ b/module-services/service-antenna/ServiceAntenna.hpp @@ -3,17 +3,30 @@ #pragma once +#include +#include // for uint32_t #include #include +#include // for unique_ptr -#include "Service/Service.hpp" -#include "Service/Message.hpp" +#include "Service/Service.hpp" // for Service +#include "Service/Message.hpp" // for Message_t, DataMessage (ptr only), ResponseMessage (ptr only) #include "Service/Worker.hpp" #include "MessageType.hpp" +#include "bsp/cellular/bsp_cellular.hpp" // for antenna +#include "Service/Common.hpp" // for ReturnCodes, ServicePowerMode -#include - -#include "bsp/cellular/bsp_cellular.hpp" +namespace sys +{ + class Timer; +} // namespace sys +namespace utils +{ + namespace state + { + template class State; + } // namespace state +} // namespace utils namespace antenna { diff --git a/module-services/service-antenna/api/AntennaServiceAPI.cpp b/module-services/service-antenna/api/AntennaServiceAPI.cpp index 112e2dc574b8c5253fdd68b80e3c9d402b4e1054..dbb89446ac81094e8835585383c831f971a151ee 100644 --- a/module-services/service-antenna/api/AntennaServiceAPI.cpp +++ b/module-services/service-antenna/api/AntennaServiceAPI.cpp @@ -2,7 +2,22 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "AntennaServiceAPI.hpp" -#include "../messages/AntennaMessage.hpp" + +#include // for make_shared, allocator, shared_ptr, __shared_ptr<>::element_type +#include // for pair + +#include "../messages/AntennaMessage.hpp" // for AntennaLockRequestMessage, AntennaLockRequestResponse +#include "MessageType.hpp" // for MessageType, MessageType::AntennaCSQChange, MessageType::AntennaGetLockState, MessageType::AntennaLockService +#include "Service/Bus.hpp" // for Bus +#include "Service/Common.hpp" // for ReturnCodes, ReturnCodes::Success, BusChannels, BusChannels::AntennaNotifications +#include "Service/Message.hpp" // for DataMessage +#include "service-antenna/ServiceAntenna.hpp" // for ServiceAntenna, ServiceAntenna::serviceName, lockState + +namespace sys +{ + class Service; +} // namespace sys + namespace AntennaServiceAPI { diff --git a/module-services/service-antenna/api/AntennaServiceAPI.hpp b/module-services/service-antenna/api/AntennaServiceAPI.hpp index 4731711cefd5b6e6e97e78582ad9aae1efd49562..c52a89c57af29dbea22cb95dce0ed08b0e7243af 100644 --- a/module-services/service-antenna/api/AntennaServiceAPI.hpp +++ b/module-services/service-antenna/api/AntennaServiceAPI.hpp @@ -6,7 +6,12 @@ #include #include -#include "../ServiceAntenna.hpp" +#include "../ServiceAntenna.hpp" // for lockState + +namespace sys +{ + class Service; +} // namespace sys namespace AntennaServiceAPI { diff --git a/module-services/service-appmgr/ApplicationManager.cpp b/module-services/service-appmgr/ApplicationManager.cpp index e6aad1b4182309d3fc82e8396b467849f2d105c9..b2125a70e940a0ad282453715a8a14598c8d644f 100644 --- a/module-services/service-appmgr/ApplicationManager.cpp +++ b/module-services/service-appmgr/ApplicationManager.cpp @@ -2,24 +2,28 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "service-appmgr/ApplicationManager.hpp" -#include "service-appmgr/Controller.hpp" -#include -#include - -#include "application-call/ApplicationCall.hpp" -#include "application-special-input/ApplicationSpecialInput.hpp" - -#include "Service/Message.hpp" -#include "AppMessage.hpp" - -#include "Service/Timer.hpp" -#include "service-db/api/DBServiceAPI.hpp" -#include "service-evtmgr/EventManager.hpp" -#include "service-eink/ServiceEink.hpp" -#include "service-gui/ServiceGUI.hpp" - -#include "log/log.hpp" +#include // for move +#include // for find_if +#include // for numeric_limits + +#include "service-appmgr/Controller.hpp" // for Controller +#include "application-call/ApplicationCall.hpp" // for name_call +#include "application-special-input/ApplicationSpecialInput.hpp" // for special_input +#include "Service/Message.hpp" // for ResponseMessage, DataMessage (ptr only), Message_t +#include "AppMessage.hpp" // for AppSwitchWindowMessage +#include "Service/Timer.hpp" // for Timer, Timer::Type, Timer::Type::SingleShot, ms +#include "service-db/api/DBServiceAPI.hpp" // for DBServiceAPI +#include "service-evtmgr/EventManager.hpp" // for EventManager +#include "service-eink/ServiceEink.hpp" // for ServiceEink +#include "service-gui/ServiceGUI.hpp" // for ServiceGUI +#include "log/log.hpp" // for LOG_INFO, LOG_ERROR, LOG_WARN, LOG_DEBUG, LOG_FATAL +#include "Common.hpp" // for ShowMode, ShowMode::GUI_SHOW_INIT +#include "Common/Common.hpp" // for SettingsLanguage, SettingsLanguage::ENGLISH, SettingsLanguage::GERMAN, SettingsLanguage::POLISH, SettingsLanguage::SPANISH +#include "Service/Bus.hpp" // for Bus +#include "SystemManager/SystemManager.hpp" // for SystemManager +#include "i18/i18.hpp" // for Lang, Lang::En, Lang::De, Lang::Pl, Lang::Sp, i18, localize +#include "service-appmgr/messages/APMMessage.hpp" // for APMCheckApp, APMSwitch, APMRegister, APMConfirmClose, APMConfirmSwitch, Action, APMAction, APMChangeLanguage, APMSwitchPrevApp, APMDelayedClose, APMClose, APMInitPowerSaveMode, APMPreventBlocking // Auto phone lock disabled for now till the times when it's debugged // #define AUTO_PHONE_LOCK_ENABLED diff --git a/module-services/service-appmgr/ApplicationManager.hpp b/module-services/service-appmgr/ApplicationManager.hpp index d5078e309ef5ed20454c2e86c20af90ec32cb87c..0ae73da55a31109dc08d685427f3b3cae383b19a 100644 --- a/module-services/service-appmgr/ApplicationManager.hpp +++ b/module-services/service-appmgr/ApplicationManager.hpp @@ -3,16 +3,35 @@ #pragma once -#include -#include - -#include "Application.hpp" -#include "ApplicationLauncher.hpp" +#include // for unique_ptr, allocator +#include // for string +#include // for deque +#include // for string_view +#include // for vector + +#include "Application.hpp" // for Application, Application::State +#include "ApplicationLauncher.hpp" // for ApplicationLauncher #include "messages/APMMessage.hpp" +#include "Service/Common.hpp" // for ReturnCodes, ServicePowerMode +#include "Service/Message.hpp" // for Message_t, DataMessage (ptr only), ResponseMessage (ptr only) +#include "Service/Service.hpp" // for Service +#include "Service/Timer.hpp" // for Timer +#include "SettingsRecord.hpp" // for SettingsRecord +#include "SwitchData.hpp" // for SwitchData namespace app { class ApplicationLauncher; + namespace manager + { + class APMAction; + class APMChangeLanguage; + class APMConfirmClose; + class APMConfirmSwitch; + class APMRegister; + class APMSwitch; + class APMSwitchPrevApp; + } // namespace manager } namespace app::manager diff --git a/module-services/service-appmgr/Controller.cpp b/module-services/service-appmgr/Controller.cpp index b7e047777c93c5936e6205bcb7e4167bc80f06f0..f2b692aed5e1f41b6f546ac1d067feb7bd1f7d04 100644 --- a/module-services/service-appmgr/Controller.cpp +++ b/module-services/service-appmgr/Controller.cpp @@ -3,7 +3,11 @@ #include "Controller.hpp" -#include "module-sys/Service/Bus.hpp" +#include // for move + +#include "module-sys/Service/Bus.hpp" // for Bus +#include "Service/Service.hpp" // for Service +#include "service-appmgr/ApplicationManager.hpp" // for ApplicationManager, ApplicationManager::ServiceName, ApplicationHandle, ApplicationHandle::Name namespace app::manager { diff --git a/module-services/service-appmgr/Controller.hpp b/module-services/service-appmgr/Controller.hpp index d400012c5ef13a25d9de6efe6917a6ba0b90cce4..85d48b25fd23e88ecaf94fbcaa22690ac12f90ab 100644 --- a/module-services/service-appmgr/Controller.hpp +++ b/module-services/service-appmgr/Controller.hpp @@ -3,9 +3,19 @@ #pragma once -#include "ApplicationManager.hpp" +#include // for unique_ptr +#include // for string +#include "ApplicationManager.hpp" // for ApplicationHandle, ApplicationHandle::Name #include "module-sys/Service/Service.hpp" +#include "SwitchData.hpp" // for SwitchData +#include "i18/i18.hpp" // for Lang +#include "service-appmgr/messages/APMMessage.hpp" // for APMSwitchPrevApp, Action (ptr only) + +namespace sys +{ + class Service; +} // namespace sys namespace app::manager { diff --git a/module-services/service-audio/api/AudioServiceAPI.cpp b/module-services/service-audio/api/AudioServiceAPI.cpp index 2e265208d5adb1d18a5e5f17ea75c22784e61686..63f621c2255cc511069d8f0b32883f5a68cbbda2 100644 --- a/module-services/service-audio/api/AudioServiceAPI.cpp +++ b/module-services/service-audio/api/AudioServiceAPI.cpp @@ -2,8 +2,20 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "AudioServiceAPI.hpp" -#include "Service/Bus.hpp" -#include "../ServiceAudio.hpp" + +#include // for move, pair + +#include "Service/Bus.hpp" // for Bus, defaultCmdTimeout +#include "../ServiceAudio.hpp" // for ServiceAudio, ServiceAudio::serviceName +#include "Audio/decoder/decoder.hpp" // for Tags +#include "Service/Common.hpp" // for ReturnCodes, ReturnCodes::Success +#include "log/log.hpp" // for LOG_DEBUG, LOG_ERROR +#include "service-audio/messages/AudioMessage.hpp" // for AudioStopRequest, AudioResponseMessage, AudioEventRequest, AudioGetFileTagsRequest, AudioGetSetting, AudioKeyPressedRequest, AudioPauseRequest, AudioResumeRequest, AudioStartPlaybackRequest, AudioStartRecorderRequest, AudioStartRoutingRequest, AudioMessage, AudioSetSetting (ptr only) + +namespace sys +{ + class Service; +} // namespace sys using namespace audio; namespace AudioServiceAPI diff --git a/module-services/service-audio/api/AudioServiceAPI.hpp b/module-services/service-audio/api/AudioServiceAPI.hpp index 4560aa6d332dea2ca363a0cec3c62b0b89547b73..19bdca11855a05345aea40cb90c505eb15b6873c 100644 --- a/module-services/service-audio/api/AudioServiceAPI.hpp +++ b/module-services/service-audio/api/AudioServiceAPI.hpp @@ -3,12 +3,25 @@ #pragma once +#include // for optional +#include // for shared_ptr +#include // for string +#include // for vector + #include "../messages/AudioMessage.hpp" #include "Audio/decoder/decoder.hpp" - -#include +#include "Audio/AudioCommon.hpp" // for PlaybackType, PlaybackType::None, Token (ptr only), RetCode, Setting, Event (ptr only), EventType +#include "Audio/Profiles/Profile.hpp" // for Profile, Profile::Type, Profile::Type::Idle class Service; +namespace audio +{ + struct Tags; +} // namespace audio +namespace sys +{ + class Service; +} // namespace sys /** * Audio service API. diff --git a/module-services/service-bluetooth/ServiceBluetooth.cpp b/module-services/service-bluetooth/ServiceBluetooth.cpp index 3c81762bb5f9f238c31d279bbc93f20812e9b25f..36d10096ac762255fd823714445fc90f5e217048 100644 --- a/module-services/service-bluetooth/ServiceBluetooth.cpp +++ b/module-services/service-bluetooth/ServiceBluetooth.cpp @@ -2,14 +2,19 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "ServiceBluetooth.hpp" -#include "Constants.hpp" -#include "Service/Service.hpp" -#include "Service/Message.hpp" -#include "MessageType.hpp" -#include "messages/BluetoothMessage.hpp" -#include -#include -#include + +#include // for LOG_INFO, LOG_ERROR +#include // for Bus +#include // for exception +#include // for move + +#include "Constants.hpp" // for bluetooth +#include "Service/Service.hpp" // for Service +#include "Service/Message.hpp" // for ResponseMessage, Message_t, DataMessage +#include "MessageType.hpp" // for MessageType, MessageType::BluetoothAddrResult, MessageType::BluetoothRequest, MessageType::BluetoothRequestStream +#include "messages/BluetoothMessage.hpp" // for BluetoothMessage, BluetoothRequestStreamResultMessage, BluetoothAddrMessage, BluetoothMessage::PAN, BluetoothMessage::Play, BluetoothMessage::Scan, BluetoothMessage::Start, BluetoothMessage::Stop, BluetoothMessage::StopScan, BluetoothMessage::Visible +#include "BluetoothWorker.hpp" // for BluetoothWorker +#include "interface/profiles/Profile.hpp" // for Profile ServiceBluetooth::ServiceBluetooth() : sys::Service(service::name::bluetooth) { diff --git a/module-services/service-bluetooth/ServiceBluetooth.hpp b/module-services/service-bluetooth/ServiceBluetooth.hpp index 81e467de105dae723a927d68461be2dec9311ebf..f95b5152ad6aec60c9d10c09aa93f5caa836f0d1 100644 --- a/module-services/service-bluetooth/ServiceBluetooth.hpp +++ b/module-services/service-bluetooth/ServiceBluetooth.hpp @@ -3,9 +3,14 @@ #pragma once +#include // for unique_ptr + #include "Bluetooth/BluetoothWorker.hpp" -#include "Service/Service.hpp" -#include +#include "Service/Service.hpp" // for Service +#include "Service/Common.hpp" // for ReturnCodes, ServicePowerMode +#include "Service/Message.hpp" // for Message_t, DataMessage (ptr only), ResponseMessage (ptr only) + +class BluetoothWorker; class ServiceBluetooth : public sys::Service { diff --git a/module-services/service-cellular/CellularCall.cpp b/module-services/service-cellular/CellularCall.cpp index 046ad657842850f6b8d0415e3b68b24cd631a5fb..d128528d9ff74974d4c864987407a23b8bc24651 100644 --- a/module-services/service-cellular/CellularCall.cpp +++ b/module-services/service-cellular/CellularCall.cpp @@ -2,15 +2,19 @@ // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "CellularCall.hpp" -#include -#include -#include -#include