File indexing completed on 2024-05-12 04:46:02

0001 #include "CardDAVResponseItem.hpp"
0002 
0003 CardDAVResponseItem::CardDAVResponseItem() {}
0004 
0005 CardDAVResponseItem::CardDAVResponseItem(bool isCollection, bool isAddressBook,
0006                                          bool isContact, QUrl href) {
0007   this->flagIsCollection = isCollection;
0008   this->flagIsAddressBook = isAddressBook;
0009   this->flagIsContact = isContact;
0010   this->href = href;
0011 }
0012 
0013 bool CardDAVResponseItem::isCollection() { return this->flagIsCollection; }
0014 
0015 bool CardDAVResponseItem::isAddressBook() { return this->flagIsAddressBook; }
0016 
0017 bool CardDAVResponseItem::isContact() { return this->flagIsContact; }
0018 
0019 Contact *CardDAVResponseItem::getContact() { return this->contact; }
0020 
0021 QUrl CardDAVResponseItem::getHref() { return this->href; }
0022 
0023 void CardDAVResponseItem::setIsCollection(bool isCollection) {
0024   this->flagIsCollection = isCollection;
0025 }
0026 
0027 void CardDAVResponseItem::setIsAddressBook(bool isAddressBook) {
0028   this->flagIsAddressBook = isAddressBook;
0029 }
0030 
0031 void CardDAVResponseItem::setIsContact(bool isContact) {
0032   this->flagIsContact = isContact;
0033 }
0034 
0035 void CardDAVResponseItem::setContact(Contact *contact) {
0036   this->contact = contact;
0037 }
0038 
0039 void CardDAVResponseItem::setHref(QUrl href) { this->href = href; }