mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 08:39:07 +00:00
48 lines
924 B
C
48 lines
924 B
C
|
// -*- C++ -*-
|
||
|
/**
|
||
|
* \file ProgressInterface.h
|
||
|
* This file is part of LyX, the document processor.
|
||
|
* Licence details can be found in the file COPYING.
|
||
|
*
|
||
|
* \author Peter Kümmel
|
||
|
*
|
||
|
* Full author contact details are available in file CREDITS.
|
||
|
*/
|
||
|
|
||
|
#ifndef LYX_SUPPORT_PROGRESSINTERFACE_H
|
||
|
#define LYX_SUPPORT_PROGRESSINTERFACE_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class QString;
|
||
|
|
||
|
namespace lyx {
|
||
|
namespace support {
|
||
|
|
||
|
|
||
|
class ProgressInterface
|
||
|
{
|
||
|
public:
|
||
|
virtual ~ProgressInterface() {}
|
||
|
|
||
|
virtual void processStarted(QString const &) = 0;
|
||
|
virtual void processFinished(QString const &) = 0;
|
||
|
virtual void appendMessage(QString const &) = 0;
|
||
|
virtual void appendError(QString const &) = 0;
|
||
|
virtual void clearMessages() = 0;
|
||
|
|
||
|
static void setInstance(ProgressInterface*);
|
||
|
static ProgressInterface* instance();
|
||
|
|
||
|
protected:
|
||
|
ProgressInterface() {}
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
} // namespace support
|
||
|
} // namespace lyx
|
||
|
|
||
|
#endif // LYX_SUPPORT_PROGRESSINTERFACE_H
|
||
|
|