Update Contact.hpp

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

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

Loading…
Cancel
Save