Debian Codegraph @

components/extension/notifier/config.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2018 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_NOTIFIER_CONFIG
14 #define H_NOTIFIER_CONFIG
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 #include "player.h"
20
21 using namespace smooth;
22 using namespace smooth::GUI;
23
24 using namespace BoCA;
25
26 namespace BoCA
27 {
28 class ConfigureNotifier : public ConfigLayer
29 {
30 private:
31 Player player;
32
33 GroupBox *group_notify;
34 CheckBox *check_notify;
35
36 CheckBox *check_sound;
37 EditBox *edit_soundfile;
38 List *list_soundfile;
39
40 Button *btn_browse;
41
42 Button *btn_preview;
43 Button *btn_stop;
44
45 CheckBox *check_message;
46 EditBox *edit_message;
47
48 CheckBox *check_time;
49 EditBox *edit_amount;
50 List *list_amount;
51 ComboBox *combo_units;
52
53 Bool enableNotifications;
54
55 Bool playSound;
56 Bool displayMessage;
57
58 Bool minimumDuration;
59 public:
60 static const String ConfigID;
61
62 static const String ResourcesFolder;
63 static const String DefaultMessage;
64
65 ConfigureNotifier();
66 ~ConfigureNotifier();
67
68 Int SaveSettings();
69 slots:
70 Void OnToggleNotifications();
71
72 Void OnBrowse();
73
74 Void OnPreview();
75 Void OnStop();
76 };
77 };
78
79 #endif