this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add some AddressBook and Carbon stubs (#529)

authored by

kamillys and committed by
Andrew Hyatt
1c03304b 36245caa

+217
+3
src/AddressBook/CMakeLists.txt
··· 55 55 src/ABActionSocialProfileViewPhotos.m 56 56 src/ABActionSocialProfileViewProfile.m 57 57 src/ABActionURLsOpenURL.m 58 + src/ABAddressBook.m 58 59 src/ABAddSuggestedValueTask.m 59 60 src/CNUISaveNonCuratedValueOntoContactCommand.m 60 61 src/ABAddressBookAPIAdapter.m ··· 262 263 src/CNUIDeleteCommandHelper.m 263 264 src/CNUIPhoneNumerValueTransformer.m 264 265 src/ABTelURLHelper.m 266 + src/ABGlobals.m 265 267 src/ABGroupActionScope.m 266 268 src/ABGroupBrowsingContext.m 267 269 src/ABGroupBrowsingGroupEntry.m ··· 299 301 src/ABImmediateActionGestureAdapter.m 300 302 src/ABTemplatePreferencesSaving.m 301 303 src/ABRectObject.m 304 + src/ABRecord.m 302 305 src/ABPackedImage.m 303 306 src/ABMutablePackedImage.m 304 307 src/ABImportRecordFactory.m
+25
src/AddressBook/include/AddressBook/ABAddressBook.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ABAddressBook : NSObject 23 + { 24 + } 25 + @end
+33
src/AddressBook/include/AddressBook/ABGlobals.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + extern NSString *const kABDatabaseChangedExternallyNotification; 23 + 24 + extern NSString *const kABEmailProperty; 25 + extern NSString *const kABFirstNameProperty; 26 + extern NSString *const kABLastNameProperty; 27 + extern NSString *const kABNicknameProperty; 28 + extern NSString *const kABOrganizationProperty; 29 + extern NSString *const kABPersonFlags; 30 + 31 + extern NSString *const kABDeletedRecords; 32 + extern NSString *const kABInsertedRecords; 33 + extern NSString *const kABUpdatedRecords;
+25
src/AddressBook/include/AddressBook/ABRecord.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ABRecord : NSObject 23 + { 24 + } 25 + @end
+34
src/AddressBook/src/ABAddressBook.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AddressBook/ABAddressBook.h> 21 + 22 + @implementation ABAddressBook 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+36
src/AddressBook/src/ABGlobals.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AddressBook/ABGlobals.h> 21 + 22 + NSString *const kABDaabaseChangedExternallyNotification=@"ABDatabaseChangedExternallyNotification"; 23 + 24 + NSString *const kABEmailProperty=@"ABEmailProperty"; 25 + NSString *const kABFirstNameProperty=@"ABFirstNameProperty"; 26 + NSString *const kABLastNameProperty=@"ABLastNameProperty"; 27 + NSString *const kABNicknameProperty=@"ABNicknameProperty"; 28 + NSString *const kABOrganizationProperty=@"ABOrganizationProperty"; 29 + NSString *const kABPersonFlags=@"ABPersonFlags"; 30 + 31 + NSString *const kABDeletedRecords=@"ABDeletedRecords"; 32 + NSString *const kABInsertedRecords=@"ABInsertedRecords"; 33 + NSString *const kABUpdatedRecords=@"ABUpdatedRecords"; 34 + 35 + // This one is not exported by any header but is required by libraries 36 + NSString *const kABRestoreFromBackup=@"ABRestoreFromBackup";
+36
src/AddressBook/src/ABRecord.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2019 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AddressBook/ABRecord.h> 21 + 22 + @implementation ABRecord 23 + 24 + @implementation ABAddressBook 25 + 26 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 27 + { 28 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 29 + } 30 + 31 + - (void)forwardInvocation:(NSInvocation *)anInvocation 32 + { 33 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 34 + } 35 + 36 + @end
+1
src/Carbon/include/Carbon/Carbon.h
··· 31 31 #include <HIToolbox/Menus.h> 32 32 #include <HIToolbox/Notification.h> 33 33 #include <HIToolbox/Scrap.h> 34 + #include <HIToolbox/TextInputSources.h> 34 35 #include <HIToolbox/TextServices.h> 35 36 36 37 #endif
+19
src/Carbon/include/HIToolbox/TextInputSources.h
··· 1 + #ifndef _Carbon_TextInputSources_H_ 2 + #define _Carbon_TextInputSources_H_ 3 + 4 + #ifndef __cplusplus 5 + extern "C" { 6 + #endif 7 + 8 + extern const CFStringRef kTISPropertyInputSourceID; 9 + extern const CFStringRef kTISPropertyUnicodeKeyLayoutData; 10 + extern const CFStringRef kTISCategoryKeyboardInputSource; 11 + extern const CFStringRef kTISPropertyInputSourceCategory; 12 + extern const CFStringRef kTISPropertyInputSourceType; 13 + extern const CFStringRef kTISTypeKeyboardLayout; 14 + 15 + #ifndef __cplusplus 16 + } 17 + #endif 18 + 19 + #endif
+5
src/Carbon/src/constants.c
··· 1 1 #include <CoreFoundation/CoreFoundation.h> 2 + #include <HIToolbox/TextInputSources.h> 2 3 3 4 /* HIToolbox.framework */ 4 5 const CFStringRef kTISPropertyInputSourceID = CFSTR("TISPropertyInputSourceID"); 5 6 const CFStringRef kTISPropertyInputSourceIsFromSystem = CFSTR("TISPropertyInputSourceIsFromSystem"); 6 7 const CFStringRef kTISPropertyUnicodeKeyLayoutData = CFSTR("TISPropertyUnicodeKeyLayoutData"); 8 + const CFStringRef kTISCategoryKeyboardInputSource = CFSTR("TISCategoryKeyboardInputSource"); 9 + const CFStringRef kTISPropertyInputSourceCategory = CFSTR("TISPropertyInputSourceCategory"); 10 + const CFStringRef kTISPropertyInputSourceType = CFSTR("TISPropertyInputSourceType"); 11 + const CFStringRef kTISTypeKeyboardLayout = CFSTR("TISTypeKeyboardLayout");