mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 06:58:27 +02:00
303ecf298a
This way, we can launch console applications from the Explorer.
24 lines
373 B
C++
24 lines
373 B
C++
#ifndef LAUNCHER_H
|
|
#define LAUNCHER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
|
|
class Launcher
|
|
{
|
|
public:
|
|
Launcher(std::vector<std::string> const& commandLine,
|
|
bool consoleApp = true);
|
|
Launcher(std::vector<std::string> && commandLine,
|
|
bool consoleApp = true);
|
|
|
|
void exec();
|
|
|
|
private:
|
|
std::vector<std::string> commandLine;
|
|
bool consoleApp;
|
|
};
|
|
|
|
#endif // LAUNCHER_H
|