mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core/settings: extend qPrefCloudStorage with divelogsde user info
Add divelogsde_userid and divelogsde_password to qPrefCloudStorage to be used in Export.qml Extending qPrefCloudStorage is more logical than adding QSettings (and securing the same behaviour) outside qPref. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
5aba24248f
commit
42939ab7f8
2 changed files with 29 additions and 1 deletions
|
|
@ -78,7 +78,6 @@ HANDLE_PREFERENCE_INT(CloudStorage, "cloud_verification_status", cloud_verificat
|
|||
|
||||
HANDLE_PREFERENCE_BOOL(CloudStorage, "save_password_local", save_password_local);
|
||||
|
||||
|
||||
QString qPrefCloudStorage::diveshare_uid()
|
||||
{
|
||||
return qPrefPrivate::propValue(keyFromGroupAndName("", "diveshareExport/uid"), "").toString();
|
||||
|
|
@ -98,3 +97,24 @@ void qPrefCloudStorage::set_diveshare_private(bool value)
|
|||
qPrefPrivate::propSetValue(keyFromGroupAndName("", "diveshareExport/private"), value, false);
|
||||
emit instance()->diveshare_privateChanged(value);
|
||||
}
|
||||
|
||||
QString qPrefCloudStorage::divelogde_user()
|
||||
{
|
||||
return qPrefPrivate::propValue(keyFromGroupAndName("", "divelogde_user"), "").toString();
|
||||
}
|
||||
void qPrefCloudStorage::set_divelogde_user(const QString &value)
|
||||
{
|
||||
qPrefPrivate::propSetValue(keyFromGroupAndName("", "divelogde_user"), value, "");
|
||||
emit instance()->divelogde_userChanged(value);
|
||||
}
|
||||
|
||||
|
||||
QString qPrefCloudStorage::divelogde_pass()
|
||||
{
|
||||
return qPrefPrivate::propValue(keyFromGroupAndName("", "divelogde_pass"), "").toString();
|
||||
}
|
||||
void qPrefCloudStorage::set_divelogde_pass(const QString &value)
|
||||
{
|
||||
qPrefPrivate::propSetValue(keyFromGroupAndName("", "divelogde_pass"), value, "");
|
||||
emit instance()->divelogde_passChanged(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue