31#include <Carbon/Carbon.h>
32#include <AddressBook/ABAddressBookC.h>
34#include <com/sun/star/util/DateTime.hpp>
82 explicit MacabRecords(
const ABAddressBookRef _addressBook);
90 void setName(
const OUString& _sName);
91 OUString
const &
getName()
const;
96 void swap(
const sal_Int32 _id1,
const sal_Int32 _id2);
98 macabfield *
getField(
const sal_Int32 _recordNumber,
const sal_Int32 _columnNumber)
const;
99 macabfield *
getField(
const sal_Int32 _recordNumber, std::u16string_view _columnName)
const;
102 sal_Int32
size()
const;
108 sal_Int32
end()
const;
bool operator!=(const sal_Int32 i) const
bool operator==(const sal_Int32 i) const
iterator & operator=(MacabRecords *_records)
MacabRecord * operator*() const
void bootstrap_CF_types()
void bootstrap_requiredProperties()
OUString const & getName() const
MacabRecords(const ABAddressBookRef _addressBook, MacabHeader *_header, MacabRecord **_records, sal_Int32 _numRecords)
MacabRecord * createMacabRecord(const ABRecordRef _abrecord, const MacabHeader *_header, const CFStringRef _recordType) const
void swap(const sal_Int32 _id1, const sal_Int32 _id2)
void setName(const OUString &_sName)
std::vector< lcl_CFType > lcl_CFTypes
void insertPropertyIntoMacabRecord(MacabRecord *_abrecord, const MacabHeader *_header, const OUString &_propertyName, const CFTypeRef _propertyValue) const
void setHeader(MacabHeader *_header)
sal_Int32 getFieldNumber(std::u16string_view _columnName) const
macabfield * getField(const sal_Int32 _recordNumber, const sal_Int32 _columnNumber) const
ABAddressBookRef addressBook
MacabHeader * getHeader() const
MacabHeader * createHeaderForRecordType(const CFArrayRef _records, const CFStringRef _recordType) const
MacabRecord * insertRecord(MacabRecord *_newRecord, const sal_Int32 _location)
MacabHeader * createHeaderForProperty(const ABRecordRef _record, const CFStringRef _propertyName, const CFStringRef _recordType, const bool _isPropertyRequired) const
ABPropertyType getABTypeFromCFType(const CFTypeID cf_type) const
MacabRecord * getRecord(const sal_Int32 _location) const
std::vector< CFStringRef > requiredProperties