Set open options

Not used yet but maybe useful later
This commit is contained in:
Marius Kittler 2018-12-21 17:32:31 +01:00
parent c04fdd6cc2
commit 70f62bf94a
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,7 @@ void PasswordFile::open(PasswordFileOpenFlags options)
}
m_file.open(
m_path, options & PasswordFileOpenFlags::ReadOnly ? ios_base::in | ios_base::binary : ios_base::in | ios_base::out | ios_base::binary);
m_openOptions = options;
opened();
}
@ -564,6 +565,7 @@ void PasswordFile::clear()
clearPath();
clearPassword();
clearEntries();
m_openOptions = PasswordFileOpenFlags::None;
m_extendedHeader.clear();
m_encryptedExtendedHeader.clear();
}