mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
12efe108db
Still needs some fiddling with line endings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32670 a592a061-630c-0410-9148-cb99ea01b6c8
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
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
|
|
|
|
class QString;
|
|
|
|
namespace lyx {
|
|
namespace support {
|
|
|
|
|
|
class ProgressInterface
|
|
{
|
|
public:
|
|
virtual ~ProgressInterface() {}
|
|
|
|
/// will be Signals in Qt classes
|
|
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;
|
|
virtual void lyxerrFlush() = 0;
|
|
|
|
/// Alert interface
|
|
virtual void warning(QString const & title, QString const & message) = 0;
|
|
virtual void toggleWarning(QString const & title, QString const & msg, QString const & formatted) = 0;
|
|
virtual void error(QString const & title, QString const & message) = 0;
|
|
virtual void information(QString const & title, QString const & message) = 0;
|
|
|
|
virtual void lyxerrConnect() = 0;
|
|
virtual void lyxerrDisconnect() = 0;
|
|
|
|
static void setInstance(ProgressInterface*);
|
|
static ProgressInterface* instance();
|
|
|
|
protected:
|
|
ProgressInterface() {}
|
|
};
|
|
|
|
|
|
|
|
} // namespace support
|
|
} // namespace lyx
|
|
|
|
#endif // LYX_SUPPORT_PROGRESSINTERFACE_H
|
|
|