mirror of
https://github.com/QuasarApp/DoctorPill.git
synced 2025-05-11 08:59:48 +00:00
change pill interface
This commit is contained in:
parent
b50640d166
commit
c5ab76470e
@ -67,13 +67,13 @@ protected:
|
||||
* @note This method will executed only on the Doctor object.
|
||||
* @return true if the issues is detected.
|
||||
*/
|
||||
virtual bool diagnostic() const = 0;
|
||||
virtual bool diagnostic() = 0;
|
||||
|
||||
/**
|
||||
* @brief fix This method should be fix detected issue.
|
||||
* @return true if the issue fixes successful else false
|
||||
*/
|
||||
virtual bool fix() const = 0;
|
||||
virtual bool fix() = 0;
|
||||
|
||||
|
||||
friend class Doctor;
|
||||
|
@ -29,11 +29,11 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
bool diagnostic() const override {
|
||||
bool diagnostic() override {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
return true;
|
||||
};
|
||||
bool fix() const override {
|
||||
bool fix() override {
|
||||
return true;
|
||||
};
|
||||
};
|
||||
@ -56,11 +56,11 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
bool diagnostic() const override {
|
||||
bool diagnostic() override {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
return true;
|
||||
};
|
||||
bool fix() const override {
|
||||
bool fix() override {
|
||||
return true;
|
||||
};
|
||||
|
||||
@ -85,11 +85,11 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
bool diagnostic() const override {
|
||||
bool diagnostic() override {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
return true;
|
||||
};
|
||||
bool fix() const override {
|
||||
bool fix() override {
|
||||
return true;
|
||||
};
|
||||
};
|
||||
@ -119,11 +119,11 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
bool diagnostic() const override {
|
||||
bool diagnostic() override {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
return true;
|
||||
};
|
||||
bool fix() const override {
|
||||
bool fix() override {
|
||||
return true;
|
||||
};
|
||||
};
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 8f3c0c4fac3fa8474321fa3737eee59798b7436e
|
||||
Subproject commit 9bfa29cbe9249b76eafe3a3a3564fcdd21c0c2d4
|
@ -32,11 +32,11 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
bool diagnostic() const override {
|
||||
bool diagnostic() override {
|
||||
return _app->_appIsBroken;
|
||||
};
|
||||
|
||||
bool fix() const override {
|
||||
bool fix() override {
|
||||
_app->_appIsBroken = false;
|
||||
return !_app->_appIsBroken;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user