added return codes for IPrefresher refresh method.

error messages in gui.
This commit is contained in:
2020-05-14 23:08:19 +02:00
parent 0eea7095e0
commit 3b32f60190
5 changed files with 34 additions and 10 deletions

View File

@ -9,12 +9,19 @@
#pragma once
namespace IPRefresher_Status_Code {
const int SUCCESS = 1;
const int ERROR = -1;
const int ERROR_NO_INTERNET = -2;
const int NOREFRESH = 0;
}
class IPRefresher {
public:
/**
* refresh ip address on Dynu server
*/
void checkIPAdress(bool force);
bool checkIPAdress(bool force);
/**
* default constructor
@ -27,4 +34,4 @@ public:
* @param loop true->loopmode on
*/
explicit IPRefresher(bool loop);
};
};