LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
passutils.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include "xpcconfig.h"
13
14class QString;
15class QObject;
16
17namespace LC::Util
18{
19 template<typename, typename>
21
51 UTIL_XPC_API QString GetPassword (const QString& keyName,
52 const QString& dialogText,
53 const ICoreProxy_ptr& proxy,
54 bool useStore = true);
55
56 UTIL_XPC_API void GetPassword (const QString& keyName,
57 const QString& dialogText,
58 const ICoreProxy_ptr& proxy,
59 const EitherCont<void (), void (QString)>& cont,
60 QObject *depender = nullptr,
61 bool useStore = true);
62
81 UTIL_XPC_API void SavePassword (const QString& password,
82 const QString& keyName,
83 const ICoreProxy_ptr& proxy);
84}
A peir of two functions, typically a continuation and an error handler.
Definition passutils.h:20
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition icoreproxy.h:181
void SavePassword(const QString &password, const QString &key, const ICoreProxy_ptr &proxy)
Saves the password to be retrieved later via GetPassword().
QString GetPassword(const QString &key, const QString &diaText, const ICoreProxy_ptr &proxy, bool useStored)
Returns password for the key, possibly asking the user.
Definition passutils.cpp:55
#define UTIL_XPC_API
Definition xpcconfig.h:16