LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
Toggle main menu visibility
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
"
12
#include <
interfaces/core/icoreproxy.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
}
LC::Util::EitherCont
A peir of two functions, typically a continuation and an error handler.
Definition
eithercont.h:31
icoreproxy.h
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition
icoreproxy.h:177
LC::Util
Definition
icoreproxy.h:34
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:108
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:46
xpcconfig.h
UTIL_XPC_API
#define UTIL_XPC_API
Definition
xpcconfig.h:16
src
util
xpc
passutils.h
Generated by
1.17.0