mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
22 lines
424 B
C++
22 lines
424 B
C++
|
|
#ifndef SECUREFORMAT_H
|
||
|
|
#define SECUREFORMAT_H
|
||
|
|
|
||
|
|
#include <QSettings>
|
||
|
|
#include <QIODevice>
|
||
|
|
|
||
|
|
class SecureFormat
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SecureFormat();
|
||
|
|
|
||
|
|
static bool readSecureFile(QIODevice &device, QSettings::SettingsMap &map);
|
||
|
|
static bool writeSecureFile(QIODevice &device, const QSettings::SettingsMap &map);
|
||
|
|
|
||
|
|
const QSettings::Format& format() const;
|
||
|
|
|
||
|
|
private:
|
||
|
|
QSettings::Format m_format;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // SECUREFORMAT_H
|