22 #ifndef _MYTHSYSTEMLEGACY_H_ 23 #define _MYTHSYSTEMLEGACY_H_ 52 #include <QStringList> 81 void SetCommand(
const QString &,
uint);
83 void SetCommand(
const QString &,
const QStringList &,
uint);
85 void SetDirectory(
const QString &);
87 bool SetNice(
int nice);
89 bool SetIOPrio(
int prio);
97 int Write(
const QByteArray&);
98 QByteArray Read(
int size);
99 QByteArray ReadErr(
int size);
101 QByteArray& ReadAll();
103 QByteArray& ReadAllErr();
106 void Term(
bool force =
false);
117 void HandlePreRun(
void);
119 void HandlePostRun(
void);
137 {
return m_settings.value(QString(setting)); }
156 QBuffer *
GetBuffer(
int index) {
return &m_stdbuff[index]; }
159 void Unlock(
void) { m_semReady.release(1); }
164 static QString ShellEscape(
const QString &str);
176 void initializePrivate(
void);
180 void ProcessFlags(
uint flags);
195 QBuffer m_stdbuff[3];
201 #endif // __cplusplus 205 #endif // __cplusplus 208 #endif // _MYTHSYSTEMLEGACY_H_ bool onlyLowExitVal(void)
MythSystemMask MythSystemFlag
QBuffer * GetBuffer(int index)
static void error(const char *str,...)
MythSystemLegacyPrivate * d
void SetArgs(QStringList &args)
QStringList & GetArgs(void)
QString & GetLogCmd(void)
void SetStatus(uint status)
void readDataReady(int fd)
void MBASE_PUBLIC ShutdownMythSystemLegacy(void)
MBASE_PUBLIC uint myth_system(const QString &command, uint flags=kMSNone, uint timeout=0)
QString & GetDirectory(void)
bool GetSetting(const char *setting)
void SetCommand(QString &cmd)
QMap< QString, bool > Setting_t
MBASE_PUBLIC uint myth_system_c(char *command, uint flags, uint timeout)
QString & GetCommand(void)