|
|
|
@ -7,16 +7,18 @@
|
|
|
|
|
namespace reseau{
|
|
|
|
|
class Contact {
|
|
|
|
|
reseau::Personne Proprietaire;
|
|
|
|
|
std::list<reseau::Personne*> lesContacts{};
|
|
|
|
|
std::list<const reseau::Personne*> 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
|
|
|
|
|