Lot of password related changes all over the place.

Password is no longer saved with the connection list.
Password is not entered along with other connection credentials.
Password is now asked for when required.
Still working on saving the password and auto retrieving it from the password manager.
This commit is contained in:
eelke 2018-11-04 11:26:20 +01:00
parent 6b9b602c64
commit 2230a4bd61
21 changed files with 508 additions and 195 deletions

View file

@ -57,6 +57,22 @@ ConnectionConfig::ConnectionConfig()
: m_applicationName(QCoreApplication::applicationName().toUtf8().data())
{}
void ConnectionConfig::setUuid(const QUuid &uuid)
{
if (uuid != m_uuid) {
m_dirty = true;
m_uuid = uuid;
}
}
const QUuid &ConnectionConfig::uuid() const
{
return m_uuid;
}
void ConnectionConfig::setName(std::string desc)
{
if (m_name != desc) {

View file

@ -1,6 +1,7 @@
#ifndef CONNECTION_H
#define CONNECTION_H
#include <QUuid>
#include <vector>
#include <string>
@ -27,6 +28,9 @@ class ConnectionConfig {
public:
ConnectionConfig();
void setUuid(const QUuid &uuid);
const QUuid &uuid() const;
void setName(std::string desc);
const std::string& name() const;
@ -73,6 +77,7 @@ public:
bool dirty() const;
void clean();
private:
QUuid m_uuid;
std::string m_name;
std::string m_host;
std::string m_hostaddr;

View file

@ -4,7 +4,7 @@
#
#-------------------------------------------------
QT += widgets
QT += widgets core
TARGET = pglablib
TEMPLATE = lib