mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
Other: C++ Code reformat.
This commit is contained in:
@ -24,15 +24,14 @@
|
||||
//
|
||||
//****************************************************************************************************************************************************
|
||||
GRPCQtProxy::GRPCQtProxy()
|
||||
: QObject(nullptr)
|
||||
{
|
||||
: QObject(nullptr) {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
//
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::connectSignals()
|
||||
{
|
||||
void GRPCQtProxy::connectSignals() {
|
||||
MainWindow &mainWindow = app().mainWindow();
|
||||
SettingsTab &settingsTab = mainWindow.settingsTab();
|
||||
UsersTab &usersTab = mainWindow.usersTab();
|
||||
@ -60,8 +59,7 @@ void GRPCQtProxy::connectSignals()
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] event The event.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::sendDelayedEvent(bridgepp::SPStreamEvent const &event)
|
||||
{
|
||||
void GRPCQtProxy::sendDelayedEvent(bridgepp::SPStreamEvent const &event) {
|
||||
emit delayedEventRequested(event);
|
||||
}
|
||||
|
||||
@ -69,8 +67,7 @@ void GRPCQtProxy::sendDelayedEvent(bridgepp::SPStreamEvent const &event)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] on The value.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsAutostartOn(bool on)
|
||||
{
|
||||
void GRPCQtProxy::setIsAutostartOn(bool on) {
|
||||
emit setIsAutostartOnReceived(on);
|
||||
}
|
||||
|
||||
@ -78,8 +75,7 @@ void GRPCQtProxy::setIsAutostartOn(bool on)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] enabled The value.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsBetaEnabled(bool enabled)
|
||||
{
|
||||
void GRPCQtProxy::setIsBetaEnabled(bool enabled) {
|
||||
emit setIsBetaEnabledReceived(enabled);
|
||||
}
|
||||
|
||||
@ -87,8 +83,7 @@ void GRPCQtProxy::setIsBetaEnabled(bool enabled)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] visible The value.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsAllMailVisible(bool visible)
|
||||
{
|
||||
void GRPCQtProxy::setIsAllMailVisible(bool visible) {
|
||||
emit setIsAllMailVisibleReceived(visible);
|
||||
}
|
||||
|
||||
@ -96,8 +91,7 @@ void GRPCQtProxy::setIsAllMailVisible(bool visible)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] name The color scheme.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setColorSchemeName(QString const &name)
|
||||
{
|
||||
void GRPCQtProxy::setColorSchemeName(QString const &name) {
|
||||
emit setColorSchemeNameReceived(name);
|
||||
}
|
||||
|
||||
@ -111,8 +105,7 @@ void GRPCQtProxy::setColorSchemeName(QString const &name)
|
||||
/// \param[in] includeLogs Should the logs be included.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::reportBug(QString const &osType, QString const &osVersion, QString const &emailClient, QString const &address,
|
||||
QString const &description, bool includeLogs)
|
||||
{
|
||||
QString const &description, bool includeLogs) {
|
||||
emit reportBugReceived(osType, osVersion, emailClient, address, description, includeLogs);
|
||||
}
|
||||
|
||||
@ -120,8 +113,7 @@ void GRPCQtProxy::reportBug(QString const &osType, QString const &osVersion, QSt
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] folderPath The folder path.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::exportTLSCertificates(QString const &folderPath)
|
||||
{
|
||||
void GRPCQtProxy::exportTLSCertificates(QString const &folderPath) {
|
||||
emit exportTLSCertificatesReceived(folderPath);
|
||||
}
|
||||
|
||||
@ -129,8 +121,7 @@ void GRPCQtProxy::exportTLSCertificates(QString const &folderPath)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] isStreaming Is the gRPC server streaming.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsStreaming(bool isStreaming)
|
||||
{
|
||||
void GRPCQtProxy::setIsStreaming(bool isStreaming) {
|
||||
emit setIsStreamingReceived(isStreaming);
|
||||
}
|
||||
|
||||
@ -138,8 +129,7 @@ void GRPCQtProxy::setIsStreaming(bool isStreaming)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] clientPlatform The client platform.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setClientPlatform(QString const &clientPlatform)
|
||||
{
|
||||
void GRPCQtProxy::setClientPlatform(QString const &clientPlatform) {
|
||||
emit setClientPlatformReceived(clientPlatform);
|
||||
}
|
||||
|
||||
@ -150,8 +140,7 @@ void GRPCQtProxy::setClientPlatform(QString const &clientPlatform)
|
||||
/// \param[in] useSSLForIMAP The IMAP connexion mode.
|
||||
/// \param[in] useSSLForSMTP The IMAP connexion mode.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setMailServerSettings(qint32 imapPort, qint32 smtpPort, bool useSSLForIMAP, bool userSSLForSMTP)
|
||||
{
|
||||
void GRPCQtProxy::setMailServerSettings(qint32 imapPort, qint32 smtpPort, bool useSSLForIMAP, bool userSSLForSMTP) {
|
||||
emit setMailServerSettingsReceived(imapPort, smtpPort, useSSLForIMAP, userSSLForSMTP);
|
||||
}
|
||||
|
||||
@ -159,8 +148,7 @@ void GRPCQtProxy::setMailServerSettings(qint32 imapPort, qint32 smtpPort, bool u
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] enabled Is DoH enabled?
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsDoHEnabled(bool enabled)
|
||||
{
|
||||
void GRPCQtProxy::setIsDoHEnabled(bool enabled) {
|
||||
emit setIsDoHEnabledReceived(enabled);
|
||||
}
|
||||
|
||||
@ -168,8 +156,7 @@ void GRPCQtProxy::setIsDoHEnabled(bool enabled)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] path The disk cache path.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setDiskCachePath(QString const &path)
|
||||
{
|
||||
void GRPCQtProxy::setDiskCachePath(QString const &path) {
|
||||
emit setDiskCachePathReceived(path);
|
||||
}
|
||||
|
||||
@ -177,8 +164,7 @@ void GRPCQtProxy::setDiskCachePath(QString const &path)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] on Is automatic update on?
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setIsAutomaticUpdateOn(bool on)
|
||||
{
|
||||
void GRPCQtProxy::setIsAutomaticUpdateOn(bool on) {
|
||||
emit setIsAutomaticUpdateOnReceived(on);
|
||||
}
|
||||
|
||||
@ -187,8 +173,7 @@ void GRPCQtProxy::setIsAutomaticUpdateOn(bool on)
|
||||
/// \param[in] userID The userID.
|
||||
/// \param[in] makeItActive Should split mode be active.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::setUserSplitMode(QString const &userID, bool makeItActive)
|
||||
{
|
||||
void GRPCQtProxy::setUserSplitMode(QString const &userID, bool makeItActive) {
|
||||
emit setUserSplitModeReceived(userID, makeItActive);
|
||||
}
|
||||
|
||||
@ -196,8 +181,7 @@ void GRPCQtProxy::setUserSplitMode(QString const &userID, bool makeItActive)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] userID The userID.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::logoutUser(QString const &userID)
|
||||
{
|
||||
void GRPCQtProxy::logoutUser(QString const &userID) {
|
||||
emit logoutUserReceived(userID);
|
||||
}
|
||||
|
||||
@ -205,8 +189,7 @@ void GRPCQtProxy::logoutUser(QString const &userID)
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] userID The userID.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::removeUser(QString const &userID)
|
||||
{
|
||||
void GRPCQtProxy::removeUser(QString const &userID) {
|
||||
emit removeUserReceived(userID);
|
||||
}
|
||||
|
||||
@ -215,7 +198,6 @@ void GRPCQtProxy::removeUser(QString const &userID)
|
||||
/// \param[in] userID The userID.
|
||||
/// \param[in] address The address.
|
||||
//****************************************************************************************************************************************************
|
||||
void GRPCQtProxy::configureUserAppleMail(QString const &userID, QString const &address)
|
||||
{
|
||||
void GRPCQtProxy::configureUserAppleMail(QString const &userID, QString const &address) {
|
||||
emit configureUserAppleMailReceived(userID, address);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user