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