Put NSAutoreleasePool usage around other distributed notification observer methods
[adiumx.git] / Source / AIListController.h
blob854ceeadb9fe2acb2b6e7e715270d1629c326fea
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.
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.
17 #import <Adium/AIAbstractListController.h>
18 #import <Adium/AIContactControllerProtocol.h>
20 @class AIAbstractListController;
22 typedef enum {
23 AIDockToBottom_No = 0,
24 AIDockToBottom_VisibleFrame,
25 AIDockToBottom_TotalFrame
26 } AIDockToBottomType;
28 @interface AIListController : AIAbstractListController {
29 NSSize minWindowSize;
30 BOOL autoResizeVertically;
31 BOOL autoResizeHorizontally;
32 int maxWindowWidth;
33 int forcedWindowWidth;
35 AIDockToBottomType dockToBottomOfScreen;
37 BOOL needsAutoResize;
40 - (id)initWithContactList:(AIListObject<AIContainingObject> *)aContactList
41 inOutlineView:(AIListOutlineView *)inContactListView
42 inScrollView:(AIAutoScrollView *)inScrollView_contactList
43 delegate:(id<AIListControllerDelegate>)inDelegate;
45 - (AIListObject<AIContainingObject> *)contactList;
46 - (AIListOutlineView *)contactListView;
48 //Call to close down and release the listController
49 - (void)close;
51 - (void)contactListDesiredSizeChanged;
53 - (void)setMinWindowSize:(NSSize)inSize;
54 - (void)setMaxWindowWidth:(int)inWidth;
55 - (void)setAutoresizeHorizontally:(BOOL)flag;
56 - (void)setAutoresizeVertically:(BOOL)flag;
57 - (void)setForcedWindowWidth:(int)inWidth;
59 - (NSRect)_desiredWindowFrameUsingDesiredWidth:(BOOL)useDesiredWidth desiredHeight:(BOOL)useDesiredHeight;
61 - (void)contactOrderChanged:(NSNotification *)notification;
63 @end