XX CMake Package
Loading...
Searching...
No Matches
XXShellClient.h
Go to the documentation of this file.
1#ifndef XXShellClientH
2#define XXShellClientH
3
4#include "XXCoreExportDef.h"
5
6#include <QObject>
7
8namespace XX
9{
12
14 {
15 public:
16 static QByteArray executeLocal(const QString& command, QByteArray* error = nullptr);
17 static QByteArray executeRemote(const QString& host, const QString& command, QByteArray* error = nullptr);
18
19 private:
20 static QByteArray execute(const QString& program, const QStringList& args, QByteArray* error);
21 };
22} // namespace XX
23
24#endif // NOT XXShellClientH
#define XXCORE_DECLSPEC
Definition XXCoreExportDef.h:11
execute shell commands locally or remotely via SSH
Definition XXShellClient.h:14
static QByteArray executeLocal(const QString &command, QByteArray *error=nullptr)
static QByteArray executeRemote(const QString &host, const QString &command, QByteArray *error=nullptr)
Definition XXPopulatedAbstract.h:11