forked from deskflow/deskflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made Bonjour install in another thread deskflow#4235
- Loading branch information
Xinyu Hou
committed
Nov 27, 2014
1 parent
af4817d
commit a0cc3d6
Showing
4 changed files
with
93 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* synergy -- mouse and keyboard sharing utility | ||
* Copyright (C) 2014 Synergy Si, Inc. | ||
* | ||
* This package is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* found in the file COPYING that should have accompanied this file. | ||
* | ||
* This package is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "CommandProcess.h" | ||
|
||
#include <QProcess> | ||
|
||
CommandProcess::CommandProcess(QString cmd, QStringList arguments) : | ||
m_Command(cmd), | ||
m_Arguments(arguments) | ||
{ | ||
} | ||
|
||
void CommandProcess::run() | ||
{ | ||
QProcess process; | ||
process.start(m_Command, m_Arguments); | ||
process.waitForFinished(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* synergy -- mouse and keyboard sharing utility | ||
* Copyright (C) 2014 Synergy Si, Inc. | ||
* | ||
* This package is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* found in the file COPYING that should have accompanied this file. | ||
* | ||
* This package is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef COMMANDTHREAD_H | ||
#define COMMANDTHREAD_H | ||
|
||
#include <QStringList> | ||
|
||
class CommandProcess : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
CommandProcess(QString cmd, QStringList arguments); | ||
|
||
public slots: | ||
void run(); | ||
|
||
private: | ||
QString m_Command; | ||
QStringList m_Arguments; | ||
}; | ||
|
||
#endif // COMMANDTHREAD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters