diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2015-04-25 16:17:41 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2015-04-25 16:17:41 +0200 |
commit | 45ee5ac6dc2159352596ce8e8ec744e0c864d492 (patch) | |
tree | 55ca90fd4a0d5c0eae188c5919510b6b0d2e3c5d /src/myprocess.h | |
parent | a35c74c509f107094fd81cee8df109b652063969 (diff) |
Imported Upstream version 14.9.0.6690~ds0
Diffstat (limited to 'src/myprocess.h')
-rw-r--r-- | src/myprocess.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/myprocess.h b/src/myprocess.h index 063c8e4..4737a96 100644 --- a/src/myprocess.h +++ b/src/myprocess.h @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> + Copyright (C) 2006-2015 Ricardo Villalba <rvm@users.sourceforge.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,7 +42,10 @@ class MyProcess : public QProcess public: MyProcess ( QObject * parent = 0 ); - void addArgument(const QString & a); //!< Add an argument + virtual void setExecutable(const QString & p) { program = p; }; + QString executable() { return program; }; + + virtual void addArgument(const QString & a); //!< Add an argument void clearArguments(); //!< Clear the list of arguments QStringList arguments(); //!< Return the list of arguments @@ -68,7 +71,7 @@ protected: //! Called from readStdOut() and readTmpFile() to do all the work void genericRead(QByteArray buffer); -private: +protected: QString program; QStringList arg; |