#ifndef CCONTACTREPOSITORY_H #define CCONTACTREPOSITORY_H #include "Contact.h" #include class CContactRepository { public: CContactRepository(); // int LoadContacts(); // int SaveContacts(); int SetContacts(QList *ContactsList); int AddContact(CContact Contact); QList *GetContacts(){return &mContactsList;} int GetContact(int index, CContact &Contact); CContact *GetContactPtr(int index); CContact *FindContact(QString ContactRawNumber); int DeleteContact(int index); private: QList mContactsList; }; #endif // CCONTACTREPOSITORY_H