Prevent sending 0-byte files. Fixes #8711.
[adiumx.git] / Source / ESGlobalEventsPreferencesPlugin.h
blob18ab39c90cfca040f1b6ea9e00ba8b0894be13ef
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/AIPlugin.h>
19 #define SOUND_ALERT_IDENTIFIER @"PlaySound"
20 #define KEY_EVENT_SOUND_SET @"Event Sound Set"
21 #define KEY_ALERT_SOUND_PATH @"SoundPath"
23 #define PREF_GROUP_AIDockBehavior @"DockBehavior"
24 #define DOCK_BEHAVIOR_ALERT_IDENTIFIER @"BounceDockIcon"
25 #define KEY_DOCK_ACTIVE_BEHAVIOR_SET @"Active Behavior Set"
27 #define PREF_GROUP_ANNOUNCER @"Announcer"
28 #define KEY_SPEECH_ACTIVE_PRESET @"Active Speech Preset"
29 #define SPEAK_EVENT_ALERT_IDENTIFIER @"SpeakEvent"
31 #define PREF_GROUP_GROWL @"Growl"
32 #define KEY_GROWL_ACTIVE_PRESET @"Active Growl Preset"
34 #define GROWL_EVENT_ALERT_IDENTIFIER @"Growl"
36 #define PREF_GROUP_EVENT_PRESETS @"Event Presets"
37 #define KEY_ACTIVE_EVENT_SET @"Active Event Set"
39 @class ESGlobalEventsPreferences, AISoundSet;
41 @interface ESGlobalEventsPreferencesPlugin : AIPlugin {
42 ESGlobalEventsPreferences *preferences;
44 NSDictionary *builtInEventPresets;
45 NSMutableDictionary *storedEventPresets;
48 //Activation
49 - (void)setEventPreset:(NSDictionary *)preset;
51 //Storage
52 - (void)saveEventPreset:(NSMutableDictionary *)eventPreset;
53 - (void)deleteEventPreset:(NSDictionary *)eventPreset;
55 - (NSDictionary *)builtInEventPresets;
56 - (NSArray *)builtInEventPresetsArray;
58 - (NSDictionary *)storedEventPresets;
59 - (NSArray *)storedEventPresetsArray;
61 + (NSDictionary *)soundAlertForKey:(NSString *)key inSoundsDict:(NSDictionary *)sounds;
62 - (void)applySoundSet:(AISoundSet *)soundSet;
64 - (float)nextOrderIndex;
66 @end