121
|
1 /*
|
|
2 * $Id: alarm.h,v 1.2 2003/11/23 19:29:36 adamf Exp $
|
|
3 * alarm.h
|
|
4 *
|
|
5 * Adam Feakin
|
|
6 * adamf@snika.uklinux.net
|
|
7 *
|
|
8 * we need some struct to hold the info about the days
|
|
9 */
|
|
10 #ifndef __ALARM_H
|
|
11 #define __ALARM_H
|
|
12
|
|
13 #include "config.h"
|
|
14
|
|
15 #include <gtk/gtk.h>
|
|
16
|
|
17 /* flags */
|
|
18 #define ALARM_OFF (1 << 0)
|
|
19 #define ALARM_DEFAULT (1 << 1)
|
|
20
|
|
21 /* defaults */
|
|
22 #define DEFAULT_ALARM_HOUR 06
|
|
23 #define DEFAULT_ALARM_MIN 30
|
|
24 #define DEFAULT_STOP_HOURS 01
|
|
25 #define DEFAULT_STOP_MINS 00
|
|
26 #define DEFAULT_VOLUME 80
|
|
27 #define DEFAULT_FADING 60
|
|
28 #define DEFAULT_QUIET_VOL 25
|
|
29 #define DEFAULT_FLAGS ALARM_DEFAULT
|
|
30
|
|
31 /* debug ? */
|
|
32 #ifdef ENABLE_DEBUG
|
|
33 # define DEBUG( args... ) fprintf( stderr, args )
|
|
34 #else
|
|
35 # define DEBUG( args... )
|
|
36 #endif
|
|
37
|
|
38
|
|
39 typedef struct AlarmDay {
|
|
40 GtkCheckButton *cb;
|
|
41 GtkCheckButton *cb_def;
|
|
42 GtkSpinButton *spin_hr;
|
|
43 GtkSpinButton *spin_min;
|
|
44 int flags;
|
|
45 int hour;
|
|
46 int min;
|
|
47 } alarmday;
|
|
48
|
|
49
|
|
50 typedef struct Fader {
|
|
51 guint start, end;
|
|
52 } fader;
|
|
53
|
|
54
|
|
55 #endif /* __ALARM_H */
|
|
56 /*
|
|
57 * vi:ai:expandtab:ts=2 sts=2 shiftwidth=2:nowrap:
|
|
58 */
|