Improve:DeviceManager include cleaner.
This commit is contained in:
parent
9a5c945797
commit
7619c74561
|
@ -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();
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue
Block a user