Source code: com/lilacsoftware/orca/Constants.java
1 /*
2 * ____________________________________________________________________________
3 * Orca - Audio System
4 * Copyright (C) 2001 Tom Wadzinski <orca_twadzins@yahoo.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 * ____________________________________________________________________________
17 */
18 package com.lilacsoftware.orca;
19
20 /**
21 * constants for the Server portion of the application.
22 *
23 *@author Tom Wadzinski
24 *@created November 15, 2001
25 *@version
26 */
27
28 public final class Constants
29 {
30
31 /**
32 * Description of the Field
33 *
34 *@since
35 */
36 public final static String APPNAME = "orca";
37 /**
38 * Description of the Field
39 *
40 *@since
41 */
42 public final static String APPDIR = "orca";
43 /**
44 * Description of the Field
45 *
46 *@since
47 */
48 public final static String APPPROPFILE = "app.properties";
49
50 /**
51 * The application scope attribute under which our Hashtable of Users is
52 * stored.
53 *
54 *@since
55 */
56 public final static String DATABASE_KEY = "database";
57
58 /**
59 * Description of the Field
60 *
61 *@since
62 */
63 public final static String DATARETRIEVER_KEY = "dataretriever";
64 /**
65 * Description of the Field
66 *
67 *@since
68 */
69 public final static String LOCALAUDIOSYSTEM_KEY = "localaudiosystem";
70 /**
71 * Description of the Field
72 *
73 *@since
74 */
75 public final static String ADMINPROPERTIESBEAN_KEY = "adminpropertiesbean";
76
77 /**
78 * Description of the Field
79 *
80 *@since
81 */
82 public final static int TRANSITIONTIMESECONDS = -7;
83 /**
84 * Description of the Field
85 *
86 *@since
87 */
88 public final static String JMFMIXINGSOUNDSYSTEM = "com.lilacsoftware.orca.AudioManager.JMFMixingAudioSystem";
89 /**
90 * Description of the Field
91 *
92 *@since
93 */
94 public final static String JMFSOUNDSYSTEM = "com.lilacsoftware.orca.AudioManager.JMFAudioSystem";
95 /**
96 * Description of the Field
97 *
98 *@since
99 */
100 public final static String FREEAMPMPG123SOUNDSYSTEM = "com.lilacsoftware.orca.AudioManager.FreeampMPG123AudioSystem";
101 /**
102 * Description of the Field
103 *
104 *@since
105 */
106 public final static int FULLRESPONSEINTERVAL = 3;
107 /**
108 * Description of the Field
109 *
110 *@since
111 */
112 public final static int FULLCOMMANDTYPE = 1;
113 /**
114 * Description of the Field
115 *
116 *@since
117 */
118 public final static int UPDATECOMMANDTYPE = 2;
119
120 /**
121 * The session scope attribute under which the Subscription object
122 * currently selected by our logged-in User is stored.
123 *
124 *@since
125 */
126 public final static String SUBSCRIPTION_KEY = "subscription";
127
128 /**
129 * AudioSystemEvent IDs
130 *
131 *@since
132 */
133 public final static int TRACKCHANGEDEVENT = 1;
134
135 /**
136 * The session scope attribute under which the User object for the
137 * currently logged in user is stored.
138 *
139 *@since
140 */
141 public final static String USER_KEY = "user";
142
143 /**
144 * Description of the Field
145 *
146 *@since
147 */
148 public final static String STARTUPPLAYLISTNAME = "startupPlaylist.playlist";
149
150 /**
151 * Description of the Field
152 *
153 *@since
154 */
155 public final static int TRACKHASHTOKENS = 6;
156
157 /**
158 * The maximum value for setting the current media position 0 represents
159 * the beginning of the track, and GOTOMAX represents the end of the track.
160 *
161 *@since
162 */
163 public final static int GOTOMAX = 10000;
164
165 /**
166 * Player states
167 *
168 *@since
169 */
170 public final static int STOPPED = 1;
171 /**
172 * Description of the Field
173 *
174 *@since
175 */
176 public final static int PAUSED = 2;
177 /**
178 * Description of the Field
179 *
180 *@since
181 */
182 public final static int STARTED = 3;
183
184 /**
185 * File formats
186 *
187 *@since
188 */
189 public final static int MP3FORMAT = 1;
190 /**
191 * Description of the Field
192 *
193 *@since
194 */
195 public final static int VORBISFORMAT = 2;
196
197 /**
198 * Description of the Field
199 *
200 *@since
201 */
202 public final static int XMMSNEEDNEWSONGEVENT = 1;
203 /**
204 * Description of the Field
205 *
206 *@since
207 */
208 public final static int XMMSONDECKCHANGEDEVENT = 2;
209
210 }
211