#include "BatteryInterface.h" void BatteryInterface::NotifyCurrentStatus(){ mBatteryNotification.notify(getPercentage(),isCharging()); } void BatteryInterface::onBatteryStatusChange(std::function batteryChangeHandler){ mBatteryNotification.onNotify(std::move(batteryChangeHandler)); }