Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
98d76d37
Commit
98d76d37
authored
Nov 28, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a KJob here
parent
4e15f15f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
kmail/followupreminder/followupremindercreatejob.cpp
kmail/followupreminder/followupremindercreatejob.cpp
+3
-3
kmail/followupreminder/followupremindercreatejob.h
kmail/followupreminder/followupremindercreatejob.h
+2
-1
No files found.
kmail/followupreminder/followupremindercreatejob.cpp
View file @
98d76d37
...
...
@@ -22,7 +22,7 @@
#include <akonadi/itemcreatejob.h>
FollowupReminderCreateJob
::
FollowupReminderCreateJob
(
QObject
*
parent
)
:
QObject
(
parent
),
:
KJob
(
parent
),
mInfo
(
new
FollowUpReminder
::
FollowUpReminderInfo
)
{
...
...
@@ -80,7 +80,7 @@ void FollowupReminderCreateJob::start()
}
}
else
{
qDebug
()
<<
"FollowupReminderCreateJob info not valid "
;
deleteLater
();
Q_EMIT
emitResult
();
return
;
}
}
...
...
@@ -99,5 +99,5 @@ void FollowupReminderCreateJob::slotCreateNewTodo(KJob *job)
void
FollowupReminderCreateJob
::
writeFollowupReminderInfo
()
{
FollowUpReminder
::
FollowUpReminderUtil
::
writeFollowupReminderInfo
(
FollowUpReminder
::
FollowUpReminderUtil
::
defaultConfig
(),
mInfo
,
true
);
deleteLater
();
Q_EMIT
emitResult
();
}
kmail/followupreminder/followupremindercreatejob.h
View file @
98d76d37
...
...
@@ -23,8 +23,9 @@
#include <Akonadi/Item>
#include <Akonadi/Collection>
#include "agents/followupreminderagent/followupreminderinfo.h"
#include <KJob>
class
FollowupReminderCreateJob
:
public
QObject
class
FollowupReminderCreateJob
:
public
KJob
{
Q_OBJECT
public:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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