/***************************************************************************
                          LibraryScannerDlg.cpp  -  shows library scanning
                                                       progress
                             -------------------
    begin                : 11/27/2007
    copyright            : (C) 2007 Albert Santoni and Adam Davison
    email                : gamegod \a\t users.sf.net
***************************************************************************/

/***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************/


#ifndef LIBRARYSCANNERDLG_H
#define LIBRARYSCANNERDLG_H

#include <QThread>
#include <QtCore>
#include <QtGui>

class LibraryScannerDlg : public QWidget {
    Q_OBJECT
  public:
    LibraryScannerDlg(QWidget * parent = 0, Qt::WindowFlags f = 0);
    ~LibraryScannerDlg();

  public slots:
    void slotUpdate(QString path);
    void slotCancel();
    void slotScanFinished();

  signals:
    void scanCancelled();
    void progress(QString);

  private:
    // The path to the library on disk
    QString m_qLibraryPath;
    QTime m_timer;
    bool m_bCancelled;
};

#endif
