view qt-interpreter.h @ 6:1b575145197e

interpreter is now a class instead of a namespace with functions
author John W. Eaton <jwe@octave.org>
date Thu, 23 May 2019 07:41:18 -0400
parents 54edd85237ab
children 04867eba6428
line wrap: on
line source

#if ! defined (calc_qt_interpreter_h)
#define calc_qt_interpreter_h 1

#include <QObject>
#include <QString>

#include "interpreter.h"

namespace calc
{
  class qt_interpreter : public QObject
  {
    Q_OBJECT

  public:

    qt_interpreter (void);

    ~qt_interpreter (void) = default;

    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);

  private:

    interpreter m_interpreter;
  };
}

#endif