Commit 6c640b2a9c05cacf2aa5120c4987235565b65169
Exists in
master
Merge branch 'master' of https://github.com/lightbase/cacic-agente
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
install-cacic/installcacic.cpp
| @@ -7,6 +7,11 @@ InstallCacic::InstallCacic(QObject *parent) : | @@ -7,6 +7,11 @@ InstallCacic::InstallCacic(QObject *parent) : | ||
| 7 | logManager->addDestination("./log.txt","Install",QLogger::DebugLevel); | 7 | logManager->addDestination("./log.txt","Install",QLogger::DebugLevel); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | +InstallCacic::~InstallCacic() | ||
| 11 | +{ | ||
| 12 | + logManager->closeLogger(); | ||
| 13 | +} | ||
| 14 | + | ||
| 10 | void InstallCacic::run(QStringList argv, int argc) { | 15 | void InstallCacic::run(QStringList argv, int argc) { |
| 11 | 16 | ||
| 12 | QLogger::QLog_Debug("Install", "Inicio de instalacao"); | 17 | QLogger::QLog_Debug("Install", "Inicio de instalacao"); |
| @@ -65,7 +70,7 @@ void InstallCacic::run(QStringList argv, int argc) { | @@ -65,7 +70,7 @@ void InstallCacic::run(QStringList argv, int argc) { | ||
| 65 | << " [-help] Lista todos comandos.\n"; | 70 | << " [-help] Lista todos comandos.\n"; |
| 66 | } | 71 | } |
| 67 | 72 | ||
| 68 | - logManager->closeLogger(); | 73 | + |
| 69 | emit finished(); | 74 | emit finished(); |
| 70 | } | 75 | } |
| 71 | 76 |
install-cacic/installcacic.h
| @@ -14,6 +14,7 @@ class InstallCacic : public QObject | @@ -14,6 +14,7 @@ class InstallCacic : public QObject | ||
| 14 | Q_OBJECT | 14 | Q_OBJECT |
| 15 | public: | 15 | public: |
| 16 | explicit InstallCacic(QObject *parent = 0); | 16 | explicit InstallCacic(QObject *parent = 0); |
| 17 | + ~InstallCacic(); | ||
| 17 | 18 | ||
| 18 | QMap<QString, QString> getArgumentos(); | 19 | QMap<QString, QString> getArgumentos(); |
| 19 | void setArgumentos(QMap<QString, QString> value); | 20 | void setArgumentos(QMap<QString, QString> value); |