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
KMail
Commits
ffe5e330
Commit
ffe5e330
authored
Dec 20, 2021
by
Laurent Montel
Browse files
Add missing Q_REQUIRED_RESULT
parent
a4b73808
Changes
3
Hide whitespace changes
Inline
Side-by-side
agents/archivemailagent/archivemailinfo.h
View file @
ffe5e330
...
...
@@ -67,7 +67,7 @@ public:
Q_REQUIRED_RESULT
bool
operator
==
(
const
ArchiveMailInfo
&
other
)
const
;
private:
QString
dirArchive
(
bool
&
dirExit
)
const
;
Q_REQUIRED_RESULT
QString
dirArchive
(
bool
&
dirExit
)
const
;
QDate
mLastDateSaved
;
int
mArchiveAge
=
1
;
MailCommon
::
BackupJob
::
ArchiveType
mArchiveType
=
MailCommon
::
BackupJob
::
Zip
;
...
...
agents/archivemailagent/archivemailmanager.cpp
View file @
ffe5e330
...
...
@@ -187,3 +187,8 @@ void ArchiveMailManager::archiveFolder(const QString &path, Akonadi::Collection:
auto
task
=
new
ScheduledArchiveTask
(
this
,
info
,
Akonadi
::
Collection
(
info
->
saveCollectionId
()),
true
/*immediat*/
);
mArchiveMailKernel
->
jobScheduler
()
->
registerTask
(
task
);
}
ArchiveMailKernel
*
ArchiveMailManager
::
kernel
()
const
{
return
mArchiveMailKernel
;
}
agents/archivemailagent/archivemailmanager.h
View file @
ffe5e330
...
...
@@ -32,10 +32,7 @@ public:
void
archiveFolder
(
const
QString
&
path
,
Akonadi
::
Collection
::
Id
collectionId
);
ArchiveMailKernel
*
kernel
()
const
{
return
mArchiveMailKernel
;
}
ArchiveMailKernel
*
kernel
()
const
;
public
Q_SLOTS
:
void
load
();
...
...
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