-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathQSObject_ContactHandling.h
More file actions
24 lines (19 loc) · 945 Bytes
/
QSObject_ContactHandling.h
File metadata and controls
24 lines (19 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@class ABPerson;
@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)
- (QSObject *)initWithPerson:(ABPerson *)person;
+ (QSObject *)objectWithContactDetail:(NSString*)detail name:(NSString *)name type:(NSString *)type;
+ (QSObject *)objectWithPerson:(ABPerson *)person;
- (ABPerson *)ABPerson;
- (void)loadContactInfo;
- (void)loadContactInfo:(ABPerson *)person;
- (BOOL)useDefaultIMFromPerson:(ABPerson *)person;
- (BOOL)useDefaultEmailFromPerson:(ABPerson *)person;
@end