diff --git a/User.h b/User.h new file mode 100644 index 0000000..f8c4738 --- /dev/null +++ b/User.h @@ -0,0 +1,43 @@ +#include +#include +#include + +class User { + string name; + string password; + string phone_number; + string fax_number; + string postal_address; + vector groups; + vector messages; + + bool is_admin; + bool is_logged_in; + +public: + User(); + User(string n, string pass, string phone, string fax, string postal, bool admin); + string getName(); + string getPassword(); + string getPhoneNumber(); + string getFaxNumber(); + string getPostalAddress(); + vector getGroups(); + vector getMessages(); + bool confirmAdmin(); + bool checkLogin(); + void setName(string new_name); + void setPassword(string new_name); + void setPhone(string new_phone); + void setFax(string new_fax); + void setPostal(string new_postal); +}; + +class Message { + string timestamp; + string text; + +public: + Message(); + Message(string time, string t); +};