Improve:DeviceManager include cleaner.

This commit is contained in:
Fancy code 2024-06-17 15:57:48 +08:00
parent 9a5c945797
commit 7619c74561
5 changed files with 29 additions and 1 deletions

View File

@ -13,10 +13,13 @@
* limitations under the License.
*/
#include "DeviceManager.h"
#include "IDeviceManager.h"
#include "ILog.h"
#include "KeyManager.h"
#include "LedManager.h"
#include <vector>
#include "StatusCode.h"
#include <memory>
#include <string>
const StatusCode DeviceManager::Init(void)
{
KeyManager::GetInstance()->Init();

View File

@ -14,7 +14,10 @@
*/
#include "DeviceManagerMakePtr.h"
#include "DeviceManager.h"
#include "IDeviceManager.h"
#include "ILog.h"
#include "StatusCode.h"
#include <memory>
bool CreateDeviceManagerModule(void)
{
auto instance = std::make_shared<IDeviceManager>();

View File

@ -14,6 +14,9 @@
*/
#include "IDeviceManager.h"
#include "ILog.h"
#include "StatusCode.h"
#include <memory>
#include <string>
void VKeyMonitor::KeyEventReport(const std::string &keyName, const VirtualKeyEvent &event, const unsigned int &timeMs)
{
}

View File

@ -13,7 +13,17 @@
* limitations under the License.
*/
#include "KeyManager.h"
#include "IDeviceManager.h"
#include "IHalCpp.h"
#include "ILog.h"
// #include "KeyControl.h"
#include "StatusCode.h"
#include <chrono>
#include <map>
#include <memory>
#include <string>
#include <thread>
#include <utility>
std::shared_ptr<KeyManager> &KeyManager::GetInstance(std::shared_ptr<KeyManager> *impl)
{
static auto instance = std::make_shared<KeyManager>();

View File

@ -13,7 +13,16 @@
* limitations under the License.
*/
#include "LedManager.h"
#include "IDeviceManager.h"
#include "IHalCpp.h"
#include "ILog.h"
#include "LedControl.h"
#include <chrono>
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
std::shared_ptr<LedManager> &LedManager::GetInstance(std::shared_ptr<LedManager> *impl)
{
static auto instance = std::make_shared<LedManager>();