installcacic.cpp
722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "installcacic.h"
QCoreApplication *InstallCacic::getApp() const
{
return app;
}
void InstallCacic::setApp(const QCoreApplication &value)
{
app = value;
}
InstallCacic::InstallCacic(QObject *parent) :
QObject(parent)
{
}
void InstallCacic::runInstall()
{
QString argumento;
cout << "Testando argumentos" << endl;
argumento = "--host";
if (app.arguments().count() > 1){
for(int i=1;i<app.arguments().count();i++){
if (app.arguments().at(i) == argumento){
app.quit();
} else {
cout << app.arguments().at(i).toStdString() << endl;
}
}
app.exit(2);
} else {
app.exit(3);
}
}