Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630189
AbstractProcess.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
829 B
Referenced Files
None
Subscribers
None
AbstractProcess.h
View Options
#ifndef ABSTRACTPROCESS_H
#define ABSTRACTPROCESS_H
#include
<QObject>
#include
<QVariant>
#include
<functional>
class
QString
;
class
AbstractPtyProcess
:
public
QObject
{
Q_OBJECT
protected
:
QString
change_dir
;
QVariant
user_data
;
public
:
void
setChangeDir
(
QString
const
&
dir
);
void
setVariant
(
QVariant
const
&
userdata
);
QVariant
const
&
userVariant
()
const
;
virtual
bool
isRunning
()
const
=
0
;
virtual
void
writeInput
(
char
const
*
ptr
,
int
len
)
=
0
;
virtual
int
readOutput
(
char
*
ptr
,
int
len
)
=
0
;
virtual
void
start
(
QString
const
&
cmd
,
QVariant
const
&
userdata
=
QVariant
())
=
0
;
virtual
bool
wait
(
unsigned
long
time
=
ULONG_MAX
)
=
0
;
virtual
void
stop
()
=
0
;
virtual
int
getExitCode
()
const
=
0
;
virtual
QString
getMessage
()
const
=
0
;
signals
:
void
completed
(
bool
,
QVariant
);
};
#endif
// ABSTRACTPROCESS_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 8:53 AM (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121746
Default Alt Text
AbstractProcess.h (829 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline