lcd4l: rename OnAfterError->OnError

This commit is contained in:
2021-07-17 22:49:19 +02:00
parent f9ad744722
commit 32973379b5
3 changed files with 5 additions and 5 deletions

View File

@@ -168,7 +168,7 @@ void CLCD4l::StartLCD4l()
if (exec_initscript("lcd4linux", "start", "systemctl")) if (exec_initscript("lcd4linux", "start", "systemctl"))
OnAfterStart(); OnAfterStart();
else else
OnAfterError(); OnError();
} }
} }
@@ -191,7 +191,7 @@ void CLCD4l::StopLCD4l()
if (exec_initscript("lcd4linux", "stop", "systemctl")) if (exec_initscript("lcd4linux", "stop", "systemctl"))
OnAfterStop(); OnAfterStop();
else else
OnAfterError(); OnError();
} }
void CLCD4l::SwitchLCD4l() void CLCD4l::SwitchLCD4l()
@@ -886,7 +886,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (exec_initscript("lcd4linux", "restart", "systemctl")) if (exec_initscript("lcd4linux", "restart", "systemctl"))
OnAfterRestart(); OnAfterRestart();
else else
OnAfterError(); OnError();
} }
} }
} }

View File

@@ -85,7 +85,7 @@ class CLCD4l
OnAfterStop, OnAfterStop,
OnBeforeRestart, OnBeforeRestart,
OnAfterRestart, OnAfterRestart,
OnAfterError; OnError;
private: private:
std::thread *thrLCD4l; std::thread *thrLCD4l;

View File

@@ -329,5 +329,5 @@ void CLCD4lSetup::connectSlots()
CLCD4l::getInstance()->OnAfterStop.connect(sl_remove); CLCD4l::getInstance()->OnAfterStop.connect(sl_remove);
CLCD4l::getInstance()->OnAfterRestart.connect(sl_remove); CLCD4l::getInstance()->OnAfterRestart.connect(sl_remove);
CLCD4l::getInstance()->OnAfterError.connect(sl_remove); CLCD4l::getInstance()->OnError.connect(sl_remove);
} }