| 185 | |
| 186 | |
| 187 | void ApiServer::firstStart() |
| 188 | { |
| 189 | // Call this function after connect all nesessary signals/slots |
| 190 | |
| 191 | if (Settings::isApiEnabled()) |
| 192 | { |
| 193 | updateApiKey(Settings::getApiAuthKey()); |
| 194 | startListening(); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | void ApiServer::enableApiServer(bool isEnabled) |
| 199 | { |