root/Trunk/Adium.framework/Versions/A/Headers/AISortController.h @ 2

Revision 2, 2.0 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
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@class AIListObject, AIAdium;
18
19typedef int(*sortfunc)(id, id, BOOL);
20
21#define PREF_GROUP_CONTACT_SORTING                      @"Sorting"
22
23@interface AISortController : NSSortDescriptor {
24        NSSet                                   *statusKeysRequiringResort;
25        NSSet                                   *attributeKeysRequiringResort;
26        BOOL                                    alwaysSortGroupsToTop;
27       
28        sortfunc                                sortFunction;
29       
30        IBOutlet        NSView          *configureView;
31       
32        BOOL                                    becameActiveFirstTime;
33}
34
35- (BOOL)shouldSortForModifiedStatusKeys:(NSSet *)inModifiedKeys;
36- (BOOL)shouldSortForModifiedAttributeKeys:(NSSet *)inModifiedKeys;
37- (BOOL)alwaysSortGroupsToTopByDefault;
38- (int)indexForInserting:(AIListObject *)inObject intoObjects:(NSArray *)inObjects;
39- (NSArray *)sortListObjects:(NSArray *)inObjects;
40- (NSView *)configureView;
41- (void)forceIgnoringOfGroups:(BOOL)shouldForce;
42- (BOOL)canSortManually;
43
44//For subclasses to override
45- (NSString *)identifier;
46- (NSString *)displayName;
47- (NSSet *)statusKeysRequiringResort;
48- (NSSet *)attributeKeysRequiringResort;
49- (sortfunc)sortFunction;
50- (NSString *)configureSortMenuItemTitle;
51- (NSString *)configureSortWindowTitle;
52- (NSString *)configureNibName;
53- (void)viewDidLoad;
54- (IBAction)changePreference:(id)sender;
55- (void)didBecomeActive;
56- (void)didBecomeActiveFirstTime;
57
58@end
Note: See TracBrowser for help on using the browser.