1 | /* |
---|
2 | * Adium is the legal property of its developers, whose names are listed in the copyright file included |
---|
3 | * with this source distribution. |
---|
4 | * |
---|
5 | * This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
---|
6 | * General Public License as published by the Free Software Foundation; either version 2 of the License, |
---|
7 | * or (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
---|
10 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
---|
11 | * Public License for more details. |
---|
12 | * |
---|
13 | * You should have received a copy of the GNU General Public License along with this program; if not, |
---|
14 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
15 | */ |
---|
16 | |
---|
17 | |
---|
18 | #define CONTACT_ALERTS_DETAILS_FOR_HEADER_CHANGED @"ContactAlertDetailsForHeaderChanged" |
---|
19 | |
---|
20 | @class AIVariableHeightFlexibleColumnsOutlineView, AIListObject, AIAutoScrollView; |
---|
21 | |
---|
22 | @interface ESContactAlertsViewController : NSObject { |
---|
23 | IBOutlet NSView *view; |
---|
24 | |
---|
25 | IBOutlet AIVariableHeightFlexibleColumnsOutlineView *outlineView_summary; |
---|
26 | |
---|
27 | NSMutableArray *contactAlertsEvents; |
---|
28 | NSMutableArray *contactAlertsActions; |
---|
29 | |
---|
30 | NSMutableDictionary *expandStateDict; |
---|
31 | NSMutableDictionary *requiredHeightDict; |
---|
32 | |
---|
33 | IBOutlet NSButton *button_add; |
---|
34 | IBOutlet NSButton *button_delete; |
---|
35 | IBOutlet NSButton *button_edit; |
---|
36 | |
---|
37 | AIListObject *listObject; |
---|
38 | |
---|
39 | id delegate; |
---|
40 | |
---|
41 | BOOL configureForGlobal; |
---|
42 | BOOL showEventsInEditSheet; |
---|
43 | |
---|
44 | NSString *targetEventID; |
---|
45 | } |
---|
46 | |
---|
47 | - (void)configureForListObject:(AIListObject *)inObject; |
---|
48 | - (void)configureForListObject:(AIListObject *)inObject showingAlertsForEventID:(NSString *)inTargetEventID; |
---|
49 | |
---|
50 | - (IBAction)addAlert:(id)sender; |
---|
51 | - (IBAction)editAlert:(id)sender; |
---|
52 | - (IBAction)deleteAlert:(id)sender; |
---|
53 | |
---|
54 | - (void)setDelegate:(id)inDelegate; |
---|
55 | - (id)delegate; |
---|
56 | |
---|
57 | - (void)setConfigureForGlobal:(BOOL)inConfigureForGlobal; |
---|
58 | - (void)setShowEventsInEditSheet:(BOOL)inShowEventsInEditSheet; |
---|
59 | |
---|
60 | - (void)viewWillClose; |
---|
61 | |
---|
62 | @end |
---|
63 | |
---|
64 | @interface NSObject (ESContactAlertsViewControllerDelegate) |
---|
65 | |
---|
66 | //Delegate is notified with the new and old alert dictionaries when the user makes a change |
---|
67 | - (void)contactAlertsViewController:(ESContactAlertsViewController *)inController |
---|
68 | updatedAlert:(NSDictionary *)newAlert |
---|
69 | oldAlert:(NSDictionary *)oldAlert; |
---|
70 | |
---|
71 | //Delegate is notified with the deleted dictionary when the user deletes an alert |
---|
72 | - (void)contactAlertsViewController:(ESContactAlertsViewController *)inController |
---|
73 | deletedAlert:(NSDictionary *)deletedAlert; |
---|
74 | @end |
---|
75 | |
---|
76 | @interface NSObject (AIActionHandlerOptionalMethods) |
---|
77 | - (void)performPreviewForAlert:(NSDictionary *)alert; |
---|
78 | @end |
---|