Automatically disable the Delete button in the Xtras Manager if no item is selected...
[adiumx.git] / Source / AIChatLog.h
blobb8b9c297822f53aeccf70e397f6fdb2ce95e8cec
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 @interface AIChatLog : NSObject {
18 NSString *path;
19 NSString *from;
20 NSString *to;
21 NSString *serviceClass;
22 NSDate *date;
23 float rankingPercentage;
24 float rankingValue;
27 - (id)initWithPath:(NSString *)inPath from:(NSString *)inFrom to:(NSString *)inTo serviceClass:(NSString *)inServiceClass;
28 - (id)initWithPath:(NSString *)inPath;
30 //Accessors
31 - (NSString *)path;
32 - (NSString *)from;
33 - (NSString *)to;
34 - (NSString *)serviceClass;
35 - (NSDate *)date;
36 - (float)rankingPercentage;
37 - (void)setRankingPercentage:(float)inRankingPercentage;
38 - (float)rankingValueOnArbitraryScale;
39 - (void)setRankingValueOnArbitraryScale:(float)inRankingValue;
41 //Comparisons
42 - (BOOL)isFromSameDayAsDate:(NSCalendarDate *)inDate;
43 - (NSComparisonResult)compareTo:(AIChatLog *)inLog;
44 - (NSComparisonResult)compareToReverse:(AIChatLog *)inLog;
45 - (NSComparisonResult)compareFrom:(AIChatLog *)inLog;
46 - (NSComparisonResult)compareFromReverse:(AIChatLog *)inLog;
47 - (NSComparisonResult)compareDate:(AIChatLog *)inLog;
48 - (NSComparisonResult)compareDateReverse:(AIChatLog *)inLog;
50 @end