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/AIStatusItem.h> |
---|
18 | |
---|
19 | //Keys used for storage and retrieval |
---|
20 | #define STATUS_STATUS_MESSAGE @"Status Message NSAttributedString" |
---|
21 | #define STATUS_HAS_AUTO_REPLY @"Has AutoReply" |
---|
22 | #define STATUS_AUTO_REPLY_IS_STATUS_MESSAGE @"AutoReply is Status Message" |
---|
23 | #define STATUS_AUTO_REPLY_MESSAGE @"AutoReply Message NSAttributedString" |
---|
24 | #define STATUS_STATUS_NAME @"Status Name" |
---|
25 | #define STATUS_SHOULD_FORCE_INITIAL_IDLE_TIME @"Should Force Initial Idle Time" |
---|
26 | #define STATUS_FORCED_INITIAL_IDLE_TIME @"Forced Initial Idle Time" |
---|
27 | #define STATUS_INVISIBLE @"Invisible" |
---|
28 | #define STATUS_MUTABILITY_TYPE @"Mutability Type" |
---|
29 | #define STATUS_MUTE_SOUNDS @"Mute Sounds" |
---|
30 | #define STATUS_SILENCE_GROWL @"Silence Growl" |
---|
31 | #define STATUS_SPECIAL_TYPE @"Special Type" |
---|
32 | |
---|
33 | typedef enum { |
---|
34 | AINoSpecialStatusType = 0, |
---|
35 | AINowPlayingSpecialStatusType |
---|
36 | } AISpecialStatusType; |
---|
37 | |
---|
38 | @interface AIStatus : AIStatusItem { |
---|
39 | NSString *filteredStatusMessage; |
---|
40 | } |
---|
41 | |
---|
42 | + (AIStatus *)status; |
---|
43 | + (AIStatus *)statusWithDictionary:(NSDictionary *)inDictionary; |
---|
44 | + (AIStatus *)statusOfType:(AIStatusType)inStatusType; |
---|
45 | |
---|
46 | - (NSAttributedString *)statusMessage; |
---|
47 | - (void)setStatusMessage:(NSAttributedString *)statusMessage; |
---|
48 | |
---|
49 | - (NSString *)statusMessageString; |
---|
50 | - (void)setStatusMessageString:(NSString *)statusMessageString; |
---|
51 | |
---|
52 | - (void)setFilteredStatusMessage:(NSString *)inFilteredStatusMessage; |
---|
53 | - (NSString *)statusMessageTooltipString; |
---|
54 | |
---|
55 | - (NSAttributedString *)autoReply; |
---|
56 | - (void)setAutoReply:(NSAttributedString *)autoReply; |
---|
57 | - (void)setAutoReplyString:(NSString *)autoReplyString; |
---|
58 | |
---|
59 | - (BOOL)hasAutoReply; |
---|
60 | - (void)setHasAutoReply:(BOOL)hasAutoReply; |
---|
61 | - (BOOL)autoReplyIsStatusMessage; |
---|
62 | - (void)setAutoReplyIsStatusMessage:(BOOL)autoReplyIsStatusMessage; |
---|
63 | |
---|
64 | - (NSString *)statusName; |
---|
65 | - (void)setStatusName:(NSString *)statusName; |
---|
66 | |
---|
67 | - (BOOL)shouldForceInitialIdleTime; |
---|
68 | - (void)setShouldForceInitialIdleTime:(BOOL)shouldForceInitialIdleTime; |
---|
69 | - (double)forcedInitialIdleTime; |
---|
70 | - (void)setForcedInitialIdleTime:(double)forcedInitialIdleTime; |
---|
71 | |
---|
72 | - (void)setMutabilityType:(AIStatusMutabilityType)mutabilityType; |
---|
73 | |
---|
74 | - (BOOL)mutesSound; |
---|
75 | - (void)setMutesSound:(BOOL)mutes; |
---|
76 | |
---|
77 | - (BOOL)silencesGrowl; |
---|
78 | - (void)setSilencesGrowl:(BOOL)silences; |
---|
79 | |
---|
80 | - (AISpecialStatusType)specialStatusType; |
---|
81 | - (void)setSpecialStatusType:(AISpecialStatusType)inSpecialStatusType; |
---|
82 | |
---|
83 | @end |
---|