Debian Codegraph @

components/extension/youtube/config.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2017 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_YOUTUBE_CONFIG
14 #define H_YOUTUBE_CONFIG
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 ConfigureYouTube : public ConfigLayer
27 {
28 private:
29 GroupBox *group_auto;
30 CheckBox *check_auto_download;
31
32 GroupBox *group_downloads;
33 Text *text_max_downloads;
34 EditBox *edit_max_downloads;
35 Arrows *arrows_max_downloads;
36
37 GroupBox *group_files;
38 CheckBox *check_keep;
39
40 EditBox *edit_dir;
41 Button *button_browse;
42
43 Text *text_format;
44 ComboBox *combo_format;
45
46 Int maxDownloads;
47
48 Bool autoDownload;
49 Bool keepVideoFiles;
50 public:
51 static const String ConfigID;
52
53 ConfigureYouTube();
54 ~ConfigureYouTube();
55
56 Int SaveSettings();
57 slots:
58 Void EditMaxDownloads();
59 Void ArrowsMaxDownloads();
60
61 Void ToggleKeepFiles();
62
63 Void SelectOutputDir();
64 };
65 };
66
67 #endif