This repository has been archived on 2021-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
Passgen/pcore.h

42 lines
824 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef PCORE_H
#define PCORE_H
#include <QList>
class QString;
/**
* @brief структура хранящая сам пасс
*/
struct PStr
{
int id = 1;
QString user;
QString desc;
QString pass;
};
/**
* @brief структура хранящая в себе массив паролей к ресурсам
*/
struct LSites
{
int id = 1;
QString domain;
QList<PStr*> passList;
};
class PCore
{
public:
PCore();
void addPass(QString domain, QString UName, QString Desc, QString Pass);
void addPass(QString domain, QString UName, QString Pass);
void addPass(QString domain, QString Pass);
QList<LSites*> *getASP();//вернуть массив паролей
private:
QList<LSites*> *dList;//массив пассов к ресурсам
};
#endif // PCORE_H