| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |