Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
4d8cb395
Commit
4d8cb395
authored
Oct 15, 2009
by
Robert Loehning
Browse files
Trk: Cleaned up waiting for finishing.
parent
1d52447f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/trk/launcher.cpp
View file @
4d8cb395
...
...
@@ -174,19 +174,13 @@ void Launcher::logMessage(const QString &msg)
qDebug
()
<<
"LAUNCHER: "
<<
qPrintable
(
msg
);
}
void
Launcher
::
waitForTrkFinished
(
const
TrkResult
&
result
)
{
Q_UNUSED
(
result
)
d
->
m_device
.
sendTrkMessage
(
TrkPing
,
TrkCallback
(
this
,
&
Launcher
::
handleWaitForFinished
));
}
void
Launcher
::
terminate
()
{
//TODO handle case where application has not been started
QByteArray
ba
;
appendShort
(
&
ba
,
0x0000
,
TargetByteOrder
);
appendInt
(
&
ba
,
d
->
m_session
.
pid
,
TargetByteOrder
);
d
->
m_device
.
sendTrkMessage
(
TrkDeleteItem
,
TrkCallback
(
this
,
&
Launcher
::
w
aitFor
Trk
Finished
),
ba
);
d
->
m_device
.
sendTrkMessage
(
TrkDeleteItem
,
TrkCallback
(
this
,
&
Launcher
::
handleW
aitForFinished
),
ba
);
}
void
Launcher
::
handleResult
(
const
TrkResult
&
result
)
...
...
@@ -273,7 +267,7 @@ void Launcher::handleResult(const TrkResult &result)
if
(
itemType
==
0
// process
&&
result
.
data
.
size
()
>=
10
&&
d
->
m_session
.
pid
==
extractInt
(
result
.
data
.
data
()
+
6
))
{
d
->
m_device
.
sendTrkMessage
(
TrkDisconnect
,
TrkCallback
(
this
,
&
Launcher
::
w
aitFor
Trk
Finished
));
d
->
m_device
.
sendTrkMessage
(
TrkDisconnect
,
TrkCallback
(
this
,
&
Launcher
::
handleW
aitForFinished
));
}
break
;
}
...
...
src/shared/trk/launcher.h
View file @
4d8cb395
...
...
@@ -103,7 +103,6 @@ private:
void
handleStop
(
const
TrkResult
&
result
);
void
handleSupportMask
(
const
TrkResult
&
result
);
void
handleTrkVersion
(
const
TrkResult
&
result
);
void
waitForTrkFinished
(
const
TrkResult
&
data
);
void
copyFileToRemote
();
void
installRemotePackageSilently
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment