mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 21:06:10 +00:00
33 lines
551 B
C++
33 lines
551 B
C++
#ifndef JUPYTERCONNECTION_H
|
|
#define JUPYTERCONNECTION_H
|
|
|
|
#include <QProcess>
|
|
#include "CommandServer.h"
|
|
|
|
class JupyterConnection : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
JupyterConnection(QObject *parent = nullptr);
|
|
~JupyterConnection();
|
|
|
|
void start();
|
|
|
|
signals:
|
|
void urlReceived(const QString &url);
|
|
|
|
private:
|
|
QProcess *process;
|
|
QProcess *urlProcess;
|
|
CommandServer *cmdServer;
|
|
|
|
private slots:
|
|
void readStandardError();
|
|
void readStandardOutput();
|
|
|
|
void readUrlStandardOutput();
|
|
};
|
|
|
|
#endif //JUPYTERCONNECTION_H
|