Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
727 B
31 lines
727 B
// Copyright 2019-2020 The Hush developers
|
|
// GPLv3
|
|
#ifndef FILESYSTEM_H
|
|
#define FILESYSTEM_H
|
|
|
|
#include <QString>
|
|
#include <QList>
|
|
#include "../Model/ContactItem.h"
|
|
#include "../Crypto/FileEncryption.h"
|
|
#include <fstream>
|
|
|
|
class FileSystem
|
|
{
|
|
private:
|
|
static bool instanced;
|
|
static FileSystem* instance;
|
|
FileSystem();
|
|
|
|
public:
|
|
static FileSystem* getInstance();
|
|
QList<ContactItem> readContacts(QString file);
|
|
void writeContacts(QString file, QString data);
|
|
|
|
//converter
|
|
QList<ContactItem> readContactsOldFormat(QString file);
|
|
void writeContactsOldFormat(QString file, QList<ContactItem> contacts);
|
|
~FileSystem();
|
|
|
|
};
|
|
|
|
#endif
|
|
|