view qt-interpreter.h @ 5:54edd85237ab

use signal to send input to qt interpreter object
author John W. Eaton <jwe@octave.org>
date Wed, 22 May 2019 18:07:37 -0400
parents 0e154787183d
children 1b575145197e
line wrap: on
line source

#if ! defined (calc_qt_interpreter_h)
#define calc_qt_interpreter_h 1

#include <QObject>
#include <QString>

namespace calc
{
  class qt_interpreter : public QObject
  {
    Q_OBJECT

  public:

    qt_interpreter (void);

    ~qt_interpreter (void);

    qt_interpreter (const qt_interpreter&) = delete;

    qt_interpreter& operator = (const qt_interpreter&) = delete;

  public slots:

    void execute (void);

    void accept_input_line (const QString& line);
  };
}

#endif