Debian Codegraph @

include/dialogs/cddb/query.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_QUERY
14 #define H_FREAC_CDDB_QUERY
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 cddbQueryDlg : public Dialogs::Dialog
27 {
28 private:
29 Window *mainWnd;
30 Titlebar *mainWnd_titlebar;
31
32 Text *text_status;
33 Progressbar *prog_status;
34 Button *btn_cancel;
35
36 Bool errorState;
37 String errorString;
38
39 CDDBInfo cddbInfo;
40 String queryString;
41
42 Threads::Thread *queryThread;
43 Bool stopQueryThread;
44
45 Int QueryThread();
46 Bool Query(CDDB &);
47 public:
48 static CDDBInfo QueryCDDB(const BoCA::Track &, Bool = False);
49
50 cddbQueryDlg(const String &);
51 ~cddbQueryDlg();
52
53 const Error &ShowDialog();
54 accessors:
55 Bool GetErrorState() const { return errorState; }
56 const String &GetErrorString() const { return errorString; }
57
58 const CDDBInfo &GetCDDBInfo() const { return cddbInfo; }
59 slots:
60 Void Cancel();
61 };
62 };
63
64 #endif