21 virtual std::string
get_passwd(std::string username) = 0;
33 virtual std::list<std::string>
get_pinfo()=0;
39 virtual std::list<std::string>
get_uinfo()=0;
46 virtual void write_install(std::string package, std::string user)=0;
67 virtual void create_user(std::string user, std::string pass,
bool admin)=0;
82 #endif // DATA_ACCES_H
virtual bool get_admin(std::string)=0
get_admin Get if the user is a admin or not
virtual std::string get_passwd(std::string username)=0
get_passwd Get the hash of the password that use the user
static char * get_hash(char *data)
get_hash Generate a hash with the pased data
Definition: data_acces.cpp:11
Definition: data_acces.h:7
virtual void write_remove(std::string package)=0
write_remove Remove the information about generated package
data_acces()
data_acces Interface to program objects that manage the stored data
Definition: data_acces.cpp:6
virtual void write_install(std::string package, std::string user)=0
write_install Store information about package generation
virtual std::list< std::string > get_uinfo()=0
get_uinfo Get a list of the users and if they are admins or not
virtual std::list< std::string > get_pinfo()=0
get_pinfo Get a list of the generated packages and the information about that
virtual bool get_package_exists(std::string package)=0
get_package_exists Search if the package exists
virtual void remove_user(std::string user)=0
remove_user Remove a user
virtual void create_user(std::string user, std::string pass, bool admin)=0
create_user Create a new user with the passed data