Commit 8105c7fe7c1b801fcd9e8fbe09f1c26a89cba518
1 parent
2b76fe39
Exists in
master
Criação da base da classe principal e do header de conexão.
Showing
12 changed files
with
430 additions
and
36 deletions
Show diff stats
cacic-teste/cacic-teste.pro
cacic-teste/cacic-teste.pro.user
cacic-teste/testcacic.cpp
1 | 1 | #include <QProcess> |
2 | 2 | #include <QStringList> |
3 | 3 | #include "testcacic.h" |
4 | +#include <iostream> | |
5 | + | |
4 | 6 | QTEST_MAIN(CTestCacic) |
5 | 7 | |
6 | 8 | CTestCacic::CTestCacic(QObject *parent) : |
... | ... | @@ -13,10 +15,10 @@ void CTestCacic::installcacicTest() |
13 | 15 | QProcess installcacic; |
14 | 16 | QString installcacicPath; |
15 | 17 | |
16 | - installcacicPath = "E:/Lightbase/cacic-projeto-test/build/cacic-test/debug/cacic-teste.exe"; | |
17 | - installcacic.execute(installcacicPath,QStringList() << "--host:"); | |
18 | - if (!installcacic.waitForFinished() and (installcacic.exitCode() == 5)) | |
19 | - QVERIFY(installcacic.exitStatus() == 5); | |
18 | + installcacicPath = QString("E:/LightBase/cacic-agente-project/builds/install-cacic/debug/install-cacic.exe"); | |
19 | + installcacic.execute(installcacicPath,QStringList() << "--host"); | |
20 | + if (installcacic.waitForFinished() and (installcacic.exitCode() == 0)) | |
21 | + QVERIFY(installcacic.exitCode() == 0); | |
20 | 22 | else |
21 | 23 | QSKIP("Installcacic ExitCode: " + QString::number(installcacic.exitCode()).toLocal8Bit()); |
22 | 24 | |
... | ... | @@ -30,3 +32,5 @@ void CTestCacic::firstTest() |
30 | 32 | |
31 | 33 | |
32 | 34 | |
35 | + | |
36 | + | ... | ... |
install-cacic/install-cacic.pro
install-cacic/install-cacic.pro.user
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE QtCreatorProject> |
3 | -<!-- Written by QtCreator 3.1.2, 2014-07-14T12:09:05. --> | |
3 | +<!-- Written by QtCreator 3.1.1, 2014-07-14T18:06:15. --> | |
4 | 4 | <qtcreator> |
5 | 5 | <data> |
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
... | ... | @@ -54,14 +54,14 @@ |
54 | 54 | <data> |
55 | 55 | <variable>ProjectExplorer.Project.Target.0</variable> |
56 | 56 | <valuemap type="QVariantMap"> |
57 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.3 GCC 64bit</value> | |
58 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.3 GCC 64bit</value> | |
59 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.53.gcc_64_kit</value> | |
57 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.3.0 MinGW 32bit</value> | |
58 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.3.0 MinGW 32bit</value> | |
59 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.53.win32_mingw482_kit</value> | |
60 | 60 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
61 | 61 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
62 | 62 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
63 | 63 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
64 | - <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/lightbase/Projeto Cacic/builds/install-cacic</value> | |
64 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/LightBase/cacic-agente-project/builds/install-cacic/</value> | |
65 | 65 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
66 | 66 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
67 | 67 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
... | ... | @@ -78,10 +78,7 @@ |
78 | 78 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
79 | 79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
80 | 80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
81 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
82 | - <value type="QString">-w</value> | |
83 | - <value type="QString">-r</value> | |
84 | - </valuelist> | |
81 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
85 | 82 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
86 | 83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
87 | 84 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -97,10 +94,7 @@ |
97 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
98 | 95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
99 | 96 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
100 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
101 | - <value type="QString">-w</value> | |
102 | - <value type="QString">-r</value> | |
103 | - </valuelist> | |
97 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
104 | 98 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
105 | 99 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
106 | 100 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -120,7 +114,7 @@ |
120 | 114 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> |
121 | 115 | </valuemap> |
122 | 116 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
123 | - <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/lightbase/Projeto Cacic/cacic-agente/build-install-cacic-Desktop_Qt_5_3_GCC_64bit-Release</value> | |
117 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/LightBase/cacic-agente-project/cacic-agente/build-install-cacic-Desktop_Qt_5_3_0_MinGW_32bit-Release</value> | |
124 | 118 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
125 | 119 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
126 | 120 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
... | ... | @@ -137,10 +131,7 @@ |
137 | 131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
138 | 132 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
139 | 133 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
140 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
141 | - <value type="QString">-w</value> | |
142 | - <value type="QString">-r</value> | |
143 | - </valuelist> | |
134 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
144 | 135 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
145 | 136 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
146 | 137 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -156,10 +147,7 @@ |
156 | 147 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
157 | 148 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
158 | 149 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
159 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
160 | - <value type="QString">-w</value> | |
161 | - <value type="QString">-r</value> | |
162 | - </valuelist> | |
150 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
163 | 151 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
164 | 152 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
165 | 153 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -232,7 +220,7 @@ |
232 | 220 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
233 | 221 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">install-cacic</value> |
234 | 222 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
235 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/lightbase/Projeto Cacic/cacic-agente/install-cacic/install-cacic.pro</value> | |
223 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/LightBase/cacic-agente-project/cacic-agente/install-cacic/install-cacic.pro</value> | |
236 | 224 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
237 | 225 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">install-cacic.pro</value> |
238 | 226 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
... | ... | @@ -254,7 +242,7 @@ |
254 | 242 | </data> |
255 | 243 | <data> |
256 | 244 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
257 | - <value type="QByteArray">{ece4f619-8231-4029-8d3b-e5858b910820}</value> | |
245 | + <value type="QByteArray">{2d43e969-a5af-4db4-9730-35c8f8cce80d}</value> | |
258 | 246 | </data> |
259 | 247 | <data> |
260 | 248 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | ... | ... |
... | ... | @@ -0,0 +1,263 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE QtCreatorProject> | |
3 | +<!-- Written by QtCreator 3.1.2, 2014-07-14T12:09:05. --> | |
4 | +<qtcreator> | |
5 | + <data> | |
6 | + <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | + <value type="int">0</value> | |
8 | + </data> | |
9 | + <data> | |
10 | + <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | + <valuemap type="QVariantMap"> | |
12 | + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
14 | + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
15 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
16 | + <value type="QString" key="language">Cpp</value> | |
17 | + <valuemap type="QVariantMap" key="value"> | |
18 | + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> | |
19 | + </valuemap> | |
20 | + </valuemap> | |
21 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
22 | + <value type="QString" key="language">QmlJS</value> | |
23 | + <valuemap type="QVariantMap" key="value"> | |
24 | + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> | |
25 | + </valuemap> | |
26 | + </valuemap> | |
27 | + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
28 | + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> | |
29 | + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
30 | + <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
31 | + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
32 | + <value type="int" key="EditorConfiguration.MarginColumn">80</value> | |
33 | + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> | |
34 | + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
35 | + <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
36 | + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
37 | + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> | |
38 | + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
39 | + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
40 | + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
41 | + <value type="int" key="EditorConfiguration.TabSize">8</value> | |
42 | + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
43 | + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
44 | + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
45 | + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
46 | + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
47 | + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
48 | + </valuemap> | |
49 | + </data> | |
50 | + <data> | |
51 | + <variable>ProjectExplorer.Project.PluginSettings</variable> | |
52 | + <valuemap type="QVariantMap"/> | |
53 | + </data> | |
54 | + <data> | |
55 | + <variable>ProjectExplorer.Project.Target.0</variable> | |
56 | + <valuemap type="QVariantMap"> | |
57 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.3 GCC 64bit</value> | |
58 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.3 GCC 64bit</value> | |
59 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.53.gcc_64_kit</value> | |
60 | + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
61 | + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
62 | + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
63 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
64 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/lightbase/Projeto Cacic/builds/install-cacic</value> | |
65 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
66 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
67 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
68 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
69 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
70 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
71 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
72 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
73 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
74 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
75 | + </valuemap> | |
76 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
77 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
78 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
79 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
80 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
81 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
82 | + <value type="QString">-w</value> | |
83 | + <value type="QString">-r</value> | |
84 | + </valuelist> | |
85 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
86 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
87 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
88 | + </valuemap> | |
89 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
90 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
91 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
92 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
93 | + </valuemap> | |
94 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
95 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
96 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
97 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
98 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
99 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
100 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
101 | + <value type="QString">-w</value> | |
102 | + <value type="QString">-r</value> | |
103 | + </valuelist> | |
104 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
105 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
106 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
107 | + </valuemap> | |
108 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
109 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
110 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
111 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
112 | + </valuemap> | |
113 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
114 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
115 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
116 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Debug</value> | |
117 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
118 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
119 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
120 | + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> | |
121 | + </valuemap> | |
122 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
123 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/lightbase/Projeto Cacic/cacic-agente/build-install-cacic-Desktop_Qt_5_3_GCC_64bit-Release</value> | |
124 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
125 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
126 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
127 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
128 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
129 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
130 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
131 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
132 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
133 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
134 | + </valuemap> | |
135 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
136 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
137 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
138 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
139 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
140 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
141 | + <value type="QString">-w</value> | |
142 | + <value type="QString">-r</value> | |
143 | + </valuelist> | |
144 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
145 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
146 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
147 | + </valuemap> | |
148 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
149 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
150 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
151 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
152 | + </valuemap> | |
153 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
154 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
155 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
156 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
157 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
158 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
159 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
160 | + <value type="QString">-w</value> | |
161 | + <value type="QString">-r</value> | |
162 | + </valuelist> | |
163 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
164 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
165 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
166 | + </valuemap> | |
167 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
168 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
169 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
170 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
171 | + </valuemap> | |
172 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
173 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
174 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
175 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> | |
176 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
177 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
178 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
179 | + <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> | |
180 | + </valuemap> | |
181 | + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
182 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
183 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
184 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
185 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
186 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
187 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
188 | + </valuemap> | |
189 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
190 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value> | |
191 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
192 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
193 | + </valuemap> | |
194 | + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
195 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
196 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
197 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
198 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
199 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
200 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
201 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
202 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
203 | + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
204 | + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
205 | + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
206 | + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | |
207 | + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
208 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
209 | + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | |
210 | + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | |
211 | + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | |
212 | + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
213 | + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
214 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
215 | + <value type="int">0</value> | |
216 | + <value type="int">1</value> | |
217 | + <value type="int">2</value> | |
218 | + <value type="int">3</value> | |
219 | + <value type="int">4</value> | |
220 | + <value type="int">5</value> | |
221 | + <value type="int">6</value> | |
222 | + <value type="int">7</value> | |
223 | + <value type="int">8</value> | |
224 | + <value type="int">9</value> | |
225 | + <value type="int">10</value> | |
226 | + <value type="int">11</value> | |
227 | + <value type="int">12</value> | |
228 | + <value type="int">13</value> | |
229 | + <value type="int">14</value> | |
230 | + </valuelist> | |
231 | + <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
232 | + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
233 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">install-cacic</value> | |
234 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
235 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/lightbase/Projeto Cacic/cacic-agente/install-cacic/install-cacic.pro</value> | |
236 | + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
237 | + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">install-cacic.pro</value> | |
238 | + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
239 | + <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value> | |
240 | + <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
241 | + <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
242 | + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | |
243 | + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | |
244 | + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
245 | + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
246 | + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
247 | + </valuemap> | |
248 | + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
249 | + </valuemap> | |
250 | + </data> | |
251 | + <data> | |
252 | + <variable>ProjectExplorer.Project.TargetCount</variable> | |
253 | + <value type="int">1</value> | |
254 | + </data> | |
255 | + <data> | |
256 | + <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
257 | + <value type="QByteArray">{ece4f619-8231-4029-8d3b-e5858b910820}</value> | |
258 | + </data> | |
259 | + <data> | |
260 | + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
261 | + <value type="int">15</value> | |
262 | + </data> | |
263 | +</qtcreator> | ... | ... |
install-cacic/installcacic.cpp
install-cacic/installcacic.h
install-cacic/main.cpp
... | ... | @@ -10,7 +10,7 @@ int main(int argc, char *argv[]) |
10 | 10 | |
11 | 11 | // This will cause the application to exit when |
12 | 12 | // the task signals finished. |
13 | - QObject::connect(installcacic, SIGNAL(finished()), &a, SLOT(quit())); | |
13 | + QObject::connect(installcacic, SIGNAL(finished(int)), &a, SLOT(quit())); | |
14 | 14 | |
15 | 15 | // This will run the task from the application event loop. |
16 | 16 | QTimer::singleShot(0, installcacic, SLOT(run())); | ... | ... |
... | ... | @@ -0,0 +1,20 @@ |
1 | +#ifndef CACIC_COMM_H | |
2 | +#define CACIC_COMM_H | |
3 | + | |
4 | +#include <QString> | |
5 | + | |
6 | +class CacicComm { | |
7 | +public: | |
8 | + QString comm(QString urlGerente, request, localFolderName); | |
9 | + | |
10 | +}; | |
11 | + | |
12 | +QString CacicComm::comm(QString urlGerente, request, localFolderName){ | |
13 | + QString retorno = '0', | |
14 | + gerColsInfPath = localFolderName + "/gercols.inf", | |
15 | + chksisInfPath = localFolderName + "/chksis.inf"; | |
16 | + //implementar | |
17 | + return retorno; | |
18 | +} | |
19 | + | |
20 | +#endif // CACIC_COMM_H | ... | ... |
... | ... | @@ -0,0 +1,63 @@ |
1 | +#include "ccacic.h" | |
2 | + | |
3 | +CCacic::CCacic(QObject *parent) : | |
4 | + QObject(parent) | |
5 | +{ | |
6 | +} | |
7 | +/*Getters/Setters | |
8 | + * Begin: | |
9 | + */ | |
10 | +QString CCacic::getCacicMainFolder() const | |
11 | +{ | |
12 | + return cacicMainFolder; | |
13 | +} | |
14 | + | |
15 | +void CCacic::setCacicMainFolder(const QString &value) | |
16 | +{ | |
17 | + cacicMainFolder = value; | |
18 | +} | |
19 | +QString CCacic::getMainModuleName() const | |
20 | +{ | |
21 | + return mainModuleName; | |
22 | +} | |
23 | + | |
24 | +void CCacic::setMainModuleName(const QString &value) | |
25 | +{ | |
26 | + mainModuleName = value; | |
27 | +} | |
28 | +QString CCacic::getUrlGerente() const | |
29 | +{ | |
30 | + return urlGerente; | |
31 | +} | |
32 | + | |
33 | +void CCacic::setUrlGerente(const QString &value) | |
34 | +{ | |
35 | + urlGerente = value; | |
36 | +} | |
37 | +QString CCacic::getGerColsInfFilePath() const | |
38 | +{ | |
39 | + return gerColsInfFilePath; | |
40 | +} | |
41 | + | |
42 | +void CCacic::setGerColsInfFilePath(const QString &value) | |
43 | +{ | |
44 | + gerColsInfFilePath = value; | |
45 | +} | |
46 | +QString CCacic::getChksisInfFilePath() const | |
47 | +{ | |
48 | + return chksisInfFilePath; | |
49 | +} | |
50 | + | |
51 | +void CCacic::setChksisInfFilePath(const QString &value) | |
52 | +{ | |
53 | + chksisInfFilePath = value; | |
54 | +} | |
55 | + | |
56 | +/*Getters/Setters | |
57 | + * End. | |
58 | + */ | |
59 | + | |
60 | + | |
61 | + | |
62 | + | |
63 | + | ... | ... |
... | ... | @@ -0,0 +1,44 @@ |
1 | +#ifndef CCACIC_H | |
2 | +#define CCACIC_H | |
3 | + | |
4 | +#include <QObject> | |
5 | + | |
6 | +class CCacic : public QObject | |
7 | +{ | |
8 | + Q_OBJECT | |
9 | +public: | |
10 | + explicit CCacic(QObject *parent = 0); | |
11 | + QString getValueFromFile(); | |
12 | + QString getValueFromTags(); | |
13 | + | |
14 | +//Geters/seters: | |
15 | + | |
16 | + QString getCacicMainFolder() const; | |
17 | + void setCacicMainFolder(const QString &value); | |
18 | + | |
19 | + QString getMainModuleName() const; | |
20 | + void setMainModuleName(const QString &value); | |
21 | + | |
22 | + QString getUrlGerente() const; | |
23 | + void setUrlGerente(const QString &value); | |
24 | + | |
25 | + QString getGerColsInfFilePath() const; | |
26 | + void setGerColsInfFilePath(const QString &value); | |
27 | + | |
28 | + QString getChksisInfFilePath() const; | |
29 | + void setChksisInfFilePath(const QString &value); | |
30 | + | |
31 | +private: | |
32 | + QString cacicMainFolder; | |
33 | + QString mainModuleName; | |
34 | + QString urlGerente; | |
35 | + QString gerColsInfFilePath; | |
36 | + QString chksisInfFilePath; | |
37 | + | |
38 | +signals: | |
39 | + | |
40 | +public slots: | |
41 | + | |
42 | +}; | |
43 | + | |
44 | +#endif // CCACIC_H | ... | ... |