LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
14 class QString;
15 class QObject;
16 
17 namespace LC::Util
18 {
19  template<typename, typename>
20  class EitherCont;
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 }
xpcconfig.h
icoreproxy.h
LC::Util
Definition: icoreproxy.h:33
LC::Util::SavePassword
void SavePassword(const QString &password, const QString &key, const ICoreProxy_ptr &proxy)
Saves the password to be retrieved later via GetPassword().
Definition: passutils.cpp:123
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition: icoreproxy.h:181
LC::Util::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:61
UTIL_XPC_API
#define UTIL_XPC_API
Definition: xpcconfig.h:16