Changeset View
Changeset View
Standalone View
Standalone View
src/util/externalcommand.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
63 | 63 | | |||
64 | public: | 64 | public: | ||
65 | explicit ExternalCommand(const QString& cmd = QString(), const QStringList& args = QStringList(), const QProcess::ProcessChannelMode processChannelMode = QProcess::MergedChannels); | 65 | explicit ExternalCommand(const QString& cmd = QString(), const QStringList& args = QStringList(), const QProcess::ProcessChannelMode processChannelMode = QProcess::MergedChannels); | ||
66 | explicit ExternalCommand(Report& report, const QString& cmd = QString(), const QStringList& args = QStringList(), const QProcess::ProcessChannelMode processChannelMode = QProcess::MergedChannels); | 66 | explicit ExternalCommand(Report& report, const QString& cmd = QString(), const QStringList& args = QStringList(), const QProcess::ProcessChannelMode processChannelMode = QProcess::MergedChannels); | ||
67 | 67 | | |||
68 | ~ExternalCommand(); | 68 | ~ExternalCommand(); | ||
69 | 69 | | |||
70 | public: | 70 | public: | ||
71 | bool copyBlocks(CopySource& source, CopyTarget& target); | 71 | bool copyBlocks(const CopySource& source, CopyTarget& target); | ||
72 | bool writeData(Report& report, const QByteArray& buffer, const QString& deviceNode, const quint64 firstByte); // same as copyBlocks but from QByteArray | 72 | bool writeData(Report& commandReport, const QByteArray& buffer, const QString& deviceNode, const quint64 firstByte); // same as copyBlocks but from QByteArray | ||
73 | 73 | | |||
74 | /**< @param cmd the command to run */ | 74 | /**< @param cmd the command to run */ | ||
75 | void setCommand(const QString& cmd); | 75 | void setCommand(const QString& cmd); | ||
76 | /**< @return the command to run */ | 76 | /**< @return the command to run */ | ||
77 | const QString& command() const; | 77 | const QString& command() const; | ||
78 | 78 | | |||
79 | /**< @return the arguments */ | 79 | /**< @return the arguments */ | ||
80 | const QStringList& args() const; | 80 | const QStringList& args() const; | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |