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>
class Contact { namespace reseau{
Personne Proprietaire; class Contact {
std::list<Personne*> lesContacts{}; reseau::Personne Proprietaire;
public: std::list<reseau::Personne*> lesContacts{};
Contact(const Personne& Proprietaire); public:
void ajouterContact(const Personne& unContact); Contact(const reseau::Personne& Proprietaire);
bool supprimerContact(const Personne& unContact); void ajouterContact(const reseau::Personne& unContact);
// void envoyerMessage(std::string texte, Personne p); bool supprimerContact(const reseau::Personne& unContact);
// void recevoirMessage(std::string texte, Personne p); // void envoyerMessage(std::string texte, reseau::Personne p);
// ~Contact(); // void recevoirMessage(std::string texte, reseau::Personne p);
}; // ~Contact();
};
std::ostream& operator<<(std::ostream& os, Personne p); std::ostream& operator<<(std::ostream& os, reseau::Personne p);
}
#endif #endif

Loading…
Cancel
Save