mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-1753: implement reset [skip-ci]
This commit is contained in:
@ -388,6 +388,15 @@ grpc::Status GRPCClient::restart()
|
||||
return stub_->Restart(&ctx, empty, &empty);
|
||||
}
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The status for the gRPC call.
|
||||
//****************************************************************************************************************************************************
|
||||
grpc::Status GRPCClient::triggerReset()
|
||||
{
|
||||
grpc::ClientContext ctx;
|
||||
return stub_->TriggerReset(&ctx, empty, &empty);
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] port The port to check.
|
||||
|
||||
@ -64,6 +64,7 @@ public: // member functions.
|
||||
grpc::Status reportBug(QString const &description, QString const &address, QString const &emailClient, bool includeLogs); ///< Performs the 'ReportBug' gRPC call.
|
||||
grpc::Status quit(); ///< Perform the "Quit" gRPC call.
|
||||
grpc::Status restart(); ///< Performs the Restart gRPC call.
|
||||
grpc::Status triggerReset(); ///< Performs the triggerReset gRPC call.
|
||||
grpc::Status isPortFree(qint32 port, bool &outFree); ///< Performs the 'IsPortFree' call.
|
||||
grpc::Status showOnStartup(bool &outValue); ///< Performs the 'ShowOnStartup' call.
|
||||
grpc::Status showSplashScreen(bool &outValue); ///< Performs the 'ShowSplashScreen' call.
|
||||
|
||||
@ -327,5 +327,5 @@ void QMLBackend::installUpdate()
|
||||
//****************************************************************************************************************************************************
|
||||
void QMLBackend::triggerReset()
|
||||
{
|
||||
app().log().error(QString("%1() is not implemented.").arg(__FUNCTION__));
|
||||
logGRPCCallStatus(app().grpc().triggerReset(), "triggerReset");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user