annotate data/fileio/ProgressPrinter.h @ 384:6f6ab834449d spectrogram-cache-rejig

* Merge from trunk
author Chris Cannam
date Wed, 27 Feb 2008 11:59:42 +0000
parents
children
rev   line source
Chris@384 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@384 2
Chris@384 3 /*
Chris@384 4 Sonic Visualiser
Chris@384 5 An audio file viewer and annotation editor.
Chris@384 6 Centre for Digital Music, Queen Mary, University of London.
Chris@384 7 This file copyright 2007 QMUL.
Chris@384 8
Chris@384 9 This program is free software; you can redistribute it and/or
Chris@384 10 modify it under the terms of the GNU General Public License as
Chris@384 11 published by the Free Software Foundation; either version 2 of the
Chris@384 12 License, or (at your option) any later version. See the file
Chris@384 13 COPYING included with this distribution for more information.
Chris@384 14 */
Chris@384 15
Chris@384 16 #ifndef _PROGRESS_PRINTER_H_
Chris@384 17 #define _PROGRESS_PRINTER_H_
Chris@384 18
Chris@384 19 #include <QObject>
Chris@384 20 #include <QString>
Chris@384 21
Chris@384 22 class ProgressPrinter : public QObject
Chris@384 23 {
Chris@384 24 Q_OBJECT
Chris@384 25
Chris@384 26 public:
Chris@384 27 ProgressPrinter(QString prefix = "", QObject *parent = 0);
Chris@384 28 virtual ~ProgressPrinter();
Chris@384 29
Chris@384 30 public slots:
Chris@384 31 void progress(int);
Chris@384 32
Chris@384 33 protected:
Chris@384 34 QString m_prefix;
Chris@384 35 int m_lastProgress;
Chris@384 36 };
Chris@384 37
Chris@384 38 #endif