Debian Codegraph @

components/verifier/accuraterip/config.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2023 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_ACCURATERIPCONFIG
14 #define H_ACCURATERIPCONFIG
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20 using namespace smooth::GUI;
21
22 using namespace BoCA;
23
24 namespace BoCA
25 {
26 class ConfigureAccurateRip : public ConfigLayer
27 {
28 private:
29 GroupBox *group_settings;
30 CheckBox *check_enabled;
31
32 Text *text_path;
33 EditBox *edit_path;
34 List *list_path;
35
36 GroupBox *group_drives;
37 Text *text_drive;
38 ComboBox *combo_drive;
39 Text *text_status;
40 Text *text_status_value;
41 Text *text_drivedb;
42 Text *text_drivedb_offset;
43 Text *text_detected;
44 Text *text_detected_offset;
45 Text *text_configured;
46 Text *text_configured_offset;
47 Button *button_configure;
48
49 GroupBox *group_cache;
50 CheckBox *check_cache;
51 Text *text_expire;
52 Slider *slider_expire;
53 Text *text_expire_value;
54
55 GroupBox *group_options;
56 CheckBox *check_notify_missing;
57 CheckBox *check_notify_success;
58
59 Bool enableAccurateRip;
60
61 Bool enableCache;
62 Int expireCache;
63
64 String selectedDrivePath;
65
66 Bool notifyMissing;
67 Bool notifySuccess;
68
69 Void UpdateDriveList();
70
71 Int CacheDaysToIndex(Int);
72 Int CacheIndexToDays(Int);
73 slots:
74 Void ToggleEnabled();
75
76 Void ToggleCache();
77 Void SetExpireTime();
78
79 Void SelectDrive();
80 Void DetectOffset();
81 public:
82 static const String ConfigID;
83 static const String ConfigCategoryRipperID;
84
85 static const String ConfigEnabledID;
86 static const Bool ConfigEnabledDefault;
87
88 static const String ConfigPathID;
89 static const String ConfigPathDefault;
90
91 static const String ConfigEnableCacheID;
92 static const Bool ConfigEnableCacheDefault;
93
94 static const String ConfigExpireCacheID;
95 static const Int ConfigExpireCacheDefault;
96
97 static const String ConfigNotifyMissingEntryID;
98 static const Bool ConfigNotifyMissingEntryDefault;
99
100 static const String ConfigNotifySuccessID;
101 static const Bool ConfigNotifySuccessDefault;
102
103 static const String ResourcesFolder;
104
105 ConfigureAccurateRip();
106 ~ConfigureAccurateRip();
107
108 Int SaveSettings();
109 };
110 };
111
112 #endif