File indexing completed on 2024-05-12 04:46:02
0001 #ifndef UTILS_CARDDAVREPLY_HPP 0002 #define UTILS_CARDDAVREPLY_HPP 0003 0004 #include <QNetworkReply> 0005 #include <QObject> 0006 0007 #include "../dto/CardDAVResponseItem.hpp" 0008 0009 class CardDAVReply : public QObject { 0010 Q_OBJECT 0011 0012 public: 0013 void sendTestConnectionResponseSignal(bool isSuccess); 0014 void sendListContactsResponseSignal(QList<Contact *> contacts); 0015 void sendCreateContactResponseSignal(Contact *contact); 0016 void sendUpdateContactResponseSignal(Contact *contact); 0017 void sendDeleteContactResponseSignal(); 0018 void sendError(QNetworkReply::NetworkError err); 0019 0020 signals: 0021 void testConnectionResponse(bool isSuccess); 0022 void listAllContactsResponse(QList<Contact *> contacts); 0023 void createContactResponse(Contact *contact); 0024 void updateContactResponse(Contact *contact); 0025 void deleteContactResponse(); 0026 void error(QNetworkReply::NetworkError err); 0027 }; 0028 0029 #endif