forked from quicksilver/com.apple.AddressBook-qsplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QSObject_ContactHandling.h
23 lines (19 loc) · 1.08 KB
/
QSObject_ContactHandling.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
NSString *formattedContactName(NSString *firstName, NSString *lastName, NSString *middleName, NSString *suffix, NSString *prefix);
@interface QSContactObjectHandler : NSObject
+ (NSArray *)URLObjectsForPerson:(ABPerson *)person asChild:(BOOL)asChild;
+ (NSArray *)emailObjectsForPerson:(ABPerson *)person asChild:(BOOL)asChild;
+ (NSArray *)phoneObjectsForPerson:(ABPerson *)person asChild:(BOOL)asChild;
+ (NSArray *)addressObjectsForPerson:(ABPerson *)person asChild:(BOOL)asChild;
+ (NSArray *)imObjectsForPerson:(ABPerson *)person asChild:(BOOL)asChild;
- (BOOL)loadChildrenForObject:(QSObject *)object;
@end
@interface QSObject (ContactHandling)
+ (id)objectWithPerson:(ABPerson *)person;
//+ (id)objectWithString:(NSString *)string name:(NSString *)aName type:(NSString *)aType;
//- (id)initWithString:(NSString *)string name:(NSString *)aName type:(NSString *)aType;
- (NSString *)nameForRecord:(ABRecord *)record;
- (id)initWithPerson:(ABPerson *)person;
- (void)loadContactInfo;
- (BOOL)useDefaultIMFromPerson:(ABPerson *)person;
- (BOOL)useDefaultEmailFromPerson:(ABPerson *)person;
@end