-
Notifications
You must be signed in to change notification settings - Fork 2
/
ABKeyManager.h
37 lines (27 loc) · 1.23 KB
/
ABKeyManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// ABKeyManager.h
// ABKeyManager
//
// Created by Robert Goldsmith on Sun Mar 07 2004.
// Copyright (c) 2004 Far-Blue. All rights reserved.
//
#import <AddressBook/AddressBook.h>
@interface ABKeyManager : NSObject
{}
+(void)initialize;
//********************************************************************
//Address Book stuff
// Returns the property this action is for.
- (NSString *)actionProperty;
// Returns the title for this action. The current person is passed in as person.
// If the actionProperty is a multiValue type, identifier will contain the identifier
// of the item the user rolled over. If the actionProperty is not a multiValue type
// identifier will be nil.
- (NSString *)titleForPerson:(ABPerson *)person identifier:(NSString *)identifier;
// This method is called when the user selects your action. As above, this method
// is passed information about the data item rolled over.
- (void)performActionForPerson:(ABPerson *)person identifier:(NSString *)identifier;
// Optional. Your action will always be enabled in the absence of this method. As
// above, this method is passed information about the data item rolled over.
- (BOOL)shouldEnableActionForPerson:(ABPerson *)person identifier:(NSString *)identifier;
@end