blob: aa94b5f344c69f9a3cf2084f5cfb71aaedafc6c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef FQTERM_LOCAL_SOCKET_H
#define FQTERM_LOCAL_SOCKET_H
#include "fqterm_socket.h"
namespace FQTerm {
class FQTermLocalSocket: public FQTermSocket {
Q_OBJECT;
private:
QProcess* shell_process_;
public:
FQTermLocalSocket();
~FQTermLocalSocket();
void flush(){}
void setProxy(int nProxyType, bool bAuth, const QString &strProxyHost,
quint16 uProxyPort, const QString &strProxyUsr,
const QString &strProxyPwd){}
void connectToHost(const QString &host, quint16 port);
void close();
QByteArray readBlock(unsigned long maxlen);
long writeBlock(const QByteArray &data);
unsigned long bytesAvailable();
public slots:
void stateChanged(QProcess::ProcessState newState);
void finished (int exitCode, QProcess::ExitStatus exitStatus);
};
}
#endif
|