Debian Codegraph @

include/dialogs/cddb/multimatch.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2020 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_FREAC_CDDB_MULTIMATCH
14 #define H_FREAC_CDDB_MULTIMATCH
15
16 #include <smooth.h>
17
18 using namespace smooth;
19 using namespace smooth::GUI;
20
21 #include <cddb/cddb.h>
22 #include <cddb/cddbinfo.h>
23
24 namespace freac
25 {
26 class cddbMultiMatchDlg : public Dialogs::Dialog
27 {
28 private:
29 static Int previewCount;
30
31 GroupBox *group_match;
32 Text *text_match;
33 ComboBox *combo_match;
34
35 Text *text_preview;
36 MultiEdit *edit_preview;
37 Text *text_loading_preview;
38
39 Divider *divbar;
40
41 Window *mainWnd;
42 Titlebar *mainWnd_titlebar;
43
44 Button *btn_cancel;
45 Button *btn_ok;
46
47 CDDB &cddb;
48
49 Array<String> categories;
50 Array<UnsignedInt32> discIDs;
51
52 Array<Threads::Thread *, Void *> loadPreviewThreads;
53
54 Void LoadPreview(Int);
55 Void CleanUpPreviews();
56 public:
57 cddbMultiMatchDlg(CDDB &, Bool);
58 ~cddbMultiMatchDlg();
59
60 const Error &ShowDialog();
61
62 Int AddEntry(const String &, const String &, UnsignedInt32);
63 Int GetSelectedEntryNumber() const;
64 slots:
65 Void OnChangeSize(const Size &);
66
67 Void SelectEntry();
68
69 Void OK();
70 Void Cancel();
71 };
72 };
73
74 #endif