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
PIM
KDE PIM Runtime
Commits
8759b391
Commit
8759b391
authored
Sep 12, 2022
by
Laurent Montel
Browse files
Use percentChanged
parent
abf53545
Pipeline
#230762
canceled with stage
in 2 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/maildispatcher/maildispatcheragent.cpp
View file @
8759b391
...
...
@@ -193,8 +193,7 @@ void MailDispatcherAgent::itemFetched(const Item &item)
i18nc
(
"Message with given subject is being sent."
,
"Sending: %1"
,
item
.
payload
<
KMime
::
Message
::
Ptr
>
()
->
subject
()
->
asUnicodeString
()));
connect
(
mCurrentJob
,
&
KJob
::
result
,
this
,
&
MailDispatcherAgent
::
sendResult
);
// TODO wait kf6. For the moment we can't convert to new connect api.
connect
(
mCurrentJob
,
SIGNAL
(
percent
(
KJob
*
,
ulong
)),
this
,
SLOT
(
sendPercent
(
KJob
*
,
ulong
)));
connect
(
mCurrentJob
,
&
SendJob
::
percentChanged
,
this
,
&
MailDispatcherAgent
::
sendPercent
);
mCurrentJob
->
start
();
}
...
...
agents/maildispatcher/sendjob.cpp
View file @
8759b391
...
...
@@ -167,9 +167,9 @@ void SendJob::doTraditionalTransport()
// Signals.
connect
(
job
,
&
TransportJob
::
result
,
this
,
&
SendJob
::
transportResult
);
// Wait kf6 We have a private signal
// connect(job, thisOverload<KJob*, ulong>::of(&TransportJob::percent), this, [this](KJob *job,ulong val) {
transportPercent(job, val);
});
connect
(
job
,
SIGNAL
(
percent
(
KJob
*
,
ulong
)),
this
,
SLOT
(
transportPercent
(
KJob
*
,
ulong
))
);
connect
(
job
,
&
TransportJob
::
percentChanged
,
this
,
[
this
](
KJob
*
job
,
ulong
val
)
{
transportPercent
(
job
,
val
);
}
);
job
->
start
();
}
...
...
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