···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface ABAddressBook : NSObject
2323+{
2424+}
2525+@end
+33
src/AddressBook/include/AddressBook/ABGlobals.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+extern NSString *const kABDatabaseChangedExternallyNotification;
2323+2424+extern NSString *const kABEmailProperty;
2525+extern NSString *const kABFirstNameProperty;
2626+extern NSString *const kABLastNameProperty;
2727+extern NSString *const kABNicknameProperty;
2828+extern NSString *const kABOrganizationProperty;
2929+extern NSString *const kABPersonFlags;
3030+3131+extern NSString *const kABDeletedRecords;
3232+extern NSString *const kABInsertedRecords;
3333+extern NSString *const kABUpdatedRecords;
+25
src/AddressBook/include/AddressBook/ABRecord.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface ABRecord : NSObject
2323+{
2424+}
2525+@end
+34
src/AddressBook/src/ABAddressBook.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AddressBook/ABAddressBook.h>
2121+2222+@implementation ABAddressBook
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
+36
src/AddressBook/src/ABGlobals.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AddressBook/ABGlobals.h>
2121+2222+NSString *const kABDaabaseChangedExternallyNotification=@"ABDatabaseChangedExternallyNotification";
2323+2424+NSString *const kABEmailProperty=@"ABEmailProperty";
2525+NSString *const kABFirstNameProperty=@"ABFirstNameProperty";
2626+NSString *const kABLastNameProperty=@"ABLastNameProperty";
2727+NSString *const kABNicknameProperty=@"ABNicknameProperty";
2828+NSString *const kABOrganizationProperty=@"ABOrganizationProperty";
2929+NSString *const kABPersonFlags=@"ABPersonFlags";
3030+3131+NSString *const kABDeletedRecords=@"ABDeletedRecords";
3232+NSString *const kABInsertedRecords=@"ABInsertedRecords";
3333+NSString *const kABUpdatedRecords=@"ABUpdatedRecords";
3434+3535+// This one is not exported by any header but is required by libraries
3636+NSString *const kABRestoreFromBackup=@"ABRestoreFromBackup";
+36
src/AddressBook/src/ABRecord.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <AddressBook/ABRecord.h>
2121+2222+@implementation ABRecord
2323+2424+@implementation ABAddressBook
2525+2626+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2727+{
2828+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2929+}
3030+3131+- (void)forwardInvocation:(NSInvocation *)anInvocation
3232+{
3333+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3434+}
3535+3636+@end