From 8f14d0e43e9665a1f8708c00697bb7ebfa2c4126 Mon Sep 17 00:00:00 2001 From: jopierron Date: Tue, 8 Mar 2022 09:00:42 +0000 Subject: [PATCH] Update Contact.hpp --- src/Contact.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Contact.hpp b/src/Contact.hpp index d148eab..2fc9d29 100644 --- a/src/Contact.hpp +++ b/src/Contact.hpp @@ -7,16 +7,18 @@ namespace reseau{ class Contact { reseau::Personne Proprietaire; - std::list lesContacts{}; + std::list lesContacts{}; public: Contact(const reseau::Personne& Proprietaire); - void ajouterContact(const reseau::Personne& unContact); + bool ajouterContact(const reseau::Personne& unContact); bool supprimerContact(const reseau::Personne& unContact); + bool rechercher(const Personne& unContact); // void envoyerMessage(std::string texte, reseau::Personne p); // void recevoirMessage(std::string texte, reseau::Personne p); // ~Contact(); }; std::ostream& operator<<(std::ostream& os, reseau::Personne p); + bool operator==(reseau::Personne p1, reseau::Personne p2); } #endif