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
Weixuan Xiao
kdeconnect-kde
Commits
e4c3e8c4
Commit
e4c3e8c4
authored
Mar 03, 2014
by
Àlex Fiestas
Browse files
Implement virtual KJob::doKill in FileTransferJob
This basically allows killing the job from the JobTrakcer aka Plasma.
parent
a75bfe5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
kded/filetransferjob.cpp
View file @
e4c3e8c4
...
...
@@ -201,3 +201,13 @@ void FileTransferJob::sourceFinished()
emitResult
();
}
bool
FileTransferJob
::
doKill
()
{
if
(
mDestinationJob
)
{
mDestinationJob
->
close
();
}
if
(
mOrigin
)
{
mOrigin
->
close
();
}
return
true
;
}
kded/filetransferjob.h
View file @
e4c3e8c4
...
...
@@ -50,6 +50,8 @@ public Q_SLOTS:
void
sourceFinished
();
void
openFinished
(
KJob
*
);
protected:
virtual
bool
doKill
();
private:
void
startTransfer
();
QSharedPointer
<
QIODevice
>
mOrigin
;
...
...
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