Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schuster <michael@schuster.ms>2020-06-30 07:02:58 +0300
committerMichael Schuster <michael@schuster.ms>2020-07-06 22:51:40 +0300
commitff631e919f7a70c7b205919dd831a816a14897b9 (patch)
tree65c0b05adfae72035b766b6146656265009f925f /src/gui/proxyauthhandler.h
parent8503226c44f56efb863e34a1dac2dc72a8c8a840 (diff)
ProxyAuthHandler: Add template member function execAwait to avoid code duplication
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/proxyauthhandler.h')
-rw-r--r--src/gui/proxyauthhandler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/proxyauthhandler.h b/src/gui/proxyauthhandler.h
index ccc6d824b..e1a291411 100644
--- a/src/gui/proxyauthhandler.h
+++ b/src/gui/proxyauthhandler.h
@@ -71,6 +71,12 @@ private:
/// Stores the current credentials in the keychain.
void storeCredsInKeychain();
+ template<class T, typename PointerToMemberFunction>
+ void execAwait(const T *sender,
+ PointerToMemberFunction signal,
+ int &counter,
+ const QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents);
+
QString keychainUsernameKey() const;
QString keychainPasswordKey() const;