![]() |
Mixxx
|
00001 /*************************************************************************** 00002 LibraryScannerDlg.cpp - shows library scanning 00003 progress 00004 ------------------- 00005 begin : 11/27/2007 00006 copyright : (C) 2007 Albert Santoni and Adam Davison 00007 email : gamegod \a\t users.sf.net 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 00020 #ifndef LIBRARYSCANNERDLG_H 00021 #define LIBRARYSCANNERDLG_H 00022 00023 #include <QThread> 00024 #include <QtCore> 00025 #include <QtGui> 00026 00027 class LibraryScannerDlg : public QWidget { 00028 Q_OBJECT 00029 public: 00030 LibraryScannerDlg(QWidget * parent = 0, Qt::WindowFlags f = 0); 00031 ~LibraryScannerDlg(); 00032 00033 public slots: 00034 void slotUpdate(QString path); 00035 void slotCancel(); 00036 void slotScanFinished(); 00037 00038 signals: 00039 void scanCancelled(); 00040 void progress(QString); 00041 00042 private: 00043 // The path to the library on disk 00044 QString m_qLibraryPath; 00045 QTime m_timer; 00046 bool m_bCancelled; 00047 }; 00048 00049 #endif