annotate data/fileio/ProgressPrinter.h @ 383:94fc0591ea43 1.2-stable

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