2020-05-08 12:43:46 +02:00
|
|
|
#ifndef DATA_ACCES_H
|
|
|
|
#define DATA_ACCES_H
|
|
|
|
|
|
|
|
#include <iostream>
|
2020-05-13 00:58:32 +02:00
|
|
|
#include <list>
|
2020-05-08 12:43:46 +02:00
|
|
|
|
|
|
|
class data_acces
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
data_acces();
|
|
|
|
virtual std::string get_passwd(std::string username) = 0;
|
2020-05-13 00:58:32 +02:00
|
|
|
virtual std::list<std::string> get_pinfo()=0;
|
2020-05-20 00:10:05 +02:00
|
|
|
virtual std::list<std::string> get_uinfo()=0;
|
2020-05-15 21:39:23 +02:00
|
|
|
virtual void write_install(std::string package, std::string user)=0;
|
|
|
|
virtual void write_remove(std::string)=0;
|
2020-05-16 20:52:50 +02:00
|
|
|
virtual bool get_package_exists(std::string package)=0;
|
2020-05-08 12:43:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DATA_ACCES_H
|