Commit 2b76fe397b3b607563f744b57fed7e760f73aa1a
1 parent
9a32ead0
Exists in
master
primeiro commit
Showing
7 changed files
with
322 additions
and
71 deletions
Show diff stats
... | ... | @@ -0,0 +1,17 @@ |
1 | +#include <QtCore> | |
2 | + | |
3 | +class InstallCacic : public QObject { | |
4 | + Q_OBJECT | |
5 | + | |
6 | +public: | |
7 | + InstallCacic(QObject *parent = 0): QObject(parent) {} | |
8 | + | |
9 | +public slots: | |
10 | + void run() { | |
11 | + // Processa e finaliza | |
12 | + emit finished(); | |
13 | + } | |
14 | + | |
15 | +signals: | |
16 | + void finished(); | |
17 | +}; | ... | ... |
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.1, 2014-06-16T17:56:13. --> | |
3 | +<!-- Written by QtCreator 3.1.2, 2014-07-14T12:09:05. --> | |
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.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> | |
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 | 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">E:/LightBase/cacic-agente-project/builds/install-cacic</value> | |
64 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/lightbase/Projeto Cacic/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,7 +78,10 @@ |
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"/> | |
81 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
82 | + <value type="QString">-w</value> | |
83 | + <value type="QString">-r</value> | |
84 | + </valuelist> | |
82 | 85 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
83 | 86 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
84 | 87 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -94,7 +97,10 @@ |
94 | 97 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
95 | 98 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
96 | 99 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
97 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
100 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
101 | + <value type="QString">-w</value> | |
102 | + <value type="QString">-r</value> | |
103 | + </valuelist> | |
98 | 104 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
99 | 105 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
100 | 106 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -114,7 +120,7 @@ |
114 | 120 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value> |
115 | 121 | </valuemap> |
116 | 122 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
117 | - <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/LightBase/Cacic Agente/cacic-agente/build-install-cacic-Desktop_Qt_5_3_0_MinGW_32bit-Release</value> | |
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> | |
118 | 124 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
119 | 125 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
120 | 126 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
... | ... | @@ -131,7 +137,10 @@ |
131 | 137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
132 | 138 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
133 | 139 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
134 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
140 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
141 | + <value type="QString">-w</value> | |
142 | + <value type="QString">-r</value> | |
143 | + </valuelist> | |
135 | 144 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
136 | 145 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
137 | 146 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -147,7 +156,10 @@ |
147 | 156 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
148 | 157 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
149 | 158 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
150 | - <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"/> | |
159 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
160 | + <value type="QString">-w</value> | |
161 | + <value type="QString">-r</value> | |
162 | + </valuelist> | |
151 | 163 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
152 | 164 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
153 | 165 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
... | ... | @@ -219,8 +231,8 @@ |
219 | 231 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> |
220 | 232 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
221 | 233 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">install-cacic</value> |
222 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">install-cacic2</value> | |
223 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/LightBase/cacic-agente-project/cacic-agente/install-cacic/install-cacic.pro</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> | |
224 | 236 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
225 | 237 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">install-cacic.pro</value> |
226 | 238 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
... | ... | @@ -242,7 +254,7 @@ |
242 | 254 | </data> |
243 | 255 | <data> |
244 | 256 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
245 | - <value type="QByteArray">{2d43e969-a5af-4db4-9730-35c8f8cce80d}</value> | |
257 | + <value type="QByteArray">{ece4f619-8231-4029-8d3b-e5858b910820}</value> | |
246 | 258 | </data> |
247 | 259 | <data> |
248 | 260 | <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.1, 2014-07-03T16:42:08. --> | |
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.0 GCC 64bit</value> | |
58 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.3.0 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/eduardo/srv/cacic-agente-new/build-install-cacic-Desktop_Qt_5_3_0_GCC_64bit-Debug</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/eduardo/srv/cacic-agente-new/build-install-cacic-Desktop_Qt_5_3_0_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/eduardo/srv/cacic-agente-new/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">{05f74523-32aa-49a4-aa35-22a4457a2f3f}</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
1 | 1 | #include "installcacic.h" |
2 | - | |
3 | - | |
4 | -QCoreApplication *InstallCacic::getApp() const | |
5 | -{ | |
6 | - return app; | |
7 | -} | |
8 | - | |
9 | -void InstallCacic::setApp(const QCoreApplication &value) | |
10 | -{ | |
11 | - app = value; | |
12 | -} | |
2 | +#include "iostream" | |
13 | 3 | |
14 | 4 | InstallCacic::InstallCacic(QObject *parent) : |
15 | 5 | QObject(parent) |
16 | 6 | { |
17 | 7 | } |
18 | 8 | |
19 | - | |
20 | -void InstallCacic::runInstall() | |
21 | -{ | |
22 | - QString argumento; | |
23 | - cout << "Testando argumentos" << endl; | |
24 | - argumento = "--host"; | |
25 | - | |
26 | - if (app.arguments().count() > 1){ | |
27 | - for(int i=1;i<app.arguments().count();i++){ | |
28 | - if (app.arguments().at(i) == argumento){ | |
29 | - app.quit(); | |
30 | - } else { | |
31 | - cout << app.arguments().at(i).toStdString() << endl; | |
32 | - } | |
33 | - } | |
34 | - app.exit(2); | |
35 | - } else { | |
36 | - app.exit(3); | |
37 | - } | |
9 | +void InstallCacic::run() { | |
10 | + std::cout << "Hello World\n"; | |
11 | + emit finished(); | |
38 | 12 | } |
39 | - | |
40 | - | ... | ... |
install-cacic/installcacic.h
... | ... | @@ -2,31 +2,18 @@ |
2 | 2 | #define INSTALLCACIC_H |
3 | 3 | |
4 | 4 | #include <QObject> |
5 | -#include <QCoreApplication> | |
6 | -#include <iostream> | |
7 | -#include <QStringList> | |
8 | -#include <QTimer> | |
9 | - | |
10 | -using namespace std; | |
11 | 5 | |
12 | 6 | class InstallCacic : public QObject |
13 | 7 | { |
14 | 8 | Q_OBJECT |
15 | 9 | public: |
16 | - // variaveis | |
17 | - | |
18 | 10 | explicit InstallCacic(QObject *parent = 0); |
19 | 11 | |
20 | - QCoreApplication *getApp() const; | |
21 | - void setApp(const QCoreApplication &value); | |
22 | - | |
23 | -private: | |
24 | - QCoreApplication app; | |
25 | 12 | signals: |
13 | + void finished(); | |
26 | 14 | |
27 | 15 | public slots: |
28 | - void runInstall(QCoreApplication*); | |
29 | - | |
16 | + void run(); | |
30 | 17 | }; |
31 | 18 | |
32 | 19 | #endif // INSTALLCACIC_H | ... | ... |
install-cacic/main.cpp
1 | -#include <installcacic.cpp> | |
2 | - | |
3 | -using namespace std; | |
1 | +#include <QtCore> | |
2 | +#include <QCoreApplication> | |
3 | +#include "installcacic.h" | |
4 | 4 | |
5 | 5 | int main(int argc, char *argv[]) |
6 | 6 | { |
7 | 7 | QCoreApplication a(argc, argv); |
8 | - InstallCacic CInstallCacic; | |
9 | - CInstallCacic.setApp(*a); | |
10 | 8 | |
11 | - try { | |
9 | + InstallCacic *installcacic = new InstallCacic(&a); | |
10 | + | |
11 | + // This will cause the application to exit when | |
12 | + // the task signals finished. | |
13 | + QObject::connect(installcacic, SIGNAL(finished()), &a, SLOT(quit())); | |
12 | 14 | |
13 | - CInstallCacic.runInstall();// TENTAR RODAR COM CONNECT OU ALGO DO TIPO | |
14 | - } catch (int e) { | |
15 | - cout << "Error: " << e << endl; | |
16 | - } | |
15 | + // This will run the task from the application event loop. | |
16 | + QTimer::singleShot(0, installcacic, SLOT(run())); | |
17 | 17 | |
18 | 18 | return a.exec(); |
19 | 19 | } | ... | ... |