Backup functionality working, the UI still needs work.

This commit is contained in:
eelke 2017-03-05 21:23:36 +01:00
parent d0ea9dfa0c
commit 73528ca965
12 changed files with 606 additions and 194 deletions

View file

@ -4,6 +4,7 @@
#include <vector>
#include <string>
enum class SslMode {
disable=0,
allow=1,
@ -19,6 +20,9 @@ enum class PasswordMode {
DontSave
};
class QProcessEnvironment;
class QString;
class ConnectionConfig {
public:
ConnectionConfig();
@ -64,6 +68,8 @@ public:
bool isSameDatabase(const ConnectionConfig &rhs) const;
void writeToEnvironment(QProcessEnvironment &env) const;
bool dirty() const;
void clean();
private:
@ -86,6 +92,8 @@ private:
bool m_dirty = false;
static void strToEnv(QProcessEnvironment &env, const QString &var, const std::string &val);
static std::vector<const char*> s_keywords;
mutable std::vector<const char*> m_values;
};