Update Contact.hpp

main
Joan PIERRON 3 years ago
parent 9624d067e5
commit 85a8a15eb2

@ -4,19 +4,19 @@
#include<list> #include<list>
#include<iostream> #include<iostream>
namespace reseau{
class Contact { class Contact {
Personne Proprietaire; reseau::Personne Proprietaire;
std::list<Personne*> lesContacts{}; std::list<reseau::Personne*> lesContacts{};
public: public:
Contact(const Personne& Proprietaire); Contact(const reseau::Personne& Proprietaire);
void ajouterContact(const Personne& unContact); void ajouterContact(const reseau::Personne& unContact);
bool supprimerContact(const Personne& unContact); bool supprimerContact(const reseau::Personne& unContact);
// void envoyerMessage(std::string texte, Personne p); // void envoyerMessage(std::string texte, reseau::Personne p);
// void recevoirMessage(std::string texte, Personne p); // void recevoirMessage(std::string texte, reseau::Personne p);
// ~Contact(); // ~Contact();
}; };
std::ostream& operator<<(std::ostream& os, reseau::Personne p);
std::ostream& operator<<(std::ostream& os, Personne p); }
#endif #endif

Loading…
Cancel
Save