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 | #import <Adium/AIContentObject.h> |
---|
18 | |
---|
19 | #define CONTENT_STATUS_TYPE @"Status" //Type ID for this content |
---|
20 | |
---|
21 | @interface AIContentStatus : AIContentObject { |
---|
22 | NSString *statusType; |
---|
23 | NSAttributedString *loggedMessage; |
---|
24 | NSString *coalescingKey; |
---|
25 | } |
---|
26 | |
---|
27 | + (id)statusInChat:(AIChat *)inChat |
---|
28 | withSource:(id)inSource |
---|
29 | destination:(id)inDest |
---|
30 | date:(NSDate *)inDate |
---|
31 | message:(NSAttributedString *)inMessage |
---|
32 | withType:(NSString *)inType; |
---|
33 | - (NSString *)status; |
---|
34 | |
---|
35 | - (void)setLoggedMessage:(NSAttributedString *)inLoggedMessage; |
---|
36 | - (NSAttributedString *)loggedMessage; |
---|
37 | |
---|
38 | /*! |
---|
39 | * @brief Set a key on which multple status messages should be consolidated if possible |
---|
40 | * |
---|
41 | * The message view can choose to collapse multiple consecutive status messages into a single |
---|
42 | * or combined display if those messages have the same coalescing key. |
---|
43 | */ |
---|
44 | - (void)setCoalescingKey:(NSString *)inCoalescingKey; |
---|
45 | |
---|
46 | /*! |
---|
47 | * @brief Retrieve the coalescing key. |
---|
48 | * |
---|
49 | * See -[self setCoalescingKey:] for details |
---|
50 | */ |
---|
51 | - (NSString *)coalescingKey; |
---|
52 | |
---|
53 | @end |
---|