Changeset View
Changeset View
Standalone View
Standalone View
src/util/externalcommandhelper.h
Show All 29 Lines | |||||
30 | class ExternalCommandHelper : public QObject | 30 | class ExternalCommandHelper : public QObject | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | Q_CLASSINFO("D-Bus Interface", "org.kde.kpmcore.externalcommand") | 33 | Q_CLASSINFO("D-Bus Interface", "org.kde.kpmcore.externalcommand") | ||
34 | 34 | | |||
35 | Q_SIGNALS: | 35 | Q_SIGNALS: | ||
36 | void progress(int percent); | 36 | void progress(int percent); | ||
37 | void reportProgress(const QVariantMap& progress); | 37 | void reportProgress(const QVariantMap& progress); | ||
38 | // remove above signals later on | ||||
38 | 39 | | |||
39 | public: | 40 | public: | ||
40 | bool readData(const QString& sourceDevice, QByteArray& buffer, const qint64 offset, const qint64 size); | 41 | bool readData(const QString& sourceDevice, QByteArray& buffer, const qint64 offset, const qint64 size); | ||
41 | bool writeData(const QString& targetDevice, const QByteArray& buffer, const qint64 offset); | 42 | bool writeData(const QString& targetDevice, const QByteArray& buffer, const qint64 offset); | ||
43 | void sendProgress(int percent); | ||||
44 | void sendProgress(QString message); | ||||
42 | 45 | | |||
43 | public Q_SLOTS: | 46 | public Q_SLOTS: | ||
44 | Q_SCRIPTABLE int helperMain(int argc, char **argv); | 47 | Q_SCRIPTABLE int helperMain(int argc, char **argv); | ||
45 | Q_SCRIPTABLE QVariantMap start(const QString& command, const QStringList& arguments, const QByteArray& input, const int processChannelMode); | 48 | Q_SCRIPTABLE QVariantMap start(const QString& command, const QStringList& arguments, const QByteArray& input, const int processChannelMode); | ||
46 | Q_SCRIPTABLE QVariantMap copyblocks(const QString& sourceDevice, const qint64 sourceFirstByte, const qint64 sourceLength, const QString& targetDevice, const qint64 targetFirstByte, const qint64 blockSize); | 49 | Q_SCRIPTABLE QVariantMap copyblocks(const QString& sourceDevice, const qint64 sourceFirstByte, const qint64 sourceLength, const QString& targetDevice, const qint64 targetFirstByte, const qint64 blockSize); | ||
47 | Q_SCRIPTABLE bool writeData(const QByteArray& buffer, const QString& targetDevice, const qint64 targetFirstByte); | 50 | Q_SCRIPTABLE bool writeData(const QByteArray& buffer, const QString& targetDevice, const qint64 targetFirstByte); | ||
48 | Q_SCRIPTABLE void exit(); | 51 | Q_SCRIPTABLE void exit(); | ||
49 | 52 | | |||
Show All 9 Lines |