//TODO: temporarily memory database is used (change to file database)
auto configuration = std::make_shared<SQLiteConfiguration>(true);
- {
- //TODO: remove after integration with settings app
- std::string switchId = "AccessoriesSwitchProvider_x";
- auto switch_ = compositeSwitchProvider->findSwitchById(switchId);
- std::string activityType = "SELECT";
- auto item = std::make_shared<SwitchConfigurationItem>(switch_->getId()->getGlobalId(), activityType);
- DEBUG("getGlobalId %s", switch_->getId()->getGlobalId().c_str());
- configuration->add(item);
- }
- {
- //TODO: remove after integration with settings app
- std::string switchId = "ScreenSwitchProvider_touch";
- auto switch_ = compositeSwitchProvider->findSwitchById(switchId);
- std::string activityType = "SELECT";
- auto item = std::make_shared<SwitchConfigurationItem>(switch_->getId()->getGlobalId(), activityType);
- DEBUG("getGlobalId %s", switch_->getId()->getGlobalId().c_str());
- configuration->add(item);
- }
-
setCompositeSwitchProvider(compositeSwitchProvider);
setConfiguration(configuration);
setDBusInterface(DBusInterface::create());