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
abf53545
Commit
abf53545
authored
Sep 12, 2022
by
Laurent Montel
Browse files
Initialize pointer in header
parent
1f407f63
Changes
2
Hide whitespace changes
Inline
Side-by-side
agents/maildispatcher/maildispatcheragent.cpp
View file @
abf53545
...
...
@@ -122,6 +122,8 @@ void MailDispatcherAgent::dispatch()
MailDispatcherAgent
::
MailDispatcherAgent
(
const
QString
&
id
)
:
AgentBase
(
id
)
,
mQueue
(
new
OutboxQueue
(
this
))
,
mSentActionHandler
(
new
SentActionHandler
(
this
))
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"maildispatcheragent"
));
...
...
@@ -143,15 +145,12 @@ MailDispatcherAgent::MailDispatcherAgent(const QString &id)
QDBusConnection
::
sessionBus
().
registerService
(
service
);
mQueue
=
new
OutboxQueue
(
this
);
connect
(
mQueue
,
&
OutboxQueue
::
newItems
,
this
,
&
MailDispatcherAgent
::
dispatch
);
connect
(
mQueue
,
&
OutboxQueue
::
itemReady
,
this
,
&
MailDispatcherAgent
::
itemFetched
);
connect
(
mQueue
,
&
OutboxQueue
::
error
,
this
,
&
MailDispatcherAgent
::
queueError
);
connect
(
this
,
&
MailDispatcherAgent
::
itemProcessed
,
mQueue
,
&
OutboxQueue
::
itemProcessed
);
connect
(
this
,
&
MailDispatcherAgent
::
abortRequested
,
this
,
&
MailDispatcherAgent
::
abort
);
mSentActionHandler
=
new
SentActionHandler
(
this
);
setNeedsNetwork
(
true
);
}
...
...
agents/maildispatcher/maildispatcheragent.h
View file @
abf53545
...
...
@@ -52,7 +52,8 @@ private:
void
sendResult
(
KJob
*
job
);
void
emitStatusReady
();
OutboxQueue
*
mQueue
=
nullptr
;
OutboxQueue
*
const
mQueue
;
SentActionHandler
*
const
mSentActionHandler
;
SendJob
*
mCurrentJob
=
nullptr
;
Akonadi
::
Item
mCurrentItem
;
bool
mAborting
=
false
;
...
...
@@ -61,5 +62,4 @@ private:
bool
mErrorOccurred
=
false
;
bool
mShowSentNotification
=
true
;
qulonglong
mSentItemsSize
=
0
;
SentActionHandler
*
mSentActionHandler
=
nullptr
;
};
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